semantic_search_subgraphs
Find subgraphs by natural-language use case using vector similarity, ranking registry entries by description, entities, and protocol metadata.
Instructions
Discovery only — this tool does not execute GraphQL and never introspects a schema. To run a query, call execute_query (opt-in). To inspect a schema, call get_schema (opt-in). Semantic vector search over the subgraph registry. Embeds the query string with sentence-transformers/all-MiniLM-L6-v2 (the same model architecture used at crawl time; the runtime uses an INT8-quantized ONNX build so absolute scores can drift ~0.01-0.03 from the float32 reference but top-K rankings are stable) and ranks subgraphs by cosine similarity against the precomputed 384-dim embedding of each subgraph's description + entities + protocol metadata. Prefer this over search_subgraphs when the goal is fuzzy, paraphrased, or describes a use-case rather than a literal protocol/entity name. Supports the same domain/network/protocol_type/min_reliability pre-filters as search_subgraphs (applied as SQL WHERE before cosine scoring for performance). Returns the same shape as search_subgraphs plus a semantic_score in [0,1] (>0.5 is typically a strong match).
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": {
"query": "<query>"
},
"name": "semantic_search_subgraphs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results to return (default 10, max 50) | |
| query | Yes | Natural-language description of the data the agent wants to query, e.g. 'on-chain options market activity' or 'lending positions near liquidation' | |
| domain | No | Pre-filter by domain (defi, nfts, dao, gaming, identity, infrastructure, social, analytics) | |
| network | No | Pre-filter by chain (mainnet, arbitrum-one, base, matic, bsc, optimism, avalanche, etc.) | |
| min_score | No | Minimum cosine similarity to include (0-1). Default 0.3. | |
| protocol_type | No | Pre-filter by protocol type (dex, lending, bridge, staking, options, perpetuals, etc.) | |
| include_denied | No | Include curation-denied deployments (deniedAt > 0 — denied indexing rewards; not proof of spam or query failure). Default false. When true, each result carries denied: true so the choice stays visible. | |
| min_reliability | No | Pre-filter: minimum reliability score (0-1). | |
| include_testnets | No | Include testnet deployments (sepolia, goerli, holesky, chapel, fuji, mumbai, amoy, *-testnet). Default false — a testnet twin's text is near-identical to its mainnet original, so it competes for the top slot without being the thing anyone wanted. Ignored when you explicitly request a testnet network, so network:"sepolia" still works. Each result carries testnet: true|false. | |
| include_unserved | No | Include records with zero active allocations in the registry snapshot. Default false is a discovery heuristic, NOT a queryability test; Studio or other serving routes may work without allocations. |