Skip to main content
Glama

get_top_subgraph_deployments

Find subgraphs that index a specific contract on a given chain, ranked by reliability score and 30-day query volume. Use it to pick deployments without querying the gateway.

Instructions

Find subgraphs whose crawled manifest indexes a given contract on a given chain. Official subgraph-MCP name, better ranking: reliability_score then real query_volume_30d, not query fees and not the official 0-count oracle. contract_addresses come from subgraph.yaml dataSources/templates at crawl time — coverage is high for EVM subgraphs, empty for most substreams-powered ones. Does not query the gateway. Default 3 results, matching official.

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": {
      "contract_address": "<contract_address>",
      "chain": "<chain>"
    },
    "name": "get_top_subgraph_deployments"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesOfficial subgraph-MCP uses graph-node ids here (`mainnet`, not `ethereum`). We accept both; aliases resolve (ethereum→mainnet, arbitrum→arbitrum-one, polygon→matic).
limitNoMax results (default 3, max 20)
contract_addressYesEVM contract address (0x-prefixed 40 hex)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.13.7

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses the ranking order (reliability_score then real query_volume_30d), what the ranking deliberately excludes, the crawl-time provenance of contract_addresses with its coverage gaps, and that results do not come from a live gateway query. Missing only auth/rate-limit and result-shape detail.

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?

The core purpose is front-loaded in the first sentence and each following sentence contributes a distinct constraint (ranking, coverage, gateway, default limit). The second sentence is terse to the point of being cryptic ('Official subgraph-MCP name, better ranking'), which costs a little readability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description should convey what a result looks like; it names the ranking fields but not the actual returned record fields or ordering guarantees. It does cover defaults and the important coverage caveat, so it is adequate but leaves the return shape underspecified.

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 chain aliasing and the limit default/max are already documented in the schema. The description adds meaning only for contract_address matching by explaining that addresses derive from subgraph.yaml dataSources/templates at crawl time, which sets expectations but adds no syntax detail beyond 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: find subgraphs whose crawled manifest indexes a given contract on a given chain. That is far more precise than a generic search, but it never distinguishes itself from the close sibling find_by_contract, which an agent could easily pick instead.

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 when the tool applies (manifest-level contract indexing) and adds two useful boundary conditions: it does not query the gateway, and coverage is high for EVM but empty for most substreams subgraphs. It never names an alternative tool or states when not to use this one.

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