Skip to main content
Glama

get_deployment_30day_query_counts

Retrieve 30-day query volume for one or more subgraph deployments from the local registry; unknown IPFS hashes return null rather than a false zero.

Instructions

Return 30-day query volume for one or more deployments from the local registry. Official subgraph-MCP name; unlike official, these numbers are real (the official tool has been observed returning 0 for ENS, Lido, Uniswap). Pass ipfs_hashes (Qm…) and/or ids. Does not query the gateway. Unknown hashes return query_volume_30d: null with error not_in_registry rather than a fake 0.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_deployment_30day_query_counts"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoSingle subgraph id convenience field
idsNoSubgraph ids to look up
ipfs_hashNoSingle IPFS hash convenience field
ipfs_hashesNoManifest IPFS hashes (Qm…), the official subgraph-MCP input

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.13.7

TDQS

A4.1/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 load and does well: it discloses the data source (local registry, not gateway) and the exact failure behavior — unknown hashes yield query_volume_30d: null with error not_in_registry rather than a misleading 0. It omits auth requirements, rate limits, and what happens when neither id nor ipfs_hash is supplied despite zero required parameters.

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 action and input guidance, and each sentence contributes something. The aside about the official tool returning 0 for ENS, Lido, and Uniswap is useful motivation but is the longest sentence and could be trimmed to a clause.

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?

No output schema exists, and the description compensates by naming the returned field (query_volume_30d) and the error value not_in_registry. It does not say what happens with zero arguments or whether the response includes per-deployment metadata, which matters for a tool with four optional parameters.

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 the baseline is 3. The description adds a little — that ipfs_hashes and ids may be combined and that ipfs_hashes is the official subgraph-MCP input — but the Qm… format hint merely repeats the schema's own text, and the single-value convenience fields (id, ipfs_hash) are never explained.

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: 'Return 30-day query volume for one or more deployments from the local registry.' The scope qualifier ('from the local registry', 'Does not query the gateway') separates it from gateway-backed siblings such as get_subgraph_detail or 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 input guidance ('Pass ipfs_hashes (Qm…) and/or ids') and an explicit scope exclusion ('Does not query the gateway'), plus a stated reason to prefer this over the official tool. It stops short of naming a sibling tool or stating the condition under which a different tool should be chosen instead.

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