Skip to main content
Glama

API recommendation: which API to call for a task

recommend
Read-only

Describe a task in plain words and get the best-matching paid API calls for it from a catalog of 320 tools (web search and page reading, LLM chat, token prices and chain reads on 5 networks, sanctions and company checks, weather, finance and utilities): each pick with the exact call URL, required inputs, price, MCP tool name and whether it is in the free calls. Use when an agent needs to find which API to call before paying for one. Example: need=current gas price on Base. Price $0.002/call via x402 USDC or a card key (/credits), first 25 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Input Schema

NameRequiredDescriptionDefault
needYesThe task in plain words, up to 300 characters
countNoHow many picks, 1 to 5 (default 3)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the cost model: $0.002/call via x402 USDC or a card key, first 25 free, failed calls free, and that each call is charged so repeats are not free. This is exactly the kind of economic and auth context annotations cannot express, and the 'repeats are not free' note is consistent with idempotentHint=false.

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 core purpose and the catalog scope, with pricing and the example trailing correctly. The body is a dense multi-clause sentence with a parenthetical category list that slows reading, but no clause is genuinely dead weight.

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?

For a 2-parameter discovery tool with no output schema, the description covers catalog breadth, the shape of each recommendation, cost and free tier, and the read-only nature of the call. An agent has everything needed to invoke it and interpret the result without opening anything else.

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 100%, so both parameters are already documented; the baseline is 3. The description adds value by showing a real 'need' value, illustrating the expected phrasing and specificity, though it says nothing about the count parameter beyond what the schema states.

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?

States a specific verb and resource: turn a plain-language task into best-matching paid API calls from a 320-item catalog, and enumerates the return fields (call URL, required inputs, price, MCP tool name, free-call status). It is unmistakably distinct from the utility siblings (base64_encode, calc_tip, uuid), which do work rather than recommend tools.

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?

Explicit triggering condition: 'Use when an agent needs to find which API to call before paying for one', which also implies the ordering constraint (recommend first, then pay). A concrete worked example ('need=current gas price on Base') removes ambiguity about the granularity of a 'task'.

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.