Get graphql schema
get-graphql-schemaReturn the GraphQL schema for the extensions endpoint, in the size you need.
WHEN TO USE:
Before query-graphql, to discover fields, arguments and types
When a query fails on an unknown field — the schema is per-deployment and depends on which extensions (roboledger, roboinvestor) are enabled
PARAMETERS:
format:index(default) lists every Query root field with its arguments and return type, one per line — start here.sdlis the whole schema as Schema Definition Language, and is large: ask for it only when the index andtypesare not enough.introspectionis the full JSON introspection result, for tooling that consumes the standard format.types: names of types to read in full, with their fields and descriptions, e.g.['TrialBalance', 'TrialBalanceRow']. Takes the return types the index names.formatis ignored with it.
RETURNS: schema, the text asked for. With types, unknown_types names any that the schema does not have.
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-graphql-schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| types | No | Type names to return in full, as SDL. | |
| format | No | What to return. Defaults to 'index'. |