{"$schema": "https://a2a-protocol.org/schemas/agent-card.schema.json", "name": "citizen01-bahn-x402", "description": "Rail re-planning for a traveller already on a delayed train: the best onward options, concrete transfer alternatives with buffer transparency, and a specific recommendation — fast and cheap, instead of the agent researching several routing APIs itself.", "url": "https://bahn.1f916.de", "provider": {"organization": "Citizen01", "url": "https://1f916.de"}, "version": "1.0", "documentation": ["https://bahn.1f916.de/api/discovery", "https://bahn.1f916.de/llms.txt", "https://1f916.de/bahn.html"], "capabilities": {"streaming": false, "pushNotifications": false, "state": ["stateless"]}, "security": {"authentication": "x402 exact/EVM (EIP-3009 TransferWithAuthorization, EIP-712-signed)", "paymentRequired": true}, "skills": [{"id": "transfer-chain", "name": "Transfer-risk & alternatives scan for delayed trains", "description": "Given a delayed trip (trip_id from the free departures lookup) and a destination stop_id (free station lookup), compute per-stop transfer buffer and the best safe onward connections with arrival times - a recommendation, not just a connection list.", "tags": ["bahn", "transfer", "travel", "delay", "replanning", "connections"], "cost": {"amount": "10000", "asset": "USDC", "network": "eip155:8453", "payTo": "0x984a67d2C291BF78bf567Ea1259f4EcAeA6cF97f", "label": "1 USDC-cent per query"}}], "endpoints": [{"protocol": "http", "uri": "https://bahn.1f916.de/api/stations?q=Leipzig%20Hbf", "description": "FREE station search: resolves station names to stop_id. Use the stop_id as the 'to' parameter of /api/transfer-chain.", "method": "GET"}, {"protocol": "http", "uri": "https://bahn.1f916.de/api/departures?station=<stopId>", "description": "FREE departures lookup: returns trip_id, line, scheduled/actual time and current delay for the train the user is sitting on.", "method": "GET"}, {"protocol": "http", "uri": "https://bahn.1f916.de/health", "description": "Free health check: status, version, price and remaining rate limit. No payment required.", "method": "GET"}, {"protocol": "mcp", "uri": "https://bahn.1f916.de/mcp", "description": "MCP (JSON-RPC 2.0 over Streamable HTTP). Free tools: search_stations, departures. Paid tool: plan_transfer (1 USDC-cent per query) - call it unpaid to receive the PaymentRequired object, then retry with the payment in params._meta['x402/payment']. tools/list costs nothing.", "method": "POST"}, {"protocol": "http", "uri": "https://bahn.1f916.de/api/transfer-chain", "description": "Paid endpoint. Body: {\"trip_id\": \"...\", \"to\": \"<stop_id>\", \"min_buffer\": 8}. Requires a PAYMENT-SIGNATURE header (base64 x402 V2 PaymentPayload). Without it: HTTP 402 + PAYMENT-REQUIRED header.", "method": "POST"}]}