grist-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GRIST_DOC_ID | No | Default document ID — avoids passing doc_id to every tool call. | |
| GRIST_API_KEY | Yes | API key for authentication. | |
| GRIST_API_URL | Yes | Base URL of the Grist instance (e.g. http://localhost:8484). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_documentsB | List all workspaces and documents accessible to the current user. Use org_id=0 for the user's personal org. |
| create_documentC | Create a new empty Grist document in a workspace. |
| describe_documentB | Get the full schema of a Grist document — all tables, columns, and their types — formatted as Python class definitions. This is the best way to understand a document's structure. |
| create_tablesA | Create one or more new tables with typed columns. Grist will automatically create associated views and pages. Column types: Text, Numeric, Int, Bool, Date, DateTime, Choice, ChoiceList, Ref:, RefList:. |
| add_columnsC | Add new columns to an existing table. |
| modify_columnsC | Modify existing columns — change type, add/update formulas, rename, etc. |
| delete_columnsC | Delete a column from a table. |
| get_recordsB | Read records from a table, with optional filtering, sorting, and limit. |
| add_recordsB | Add new records (rows) to a table. Each record is an object mapping column names to values. |
| update_recordsB | Update existing records by ID. Each record must include 'id' and 'fields' to update. |
| delete_recordsC | Delete records from a table by their row IDs. |
| run_sqlA | Execute a read-only SQL query against the document's SQLite database. Useful for analysis, aggregation, and joins across tables. |
| apply_user_actionsB | Apply raw Grist UserActions for operations not covered by other tools. Actions are arrays like ["AddTable", "Name", [{id: "Col", type: "Text"}]]. Use sparingly — prefer the higher-level tools when possible. |
| create_pageB | Create a new page with one or more widgets (grid, card, chart, form, etc.). Supports configuring layout and master-detail linking between widgets in a single call. |
| add_widget_to_pageC | Add a widget to an existing page. |
| link_widgetsA | Set up master-detail linking between two widgets on the same page. When a record is selected in the source widget, the target widget filters to show related records. |
| configure_page_layoutC | Rearrange widgets on a page using a layout preset or custom layout spec. |
| rename_pageC | Rename a page in the document. |
| create_summary_tableA | Create a summary (pivot/grouped) view of a table. Groups rows by the specified columns and automatically adds a count column. Additional aggregate formulas can be added after creation. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| create_application | Guide for creating a complete Grist application from a use-case description. |
| write_formula | Guide for writing a Grist formula for a specific column. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| column-types | Reference documentation for all Grist column types. |
TDQS
Scored across 19 tools
Tools are organized by distinct resources (documents, tables, columns, records, pages/widgets), and descriptions make the boundaries clear. Minor overlap exists between apply_user_actions and the higher-level tools (it is explicitly the escape hatch), and create_summary_table borrows the 'table' name for what is really a grouped view.
Every tool follows a consistent snake_case verb_noun pattern (create_document, add_columns, get_records, delete_records, rename_page, etc.). No mixed cases or inconsistent verb conventions across the set.
19 tools is slightly above the ideal band but justified: it spans five resource types (documents, tables, columns, records, pages) each requiring separate operations. No tool looks redundant or filler.
Records and columns have full CRUD, and pages/widgets have create, link, layout, and rename operations. Gaps remain for deletes on documents, tables, and pages/widgets, but apply_user_actions provides a documented workaround for these.