Skip to main content
Glama

api_endpoint

Find the exact operation in a public API's OpenAPI spec for a task: method, path, parameters, request body fields, auth. Deterministic search, no LLM. Input: {api, query}. Optional {spec_url} if you already know the spec. Costs $0.002 USDC per call via x402 (Base preferred, or Solana); no charge on errors. Free tier: pass free_trial=true (10 calls/day).

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": {
      "api": "<api>",
      "query": "<query>"
    },
    "name": "api_endpoint"
  }
}

Input Schema

NameRequiredDescriptionDefault
apiYes
queryYeswhat you want to do, e.g. 'list repository issues'
spec_urlNo
free_trialNoset true to use the free tier (10 calls/day) without payment
x402_paymentNobase64 x402 payment payload; omit to receive payment requirements

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that search is deterministic with no LLM, that each call costs $0.002 USDC via x402 (Base or Solana), that errors are not charged, and that a 10-call/day free tier exists. It does not describe the response shape, failure modes, or latency.

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?

Front-loaded with the action and its outputs, followed by genuinely necessary payment and free-tier mechanics. The 'Input: {api, query}' fragment mildly restates the schema, but nothing else is padding.

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?

No output schema exists, and the description fills that gap by listing what comes back (method, path, params, body fields, auth). The paid x402 flow is explained well enough to invoke without a failed call, though the exact 402 challenge/retry sequence is left implicit.

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 60%, and the description reinforces api/query as 'the task' and spec_url as the known-spec shortcut, plus the payment meaning behind x402_payment. Two parameters still rely on schema text alone, and 'api' (name vs. URL vs. spec identifier) is never clarified anywhere, so the description only partially compensates.

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 and resource — 'Find the exact operation in a public API's OpenAPI spec' — and enumerates the returned artifacts (method, path, parameters, request body fields, auth). It does not, however, differentiate itself from the sibling api_lookup, leaving the agent to infer which one to use.

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?

Gives concrete invocation guidance: pass {api, query}, add spec_url 'if you already know the spec', and use free_trial=true for the free tier. It stops short of naming when to prefer the sibling api_lookup or when this tool is the wrong choice.

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