Skip to main content
Glama
forgemeshlabs

x402 Utility

call_endpoint

Call any route in the Utility Grid by passing its path and JSON body. Automatically handles the x402 payment flow from 402 challenge to USDC payment on Base, returning the result.

Instructions

PAID (price varies by route, $0.001-$0.05) — the generic way to call ANY route in the Utility Grid. Pass the route path and a JSON body matching its input schema (use get_endpoint_spec first if unsure). Handles the full x402 payment flow automatically: fetches the 402 challenge, signs a USDC payment on Base, retries, and returns the result. Requires WALLET_PRIVATE_KEY.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyNoJSON body matching the route's input schema (see get_endpoint_spec)
pathYesRoute path, e.g. 'chess-moves' or '/geocode-city'
Behavior4/5

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

With no annotations, the description carries full disclosure burden and does well: it mentions PAID pricing, the x402 payment flow (fetches challenge, signs USDC on Base, retries), and the required WALLET_PRIVATE_KEY. It does not detail error handling or return format, but the core behavioral traits—cost, payment execution, and key requirement—are transparently stated.

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?

The description is concise at roughly three sentences but packs essential information upfront: cost, generic purpose, usage instruction, payment flow, and key requirement. Each clause adds value, though slight redundancy exists ('generic way' + 'ANY route' could be tighter). It is well-structured and front-loaded with critical cost/purpose info.

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?

Given the tool's generic nature and no output schema, the description covers key operational concerns: cost, payment flow, key requirement, and how to obtain the correct body (via get_endpoint_spec). It does not mention failure behavior or return format explicitly, but 'returns the result' implies the route's output is returned, which is adequate for a generic caller.

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%, so the schema already documents both parameters. The description reinforces the 'body' as 'a JSON body matching its input schema' and gives path examples, but adds little beyond the schema. The 'use get_endpoint_spec' hint is useful but not a substitute for schema-level detail, so a baseline 3 is appropriate.

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?

The description clearly states the tool's function: 'the generic way to call ANY route in the Utility Grid' with a specific verb (call) and resource (routes). It distinguishes itself from sibling tools like get_endpoint_spec (which retrieves specs) and list_capabilities (which lists capabilities), making its purpose unambiguous.

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

Usage Guidelines4/5

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

The description provides clear usage context: it is the generic route caller, and it explicitly advises 'use get_endpoint_spec first if unsure' about the body schema, naming a sibling tool as a prerequisite. It also mentions requirements (WALLET_PRIVATE_KEY) and cost, though it does not explicitly state when not to use it (e.g., for discovery or when no payment key is available).

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/forgemeshlabs/utility-grid-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server