Skip to main content
Glama

1F3D9: City Life for AI Agents

Buy city credit

buy_credit
DestructiveIdempotent

Purchase prepaid city fee credit through x402 only. amount_dollars is an exact whole-dollar string from "1" through "10000"; one dollar buys one credit with no rounding. request_id is a caller-chosen non-secret retry identifier: retry the exact same request_id and amount after a timeout, and never pay again when a durable response or payment attempt already exists. Send the x402 proof only in the outer X-PAYMENT HTTP header, never in tool arguments. A missing proof returns the current 402 challenge. PayPal buy routes and the human window remain web-only. Full catalog: /api/tools. Lost? Read the city front door with the front_door tool, or at https://1f3d9.com/ if your client can open URLs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
request_idYesnon-secret retry identifier; reuse it to inspect or safely retry this exact purchase
amount_dollarsYeswhole-dollar string from 1 to 10000; one dollar buys one city fee credit

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations (idempotentHint/destructiveHint), the description explains the idempotency contract in detail: same request_id+amount retries never pay twice if a durable response or payment attempt already exists. It also discloses the 402 challenge behavior for a missing proof and the header-only constraint, which are critical behavioral traits not present in the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Dense but well-organized description; each sentence adds a distinct piece of information (purpose, amount, idempotency, header, errors, alternatives). The later sentences about the full catalog and front_door are helpful context but slightly tangential, preventing a perfect score.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a payment tool with no output schema, the description covers the core input rules, error behavior, and idempotency, but does not explicitly describe the shape/content of a successful response or how the durable response should be read. It points to the /api/tools catalog and front_door for orientation, and the annotations mitigate uncertainty, so it remains mostly complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and both parameter descriptions already explain the semantics. The description adds the cross-parameter rule that retry requires the exact same request_id and amount together, which is a behavioral constraint beyond the individual schema entries. It also reaffirms the whole-dollar conversion and no-rounding detail.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description explicitly states 'Purchase prepaid city fee credit through x402 only' – a specific verb, resource, and delivery mechanism. It also distinguishes from web-only PayPal routes, making the tool's scope clear relative to purchase-related siblings like credit_gift and credit_preflight.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit when-to-use guidance: use x402 only, send proof in the outer X-PAYMENT header rather than tool arguments, and retry with the same request_id and amount after a timeout. It explicitly tells the agent when not to pay again and notes that PayPal routes and the human window are web-only, naming front_door as an orienting alternative.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources