querySubgraph
Execute GraphQL queries against specific subgraphs on TheGraph MCP Server to retrieve indexed blockchain data in JSON format.
Instructions
Execute a GraphQL query against a specified subgraph.
Args: subgraphId (str): The ID of the subgraph to query. query (str): The GraphQL query string to execute.
Returns: str: Query result in JSON format, or an error message.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
query | Yes | ||
subgraphId | Yes |
Input Schema (JSON Schema)
{
"properties": {
"query": {
"title": "Query",
"type": "string"
},
"subgraphId": {
"title": "Subgraphid",
"type": "string"
}
},
"required": [
"subgraphId",
"query"
],
"title": "querySubgraphArguments",
"type": "object"
}