Skip to main content
Glama

All AI LLC API: documents and calculators

Look up one offer

get_offer
Read-onlyIdempotent

Returns one offer by id from /offers.json. Unknown ids are free (404). PAID: 2 credits ($0.002) per successful call from one-time prepaid credits; send Authorization: Bearer <api_key>. Failed or empty calls are free.

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": {
      "id": "<id>"
    },
    "name": "get_offer"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
api_keyNoOptional. Only for clients that cannot send an Authorization header.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description adds genuinely new behavior: credit cost per successful call, that failures and unknown ids (404) are free, and that a bearer token is required. It stops short of describing response shape or rate limits, which keeps it from a 5.

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?

Three short sentences, front-loaded with the core action, then cost/auth, then the free-failure rule. No filler and no repeated schema content.

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?

For a simple single-record read with rich annotations, the definition covers access, cost, and error behavior, which is what an agent needs before invoking it. The gap is the absence of any sense of what an offer record contains, which matters slightly more here since there is no output schema.

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 50%: api_key is documented in the schema, id is not. The description adds meaning to id (unknown ids yield 404 and cost nothing) and clarifies the auth path with the header example, which partially compensates. It still says nothing about id format or what constitutes a valid offer id beyond the length limits in the schema.

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 ('Returns one offer by id') plus the backing endpoint (/offers.json), which is clear. It does not distinguish itself from lookups like get_item or catalog_query, so an agent gets the verb+resource but no explicit differentiation.

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 implied by 'by id' and the 404 note tells the agent what happens with unknown ids. There is no explicit when-to-use guidance, no mention of when to prefer catalog_query or get_item, and no statement of prerequisites beyond the auth header.

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.