Skip to main content
Glama

recommend_subgraph

Matches a natural-language goal to ranked subgraphs with reliability scores. Infers domain and protocol type, then returns subgraph IDs, starter queries, and payment routes without executing GraphQL.

Instructions

Given a natural-language goal like 'find DEX trades on Arbitrum' or 'get lending liquidation data', returns the best matching subgraphs with reliability scores. Automatically infers domain and protocol type from the goal. Discovery only — it returns ids and starter queries, it does not execute GraphQL. Each result carries both query routes in payment_options: a keyed gateway URL (Authorization: Bearer <STUDIO_API_KEY>) or an x402 URL ($0.01 USDC on Base, no key).

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": {
      "goal": "<goal>"
    },
    "name": "recommend_subgraph"
  }
}

Input Schema

NameRequiredDescriptionDefault
goalYesWhat you want to do, e.g. 'query Uniswap pool data on Base'
chainNoOptional chain filter: mainnet, arbitrum-one, base, matic, etc.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.13.7
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / chain / maxLength
      Added value: +1000
    • addedInput schema / properties / goal / maxLength
      Added value: +1000
  2. First observedv1.0.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description does substantial work: it discloses automatic domain/protocol inference, that results are ids plus starter queries and are never executed, and that each result carries two payment routes with auth requirements and a $0.01 USDC cost. It stops short of describing reliability-score semantics or result count/pagination behavior.

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?

Four sentences, each contributing a distinct fact (purpose, inference behavior, non-execution boundary, payment options), with the core purpose front-loaded. The final payment sentence is long but carries non-redundant cost and auth information.

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 no-annotation, no-output-schema tool this covers most of what an agent needs: what comes back (ids, starter queries, reliability scores, payment_options), what does not happen (no GraphQL execution), and how to authenticate. Only the shape/count of results and scoring semantics remain unspecified.

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% and both parameters are already documented with an example, so the schema carries the load. The description reinforces that `goal` is free-form natural language and implies the `chain` filter through examples like 'on Arbitrum', but adds no format or precedence rules beyond 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?

States a specific verb and resource ('returns the best matching subgraphs with reliability scores') scoped to a natural-language goal, and explicitly sets its boundary with 'Discovery only — it returns ids and starter queries, it does not execute GraphQL.' That boundary is what separates it from execution-oriented siblings such as query_for_goal.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete trigger examples ('find DEX trades on Arbitrum', 'get lending liquidation data') and a clear negative condition via 'it does not execute GraphQL', which implies handing off to an execution tool. It never names that alternative tool explicitly, so routing is inferable rather than spelled out.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.