Skip to main content
Glama

Compare APIs in a category

compare_category
Read-only

Call this to weigh the options in one area instead of taking find_best's single recommendation, or when the user asks "which is the cheapest / most reliable X API?". Returns every tracked API in the category ranked by score, with price per call, reliability, usage and any warnings. Category ids: web-search, web-extraction, llm-inference, crypto-prices, onchain-data, enrichment, weather, news, social-media, jobs, ecommerce, maps-places, translation, messaging, travel, stocks, pdf-generation, captcha-solving, sports-data, shopping, speech-audio, developer-tools. Narrow by platform or task ids from list_categories. Free, read-only and quick: it never calls or pays the APIs it describes.

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": {
      "category": "<category>"
    },
    "name": "compare_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
railNoPaid rails to include, e.g. ["x402"] for pay-per-call only (default both)
taskNoSub-category task ids, any of, e.g. ["comments"]. See list_categories
limitNo
recentNotrue = only endpoints checked in the last 7 days
categoryYesCategory id, e.g. 'web-search'
platformNoSub-category platform ids, any of, e.g. ["instagram","tiktok"]. See list_categories
hide_flagsNoWarnings to leave out, e.g. ["wallet-mismatch", "few-repeat-buyers"]
max_price_usdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / hide_flags / items / enum
      Previous value: -[
      -  "wallet-mismatch",
      -  "price-mismatch",
      -  "few-repeat-buyers",
      -  "unusual-seller-traffic",
      -  "test-listing"
      -]New value: +[
      +  "wallet-mismatch",
      +  "price-mismatch",
      +  "few-repeat-buyers",
      +  "unusual-seller-traffic",
      +  "test-listing",
      +  "resale"
      +]
  2. Changed3 schema fields changed
    • addedInput schema / properties / platform
      Added value: +{
      +  "description": "Sub-category platform ids, any of, e.g. [\"instagram\",\"tiktok\"]. See list_categories",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / rail
      Added value: +{
      +  "description": "Paid rails to include, e.g. [\"x402\"] for pay-per-call only (default both)",
      +  "items": {
      +    "enum": [
      +      "x402",
      +      "apify"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / task
      Added value: +{
      +  "description": "Sub-category task ids, any of, e.g. [\"comments\"]. See list_categories",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  3. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond readOnlyHint/openWorldHint it discloses what the response contains (ranked list with price per call, reliability, usage, warnings) and a non-obvious cost/side-effect guarantee: it never calls or pays the APIs it describes, and is quick. That is exactly the kind of context annotations cannot express.

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 decision rule, then return contents, then the guardrail. The 22-item category list bulks up the middle, but it compensates for a missing enum and each entry is usable, so the length is mostly earned.

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?

With no output schema, the description steps in to sketch the return shape, and it covers the required parameter's value space and safety profile. Minor gaps remain: it says nothing about how 'score' is computed, sort direction, or how limit interacts with the 'returns every tracked API' claim.

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 coverage is 75%, but the schema only gives 'e.g. web-search' for the required category — the description supplies the full enumerable id list, which is real added meaning for the most important parameter, and specifies that platform/task ids come from list_categories. The optional filters (rail, recent, hide_flags, max_price_usd) are left entirely to 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 names a concrete operation on a concrete resource ('weigh the options in one area', 'every tracked API in the category ranked by score') and explicitly contrasts itself with the sibling find_best's 'single recommendation', so an agent can distinguish the two without opening the schema.

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?

It states the selecting condition (user wants options rather than one recommendation) and even quotes the triggering phrasing ('which is the cheapest / most reliable X API?'), plus a narrowing route via list_categories. Nothing about when to choose this over find_best is left to inference.

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