grist-mcp-server

v2.0.34
io.github.gwhthompson/grist-mcp-server Checked 2 hours ago Published 19 days ago

11 tools for managing Grist documents with AI

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

grist_get_workspaces Get Workspaces

List workspaces with filtering. Use browse mode ({limit: 20}) to see all, or search mode ({name_contains: "Sales"}) to filter. Detail levels: summary Example: {"limit":20,"detail_level":"summary"} Use grist_help({tools:["grist_get_workspaces"]}) for full schema.

ParameterTypeDescription
detail_levelstring
limitinteger
name_containsstring
offsetinteger
response_formatstring

grist_get_documents Get Documents

Find documents by ID (fastest), name search, workspace filter, or browse all. Detail levels: summary (name, id, workspace, access ~50 tokens/doc) or d Example: {"docId":"qBbArddFDSrKd2jpv3uZTj"} Use grist_help({tools:["grist_get_documents"]}) for full schema.

ParameterTypeDescription
detail_levelstring
docIdstring
limitinteger
name_containsstring
offsetinteger
response_formatstring
workspaceIdinteger

grist_get_tables Get Grist Table Structure

Get table structure and schema. Detail levels: names (table IDs only ~20 tokens/table), columns (+ column names ~50 tokens/table), or full_schema (+ t Example: {"docId":"abc123","detail_level":"names"} Use grist_help({tools:["grist_get_tables"]}) for full schema.

ParameterTypeDescription
docId *string
detail_levelstring
limitinteger
offsetinteger
response_formatstring
tableIdstring

grist_query_sql Query Grist with SQL

Execute SQL queries for JOINs, aggregations, and complex filters. Use grist_get_records for single-table queries without SQL. Supports parameterized q Example: {"docId":"abc123","sql":"SELECT c.Name, o.Total FROM Customers c JOIN Orders o ON c.id = o.Customer"} Use grist_help({tools:["grist_query_sql"]}) for full schema.

ParameterTypeDescription
docId *string
sql *string
limitinteger
offsetinteger
parametersarray
response_formatstring

grist_get_records Get Grist Records

Fetch records with filters. No SQL needed. Use grist_query_sql for JOINs and aggregations. Filter syntax: {"Status": "Active"}, {"Priority": 1}, {"IsA Example: {"docId":"abc123","tableId":"Contacts","filters":{"Status":"Active"}} Use grist_help({tools:["grist_get_records"]}) for full schema.

ParameterTypeDescription
docId *string
tableId *string
columnsarray
filtersobject
limitinteger
offsetinteger
response_formatstring

grist_manage_records Manage Records

CRUD for records: add, update, delete, upsert. Batched operations execute sequentially for cross-table dependencies. Use natural formats (no "L" prefi Example: {"docId":"abc123","operations":[{"action":"add","tableId":"Contacts","records":[{"Name":"Alice","Email":"alice@example.com"}]}]} Use grist_help({tools:["grist_manage_records"]}) for full schema.

ParameterTypeDescription
docId *string
operations *array
response_formatstring

grist_manage_schema Manage Schema

Batch schema operations: tables (create/rename/delete), columns (add/modify/remove), and summary tables. Ref columns need refTable. Summary tables aut Use grist_help({tools:["grist_manage_schema"]}) for full schema.

ParameterTypeDescription
docId *string
operations *array
response_formatstring

grist_manage_pages Manage Pages

Declarative page layouts with cols/rows splits. create_page returns sectionIds; use link_widgets to connect. Actions: create_page, set_layout, link_wi Use grist_help({tools:["grist_manage_pages"]}) for full schema.

ParameterTypeDescription
docId *string
operations *array
response_formatstring

grist_create_document Create Document

Creates a new Grist document in a workspace. Optionally fork an existing document to copy its structure and data. Returns the new document ID and URL. Example: {"name":"Customer CRM","workspaceId":123} Use grist_help({tools:["grist_create_document"]}) for full schema.

ParameterTypeDescription
name *string
workspaceId *integer
forkFromDocIdstring
response_formatstring

grist_manage_webhooks Manage Webhooks

Batch webhook CRUD for real-time notifications. list and clear_queue must be solo operations. Example: {"docId":"abc123","operations":[{"action":"create","fields":{"url":"https://api.example.com/hook","tableId":"Tasks","eventTypes":["add"]}}]} Use grist_help({tools:["grist_manage_webhooks"]}) for full schema.

ParameterTypeDescription
docId *string
operations *array
response_formatstring

grist_help Get Tool Help

Discover available tools and get detailed documentation with JSON schemas. Call without params to list all tools. Use tools param for full docs + sche Example: {} Use grist_help({tools:["grist_help"]}) for full schema.

ParameterTypeDescription
onlyarray
response_formatstring
tool_namestring
toolsarray
topicstring