Skip to main content
Glama
forgemeshlabs

x402 Utility

get_endpoint_spec

Get full call spec for any API route: price, JSON schema, request and response examples from live OpenAPI docs. Use before call_endpoint to know the exact body.

Instructions

FREE — no wallet needed. Full call spec for one route: price, input JSON schema, a worked request example, and a worked response example, straight from the live OpenAPI discovery doc. Pass the route path (with or without a leading slash, e.g. 'chess-moves' or '/chess-moves'). Use this before call_endpoint to know exactly what body to send.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesRoute path, e.g. 'chess-moves' or '/geocode-city'
Behavior4/5

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

Discloses key behaviors: free ('FREE — no wallet needed'), source ('straight from the live OpenAPI discovery doc'), and content (price, schema, examples). It doesn't cover error handling or what happens if the route doesn't exist, but for a read-only spec tool, this is sufficient. No annotations provided, so description carries the burden; it does so reasonably.

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?

Two sentences, front-loaded with the primary purpose. Every sentence provides valuable information: first describes outputs, second gives usage instructions and context. No redundant or filler content.

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

Completeness5/5

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

Despite no output schema or annotations, the description completely covers what the tool does, how to use it, and why it's useful. It explains the 'free' aspect, the route path requirement, and that it returns examples and schema. For a single-parameter tool, this is fully sufficient guidance.

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 already covers the parameter with description and examples (100% coverage), giving a baseline of 3. The description adds extra value by specifying the leading slash is optional ('with or without a leading slash') and reiterates examples, clarifying the expected input format beyond the schema.

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 specifies exactly what the tool does: 'Full call spec for one route: price, input JSON schema, a worked request example, and a worked response example'. It clearly differentiates from siblings by indicating it's a preparation step before call_endpoint and distinct from listing/searching capabilities.

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?

Explicitly instructs to use before call_endpoint: 'Use this before call_endpoint to know exactly what body to send.' Also clarifies that no wallet is needed, establishing when it's appropriate. The path format guidance ('with or without a leading slash') provides clear usage details.

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