Skip to main content
Glama

search_subgraphs

Find and filter blockchain subgraphs by domain, network, protocol type, or keyword to locate indexed data sources for querying.

Instructions

Search and filter the classified subgraph registry (15,500+ subgraphs). Filter by domain (defi, nfts, dao, gaming, identity, infrastructure, social, analytics), network (mainnet, arbitrum-one, base, matic, bsc, optimism, avalanche), protocol_type (dex, lending, bridge, staking, options, perpetuals, nft-marketplace, yield-aggregator, governance, name-service), canonical entity type (liquidity_pool, trade, token, position, vault, loan, collateral, liquidation, nft_collection, nft_item, nft_sale, proposal, delegate, domain_name, account, transaction, daily_snapshot, hourly_snapshot), or free-text keyword. Returns subgraphs ranked by reliability score with query URLs. To query data: POST GraphQL to https://gateway.thegraph.com/api/[api-key]/subgraphs/id/[subgraph-id] (get API key from https://thegraph.com/studio/apikeys/).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryNoFree-text search across names and descriptions
domainNoFilter by domain: defi, nfts, dao, gaming, identity, infrastructure, social, analytics
networkNoFilter by chain: mainnet, arbitrum-one, base, matic, bsc, optimism, avalanche, etc.
protocol_typeNoFilter by protocol type: dex, lending, bridge, staking, options, perpetuals, etc.
entityNoFilter by canonical entity: liquidity_pool, trade, token, position, vault, loan, etc.
min_reliabilityNoMinimum reliability score (0-1). Higher = more signal/stake/fees.
limitNoMax results to return (default: 20)
Behavior4/5

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

With no annotations provided, the description carries full burden and does well: it discloses the registry size (15,500+ subgraphs), ranking method (by reliability score), return format (query URLs), and post-search workflow (how to actually query data with API key). It doesn't mention rate limits, authentication needs, or pagination behavior, but provides substantial operational context beyond basic functionality.

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 description is appropriately sized and front-loaded: the first sentence establishes core functionality, followed by filter options, return format, and post-usage instructions. Every sentence adds value, though the long list of example values in the first sentence could be slightly streamlined.

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?

Given 7 parameters with full schema coverage but no annotations or output schema, the description provides good context: it explains what the tool does, how results are ranked, what's returned (query URLs), and crucial next steps for data querying. The main gap is lack of output format details, but the description compensates well with operational guidance.

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 description coverage is 100%, so the schema already documents all 7 parameters thoroughly. The description adds minimal value beyond the schema by listing example values for filters (e.g., 'defi, nfts, dao' for domain) and clarifying that 'query' is 'free-text keyword' search. This meets the baseline 3 when schema does heavy lifting.

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?

The description clearly states the tool's purpose: 'Search and filter the classified subgraph registry (15,500+ subgraphs)' with specific verbs ('search', 'filter') and resource ('subgraph registry'). It distinguishes from siblings by focusing on search/filtering capabilities rather than detail retrieval (get_subgraph_detail), statistics (list_registry_stats), or recommendations (recommend_subgraph).

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?

The description provides explicit guidance on when to use this tool vs alternatives: 'To query data: POST GraphQL to https://gateway.thegraph.com/api/[api-key]/subgraphs/id/[subgraph-id]' indicates this tool is for discovery/filtering, while actual data querying requires a different API call. It also implicitly contrasts with siblings by focusing on search/filtering rather than other operations.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/PaulieB14/subgraph-registry'

If you have feedback or need assistance with the MCP directory API, please join our Discord server