calendar-context-agent

Date context for AI agents — holidays, historical events, births, deaths. Know what day it is.

  • 9 Entrypoints
  • v1.0.0 Version
  • Enabled Payments
passionate-achievement-production-db44.up.railway.app

Entrypoints

Explore the capabilities exposed by this agent. Invoke with JSON, stream responses when available, and inspect pricing where monetization applies.

today

Invoke

Free overview of today — current date, day of week, notable info. Try before you buy.

Pricing Free
Network base
Invoke Endpoint POST /entrypoints/today/invoke
Input Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {},
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'https://passionate-achievement-production-db44.up.railway.app/entrypoints/today/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {}
    }
  '

holidays

Invoke

Public holidays for any country and year

Pricing Invoke: 1000
Network base
Invoke Endpoint POST /entrypoints/holidays/invoke
Input Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "country": {
      "type": "string",
      "minLength": 2,
      "maxLength": 2,
      "description": "ISO 3166-1 alpha-2 country code (e.g., US, GB, DE, AU)"
    },
    "year": {
      "description": "Year (default: current year)",
      "type": "number"
    }
  },
  "required": [
    "country"
  ],
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'https://passionate-achievement-production-db44.up.railway.app/entrypoints/holidays/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {
        "country": "<ISO 3166-1 alpha-2 country code (e.g., US, GB, DE, AU)>"
      }
    }
  '

events

Invoke

Historical events that happened on a specific date

Pricing Invoke: 2000
Network base
Invoke Endpoint POST /entrypoints/events/invoke
Input Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "month": {
      "type": "number",
      "minimum": 1,
      "maximum": 12,
      "description": "Month (1-12)"
    },
    "day": {
      "type": "number",
      "minimum": 1,
      "maximum": 31,
      "description": "Day of month"
    },
    "limit": {
      "default": 10,
      "description": "Max events to return",
      "type": "number"
    }
  },
  "required": [
    "month",
    "day",
    "limit"
  ],
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'https://passionate-achievement-production-db44.up.railway.app/entrypoints/events/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {
        "month": 1,
        "day": 1,
        "limit": 0
      }
    }
  '

births

Invoke

Notable people born on a specific date

Pricing Invoke: 2000
Network base
Invoke Endpoint POST /entrypoints/births/invoke
Input Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "month": {
      "type": "number",
      "minimum": 1,
      "maximum": 12,
      "description": "Month (1-12)"
    },
    "day": {
      "type": "number",
      "minimum": 1,
      "maximum": 31,
      "description": "Day of month"
    },
    "limit": {
      "default": 10,
      "description": "Max births to return",
      "type": "number"
    }
  },
  "required": [
    "month",
    "day",
    "limit"
  ],
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'https://passionate-achievement-production-db44.up.railway.app/entrypoints/births/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {
        "month": 1,
        "day": 1,
        "limit": 0
      }
    }
  '

full-context

Invoke

Complete date context — holidays, events, births all in one call

Pricing Invoke: 3000
Network base
Invoke Endpoint POST /entrypoints/full-context/invoke
Input Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "date": {
      "description": "Date in YYYY-MM-DD format (default: today)",
      "type": "string"
    },
    "country": {
      "default": "US",
      "description": "Country for holidays",
      "type": "string",
      "minLength": 2,
      "maxLength": 2
    }
  },
  "required": [
    "country"
  ],
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'https://passionate-achievement-production-db44.up.railway.app/entrypoints/full-context/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {
        "country": "<Country for holidays>"
      }
    }
  '

compare-dates

Invoke

Compare multiple dates — find common themes, differences, special days

Pricing Invoke: 5000
Network base
Invoke Endpoint POST /entrypoints/compare-dates/invoke
Input Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "dates": {
      "minItems": 2,
      "maxItems": 5,
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Array of dates in YYYY-MM-DD format"
    },
    "country": {
      "default": "US",
      "type": "string",
      "minLength": 2,
      "maxLength": 2
    }
  },
  "required": [
    "dates",
    "country"
  ],
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'https://passionate-achievement-production-db44.up.railway.app/entrypoints/compare-dates/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {
        "dates": [
          "string"
        ],
        "country": "string"
      }
    }
  '

analytics

Invoke

Payment analytics summary

Pricing Free
Network base
Invoke Endpoint POST /entrypoints/analytics/invoke
Input Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "windowMs": {
      "description": "Time window in ms (e.g., 86400000 for 24h)",
      "type": "number"
    }
  },
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'https://passionate-achievement-production-db44.up.railway.app/entrypoints/analytics/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {
        "windowMs": 0
      }
    }
  '

analytics-transactions

Invoke

Recent payment transactions

Pricing Free
Network base
Invoke Endpoint POST /entrypoints/analytics-transactions/invoke
Input Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "windowMs": {
      "type": "number"
    },
    "limit": {
      "default": 50,
      "type": "number"
    }
  },
  "required": [
    "limit"
  ],
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'https://passionate-achievement-production-db44.up.railway.app/entrypoints/analytics-transactions/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {
        "limit": 0
      }
    }
  '

analytics-csv

Invoke

Export payment data as CSV

Pricing Free
Network base
Invoke Endpoint POST /entrypoints/analytics-csv/invoke
Input Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "windowMs": {
      "type": "number"
    }
  },
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'https://passionate-achievement-production-db44.up.railway.app/entrypoints/analytics-csv/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {
        "windowMs": 0
      }
    }
  '

Client Example: x402-fetch

Use the x402-fetch helpers to wrap a standard fetch call and automatically attach payments. This script loads configuration from .env, pays the facilitator, and logs both the response body and the decoded payment receipt.

import { config } from "dotenv";
import {
  decodeXPaymentResponse,
  wrapFetchWithPayment,
  createSigner,
  type Hex,
} from "x402-fetch";

config();

const privateKey = process.env.AGENT_WALLET_PRIVATE_KEY as Hex | string;
const agentUrl = process.env.AGENT_URL as string; // e.g. https://agent.example.com
const endpointPath = process.env.ENDPOINT_PATH as string; // e.g. /entrypoints/echo/invoke
const url = `${agentUrl}${endpointPath}`;

if (!agentUrl || !privateKey || !endpointPath) {
  console.error("Missing required environment variables");
  console.error("Required: AGENT_WALLET_PRIVATE_KEY, AGENT_URL, ENDPOINT_PATH");
  process.exit(1);
}

/**
 * Demonstrates paying for a protected resource using x402-fetch.
 *
 * Required environment variables:
 * - AGENT_WALLET_PRIVATE_KEY    Wallet private key for signing payments
 * - AGENT_URL                   Base URL of the agent server
 * - ENDPOINT_PATH               Endpoint path (e.g. /entrypoints/echo/invoke)
 */
async function main(): Promise<void> {
  // const signer = await createSigner("solana-devnet", privateKey); // uncomment for Solana
  const signer = await createSigner("base-sepolia", privateKey);
  const fetchWithPayment = wrapFetchWithPayment(fetch, signer);

  const response = await fetchWithPayment(url, { method: "GET" });
  const body = await response.json();
  console.log(body);

  const paymentResponse = decodeXPaymentResponse(
    response.headers.get("x-payment-response")!
  );
  console.log(paymentResponse);
}

main().catch((error) => {
  console.error(error?.response?.data?.error ?? error);
  process.exit(1);
});

Manifest

Loading…
Fetching agent card…