alix-graphql-mcp-read-write-tool

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

Read/write 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` (reads) or `list_predefined_mutations` (writes) and try the matching `execute_predefined_*` tool. Use this only when no predefined template fits. Run a GraphQL operation against the Alix API (read-write). 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. Queries and mutations are permitted; s…

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

list_predefined_mutations List predefined GraphQL mutations

**REQUIRED FIRST STEP FOR WRITES.** **START WITH THIS TOOL FIRST FOR WRITES** — call it before `introspect_schema` or `execute_graphql`. Return predefined mutation names with a short description and accepted arguments. Then run a match via `execute_predefined_mutations`. Scalar fields in Prisma update inputs use `{set: value}` wrappers — e.g. data: {"finalValue": {"set": 100}}. Only if nothing fits, fall back to `introspect_schema` + `execute_graphql`.

execute_predefined_mutations Execute predefined GraphQL mutations

**PREFERRED WRITE PATH.** Execute one or more predefined mutation templates by name. Arguments: `mutation_names: string[]`, `variables: object` keyed by argument names from `list_predefined_mutations`. **REQUIRED:** call `list_predefined_mutations` first. For plain scalar updates pass Prisma `set` wrappers, e.g. `variables: {"data": {"finalValue": {"set": 100}}, "where": {"id": "asset_id", "estateId": {"equals": "estate_id"}}}`. Do NOT jump to `introspect_schema` / `execute_graphql` unless the predefined set cannot cover the request.

ParameterTypeDescription
mutation_names *array
variables *object

introspect_schema Inspect baked Alix GraphQL SDL

**FALLBACK ONLY — DO NOT USE FIRST.** For reads call `list_predefined_queries` first; for writes call `list_predefined_mutations` 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…

ParameterTypeDescription
format
type_name