Skip to main content
Glama

api_lookup

Look up any public API for an agent: finds its OpenAPI spec and llms.txt/docs, and returns base URL, auth scheme, rate-limit and error notes, key endpoints and source links (LLM-condensed, cached 7d). Input: {api} (name like 'stripe', a domain, or docs URL), optional {question}. Costs $0.005 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>"
    },
    "name": "api_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
apiYesAPI name, domain or docs URL
questionNooptional focus, e.g. 'how to create a payment'
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
Behavior5/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 so thoroughly: it discloses the cost per call, the payment method (x402 on Base/Solana), that errors are not charged, the free-trial option (10 calls/day with free_trial=true), and the 7-day cache. It also mentions the output is LLM-condensed. This covers all major behavioral traits an agent needs.

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 a single, dense sentence-like block that front-loads the purpose and flows logically through return values, input format, and payment details. It is information-rich with little wasted text, though breaking it into bullet points could improve scannability.

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 no output schema and a fairly complex tool (external API lookup with payment), the description provides complete enough context: it lists the returned fields, explains the payment mechanism and free tier, and notes caching. Only minor gaps remain, such as the exact response format (e.g., JSON vs. text) and any tool-level rate limits beyond the free tier.

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 description coverage is 100%, so the baseline is 3. The description adds examples for the api parameter ('stripe', a domain, or docs URL) and the optional question parameter, but repeats information already in the schema and does not add further semantics for free_trial or x402_payment beyond what the schema descriptions provide.

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?

The description states a specific verb ('look up') and resource ('public API') and lists exactly what is returned (OpenAPI spec, llms.txt, base URL, auth scheme, rate-limit notes, etc.), making the tool's purpose unambiguous. It does not explicitly contrast with siblings like api_endpoint or url_to_markdown, but the level of detail distinguishes it.

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?

The description implies when to use this tool (to discover API metadata before making calls) but offers no explicit guidance on when to choose it over alternatives such as api_endpoint or url_to_markdown. No exclusions or prerequisites are stated beyond the payment mechanics.

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