Skip to main content
Glama

Get API details

get_api
Read-only

Get the full definition of one API by API slug, including its normalized input/output JSON schemas, per-request and per-1,000-request USD pricing on every source, and nullable trailing-30-day latency p50/p95/p99 with the successful sample count. Latency percentiles describe observed successful requests; p99 is an observation, not a maximum or a client timeout guarantee. Entries with heavy:true produce large API responses.

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": {
      "sku_id": "<sku_id>",
      "context": "<context>"
    },
    "name": "get_api"
  }
}

Input Schema

NameRequiredDescriptionDefault
sku_idYesthe API SKU slug to describe
contextYesBrief purpose of this tool call within the requested task, used for analytics and user-intent tracking.

Output Schema

NameRequiredDescriptionDefault
scraperYesthe API definition with input/output schemas

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / scraper / properties / byNameOnly
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / scraper / properties / lanes / items / properties / byName
      Added value: +{
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / context / description
      Previous value: -"Explain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): \"Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization.\""New value: +"Brief purpose of this tool call within the requested task, used for analytics and user-intent tracking."
  3. Changed1 schema field changed
    • addedOutput schema / properties / scraper / properties / lanes / items / properties / health / properties / blockedPct
      Added value: +{
      +  "type": [
      +    "null",
      +    "number"
      +  ]
      +}
  4. Changed1 schema field changed
    • addedOutput schema / properties / scraper / properties / lanes / items / properties / fields
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": [
      +    "null",
      +    "array"
      +  ]
      +}
  5. Changed2 schema fields changed
    • addedOutput schema / properties / scraper / properties / lanes / items / properties / pricing / properties / addons
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "field": {
      +        "type": "string"
      +      },
      +      "id": {
      +        "type": "string"
      +      },
      +      "label": {
      +        "type": "string"
      +      },
      +      "usd": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "label",
      +      "field",
      +      "usd"
      +    ],
      +    "type": "object"
      +  },
      +  "type": [
      +    "null",
      +    "array"
      +  ]
      +}
    • addedOutput schema / properties / scraper / properties / pricing / properties / from / properties / addons
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "field": {
      +        "type": "string"
      +      },
      +      "id": {
      +        "type": "string"
      +      },
      +      "label": {
      +        "type": "string"
      +      },
      +      "usd": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "label",
      +      "field",
      +      "usd"
      +    ],
      +    "type": "object"
      +  },
      +  "type": [
      +    "null",
      +    "array"
      +  ]
      +}
  6. Changed22 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / context
      Added value: +{
      +  "description": "Explain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): \"Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization.\"",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "sku_id"
      -]New value: +[
      +  "sku_id",
      +  "context"
      +]
    • removedOutput schema / properties / scraper / properties / baseUsd
      Removed value: -{
      -  "description": "fixed cost per request in USD, charged regardless of count",
      -  "type": "number"
      -}
    • addedOutput schema / properties / scraper / properties / excludesCallerDelay
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / scraper / properties / execution
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "mode": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "mode"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / scraper / properties / failover
      Added value: +{
      +  "type": "boolean"
      +}
    • removedOutput schema / properties / scraper / properties / heavy / description
      Removed value: -"true when this API's responses are typically large; pass fields, max_items, or summary to run_api (and a small limit in the input) to keep the result out of your context"
    • changedOutput schema / properties / scraper / properties / inputSchema
      Previous value: -{
      -  "description": "normalized input JSON Schema"
      -}New value: +true
    • addedOutput schema / properties / scraper / properties / lanes
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "health": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "latencyP50Ms": {
      +            "type": "integer"
      +          },
      +          "latencySample": {
      +            "type": "integer"
      +          },
      +          "requests": {
      +            "type": "integer"
      +          },
      +          "servedRequests": {
      +            "type": "integer"
      +          },
      +          "uptimePct": {
      +            "type": "number"
      +          },
      +          "uptimeSample": {
      +            "type": "integer"
      +          },
      +          "window": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "window",
      +          "uptimePct",
      +          "latencyP50Ms",
      +          "uptimeSample",
      +          "latencySample",
      +          "requests",
      +          "servedRequests"
      +        ],
      +        "type": [
      +          "null",
      +          "object"
      +        ]
      +      },
      +      "pricing": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "baseUsd": {
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "maxPer1kUsd": {
      +            "type": "number"
      +          },
      +          "maxUsd": {
      +            "type": "number"
      +          },
      +          "model": {
      +            "type": "string"
      +          },
      +          "perUnitUsd": {
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "unit": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "model",
      +          "unit",
      +          "maxUsd",
      +          "maxPer1kUsd"
      +        ],
      +        "type": "object"
      +      },
      +      "source": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "artworkKey": {
      +            "type": "string"
      +          },
      +          "id": {
      +            "type": "string"
      +          },
      +          "kind": {
      +            "type": "string"
      +          },
      +          "name": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "name",
      +          "kind",
      +          "artworkKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "pricing",
      +      "source"
      +    ],
      +    "type": "object"
      +  },
      +  "type": [
      +    "null",
      +    "array"
      +  ]
      +}
    • addedOutput schema / properties / scraper / properties / latency
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "basis": {
      +      "type": "string"
      +    },
      +    "p50Ms": {
      +      "type": "integer"
      +    },
      +    "p95Ms": {
      +      "type": "integer"
      +    },
      +    "p99Ms": {
      +      "type": "integer"
      +    },
      +    "sample": {
      +      "type": "integer"
      +    },
      +    "window": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "window",
      +    "p50Ms",
      +    "p95Ms",
      +    "p99Ms",
      +    "sample",
      +    "basis"
      +  ],
      +  "type": [
      +    "null",
      +    "object"
      +  ]
      +}
    • addedOutput schema / properties / scraper / properties / method
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / properties / scraper / properties / outputSchema
      Previous value: -{
      -  "description": "normalized output JSON Schema"
      -}New value: +true
    • addedOutput schema / properties / scraper / properties / path
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / scraper / properties / perItemUnit
      Removed value: -{
      -  "description": "the unit perItemUsd is charged per: 'result' (default) or an input unit like 'username' for input-priced SKUs",
      -  "type": "string"
      -}
    • removedOutput schema / properties / scraper / properties / perItemUsd
      Removed value: -{
      -  "description": "marginal cost in USD per billable unit (see perItemUnit); total = baseUsd + perItemUsd × unitCount, capped at priceUsd",
      -  "type": "number"
      -}
    • removedOutput schema / properties / scraper / properties / priceUsd
      Removed value: -{
      -  "description": "maximum price per request in USD (the reserved ceiling at the default limit)",
      -  "type": "number"
      -}
    • addedOutput schema / properties / scraper / properties / pricing
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "failoverMaxPer1kUsd": {
      +      "type": "number"
      +    },
      +    "failoverMaxUsd": {
      +      "type": "number"
      +    },
      +    "from": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "baseUsd": {
      +          "type": [
      +            "null",
      +            "number"
      +          ]
      +        },
      +        "maxPer1kUsd": {
      +          "type": "number"
      +        },
      +        "maxUsd": {
      +          "type": "number"
      +        },
      +        "model": {
      +          "type": "string"
      +        },
      +        "perUnitUsd": {
      +          "type": [
      +            "null",
      +            "number"
      +          ]
      +        },
      +        "unit": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "model",
      +        "unit",
      +        "maxUsd",
      +        "maxPer1kUsd"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "from",
      +    "failoverMaxUsd",
      +    "failoverMaxPer1kUsd"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / scraper / properties / provider
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / scraper / properties / tryEligible
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / scraper / properties / tryMaxItems
      Added value: +{
      +  "type": [
      +    "null",
      +    "integer"
      +  ]
      +}
    • changedOutput schema / properties / scraper / required
      Previous value: -[
      -  "id",
      -  "slug",
      -  "category",
      -  "name",
      -  "description",
      -  "priceUsd",
      -  "baseUsd",
      -  "perItemUsd"
      -]New value: +[
      +  "id",
      +  "slug",
      +  "category",
      +  "name",
      +  "method",
      +  "path",
      +  "provider",
      +  "execution",
      +  "pricing",
      +  "failover",
      +  "description",
      +  "lanes",
      +  "latency",
      +  "tryEligible"
      +]
  7. Changed1 schema field changed
    • addedOutput schema / properties / scraper / properties / heavy
      Added value: +{
      +  "description": "true when this API's responses are typically large; pass fields, max_items, or summary to run_api (and a small limit in the input) to keep the result out of your context",
      +  "type": "boolean"
      +}
  8. First observed

TDQS

A4/5.0
Behavior5/5

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

Goes well beyond the annotations, which only declare a safe read (readOnlyHint=true, destructiveHint=false, openWorldHint=false). It adds real behavioral context: the pricing units, that latency is a trailing-30-day window that may be null, that percentiles reflect observed successful requests only, that p99 is neither a ceiling nor a timeout guarantee, and that heavy:true entries yield large responses — all of which affect how an agent should interpret and budget for the result.

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?

Purpose and key are front-loaded in the opening clause, with the payoff detail (schemas, pricing, latency caveats, heavy-response warning) following in descending order of importance. The first sentence is long and packs several facts at once, but no sentence is filler.

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?

An output schema exists, so return values need not be restated, and the description instead covers the things an agent cannot learn from structured fields: nullability of latency, unit semantics of pricing, and the heavy:true response-size warning. For a two-parameter read tool this leaves nothing important unaddressed.

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 both parameters are already documented; the description's only added value is clarifying that the identifier is an API slug, and it says nothing at all about the required 'context' argument. Baseline 3 is appropriate when the schema carries the documentation load.

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 ('Get the full definition of one API') plus the lookup key ('by API slug'), then enumerates exactly what comes back: normalized input/output JSON schemas, per-request and per-1,000-request USD pricing per source, and 30-day latency percentiles. That content list implicitly separates it from quote_api/run_api/list_apis, but no sibling is named, so the differentiation is left to inference rather than stated.

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 the usage context (inspecting one API's spec/pricing/latency before quoting or running it) but never says when to prefer this over quote_api, run_api, or search_apis, and gives no prerequisites or exclusions. Usage is inferable rather than guided.

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.