alix-graphql-mcp-read-tool

v0.3.8
alix-graphql-mcp-read-tool Checked 3 days ago Published 1 month ago

Read-only MCP tool for the Alix GraphQL API.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

execute_graphql Execute Alix GraphQL operation

**FALLBACK ONLY — DO NOT USE FIRST.** Before calling this tool you MUST call `list_predefined_queries` and try `execute_predefined_queries`. Use this only when no predefined template fits. Run a GraphQL operation against the Alix API (read-only). The operation is scoped to a single estate via the `estate_id` argument, which the tool injects as the GraphQL variable `$estateId`. Your document should declare `$estateId: String!` (not `ID!`) and pass it to any field that requires an estate scope. Mutations and subscriptions are rejected. Returns the raw `{data, errors, extensions, http_status}`…

ParameterTypeDescription
estate_id *string
graphql *string
operation_name
variables

list_predefined_queries List predefined GraphQL queries

**REQUIRED FIRST STEP FOR READS.** **START WITH THIS TOOL FIRST** — call it before `introspect_schema` or `execute_graphql`. Return predefined query names with a short description and accepted arguments. Then run a match via `execute_predefined_queries`. Only if nothing fits, fall back to `introspect_schema` + `execute_graphql`.

execute_predefined_queries Execute predefined GraphQL queries

**PREFERRED READ PATH.** Execute one or more predefined query templates by name. Arguments: `query_names: string[]`, `variables: object` keyed by argument names from `list_predefined_queries`. **REQUIRED:** call `list_predefined_queries` first. Do NOT jump to `introspect_schema` / `execute_graphql` unless the predefined set cannot cover the request.

ParameterTypeDescription
query_names *array
variables *object

introspect_schema Inspect baked Alix GraphQL SDL

**FALLBACK ONLY — DO NOT USE FIRST.** Call `list_predefined_queries` first. Use this tool only when no predefined template fits and you need schema details before writing a custom `execute_graphql` document. Inspect the Alix GraphQL schema baked into this package. Call with no arguments to get a compact JSON inventory of all domain types, enums, and scalars. Pass `type_name` (e.g. 'Estate', 'Deceased', 'Asset') to get the full SDL definition for that type. Pass `format='outline'` (no type_name) for a one-line-per-field dump of the full schema — or `format='sdl'` (no type_name) for the raw…

ParameterTypeDescription
format
type_name