Skip to main content
Glama

AgentKit x402 Edge API & MCP

agentkit_get_payment_challenge

Generate an exact x402 v2 payment requirement payload (Base & Solana USDC) for any paid AgentKit route.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "route": "<route>"
    },
    "name": "agentkit_get_payment_challenge"
  }
}

Input Schema

NameRequiredDescriptionDefault
routeYesPaid route path, e.g. /v1/dns/audit

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior2/5

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

No annotations exist, so the description carries the full burden and mostly does not. It discloses the protocol version and supported chains (x402 v2, Base & Solana USDC), but says nothing about whether the call is side-effect free, whether it requires auth or an existing 402 response, whether it is deterministic, or what the payload contains — and with no output schema there is nothing else to fall back on.

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

Conciseness5/5

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

One dense sentence with the output artifact leading and the scope trailing. No filler, no restatement of the name.

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

Completeness3/5

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

Coverage is thin for a tool whose whole value is the exact payload it emits: with no annotations and no output schema, the description should at least sketch the shape of the returned requirement object or its consumption. The parameter side is fully covered, but the return side is left opaque.

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

Parameters3/5

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

Schema coverage is 100% and the single 'route' parameter already carries an enum of five concrete paths plus an example, so the description adds little beyond restating 'for any paid AgentKit route'. Baseline 3 applies when the schema does the heavy lifting.

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

Purpose4/5

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

States a specific verb ('Generate') and a specific resource ('x402 v2 payment requirement payload') scoped to 'any paid AgentKit route'. An agent can tell it produces a payment payload rather than performing the audit itself, which separates it from agentkit_demo_dns_audit, though it never names a sibling explicitly.

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

Usage Guidelines3/5

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

Usage is only implied: you call it to obtain the payment requirement for a paid route. There is no statement of when this is required versus when to call agentkit_list_x402_catalog first, no mention of the 402 flow, and no exclusions, so the agent must infer the sequencing.

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.