Skip to main content
Glama

Run a GraphQL query against the Snapshot hub

snapshot_query
Read-only

Runs custom GraphQL queries against the Snapshot hub API to fetch proposals, votes, spaces, users, and strategies not covered by fixed read tools.

Instructions

Runs any GraphQL query against the Snapshot hub API — spaces, proposals, votes, follows, users, strategies, anything the schema exposes — for questions the fixed read tools do not cover (a space's full vote history, who follows it, strategy parameters, cross-space voter lookups). The tool only sends query operations — mutations and subscriptions are rejected. Use first/skip and select only the fields you need: responses over 1 MB are refused, and results over 50k characters are truncated. Schema reference: https://docs.snapshot.box.

Input Schema

NameRequiredDescriptionDefault
queryYesGraphQL query, e.g. "query { space(id: \"ens.eth\") { name followersCount } }"
variablesNoValues for the query's $variables, if it declares any

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior4/5

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

Adds substantial behavior beyond annotations: only query operations are allowed, responses over 1 MB are refused, and results over 50k characters are truncated. Annotations already declare readOnly/openWorld, but the response-size and operation-type constraints are valuable context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core purpose, then constraints and schema reference in a compact paragraph. Every sentence earns its place by clarifying scope, limits, or safe usage.

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?

Complete for an open-ended GraphQL query tool with no output schema: it explains allowed operations, size limits, truncation behavior, pagination guidance, and points to the external schema reference. Nothing essential for correct invocation is missing.

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 the query and variables parameters are already documented. The description adds meaningful usage semantics beyond the schema: use first/skip, select only needed fields, and keep responses within size limits.

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 — runs GraphQL queries against the Snapshot hub API — and enumerates the domains it can query. It explicitly positions itself as the fallback for questions the fixed read tools do not cover, distinguishing it from sibling read 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?

Gives explicit when-to-use guidance: for questions the fixed read tools do not cover, with concrete examples. It also gives when-not guidance by stating that mutations and subscriptions are rejected, and recommends pagination/field selection.

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