Quadratic
v0.1.0AI access to Quadratic spreadsheets: open files, run Python/SQL, query connected databases.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
auth
Authenticate the MCP session with Quadratic. Actions: • login() — Start an OAuth device authorization flow. Returns a URL the user must open in a browser to authorize. The flow is completed by confirm_login. • confirm_login(device_code) — Complete an in-progress login by polling for user authorization. If the response indicates the user has not yet authorized, this action can be called again with the same device_code to continue polling. confirm_login is idempotent: if a later tool call reports "Not authenticated on this connection", call confirm_login again with the same device_code…
| Parameter | Type | Description |
|---|---|---|
action * | string | Action to perform: login, confirm_login, set_token, or logout |
params | Parameters for the action (see tool description) |
doc_read
Read-only queries on the open document (a file whose kind is DOC). No data is modified. Safe to auto-approve. Open the document first with files_write(open_file). Call as {"action": "<name>", "params": {...}}. Blocks are named by a path "<section>.<block>" (e.g. "0.3") and carry a hash; doc_write needs the hash to change or delete a block. Actions: • doc_outline() — Headings with their paths and hashes, plus block count, word count and block types. Start here for long documents. • read_doc(format?, from?, limit?) — Blocks in order, each {path, hash, type, content}. format: "markdown"…
| Parameter | Type | Description |
|---|---|---|
action * | string | Action to perform: read_doc, doc_outline, or search_doc |
params | Parameters for the action (see tool description) |
doc_write
Edits to the open document (a file whose kind is DOC). Edits apply live for anyone viewing the document. Requires edit access. Call as {"action": "<name>", "params": {...}}. Read the document first (doc_read): paths shift as blocks are added or removed, and replace_blocks / delete_blocks must pass each block's hash from that read — if a block changed since, the edit is refused and nothing changes. Every edit returns the paths and hashes of the blocks it wrote, and saved: false if it hadn't been confirmed yet (it is still applied). content is Markdown by default (headings, emphasis, links,…
| Parameter | Type | Description |
|---|---|---|
action * | string | Action to perform: insert_blocks, replace_blocks, delete_blocks, find_replace, append, or batch |
params | Parameters for the action (see tool description). For batch: {operations: [{action, params}, ...]} |
files_read
Read-only file metadata operations on Quadratic files the user has access to. No data is modified. Requires authentication. Files are spreadsheets (kind GRID, edited with read_data / write_data), documents (kind DOC, edited with doc_read / doc_write) or presentations (kind SLIDE, edited with slide_read / slide_write). Actions: • list_files(kinds?) — List accessible files with their kind. kinds: ["GRID"], ["DOC"] or ["SLIDE"] limits the list to those kinds. • get_file_info(file_id) — Get metadata for a single file, including its kind and web URL.
| Parameter | Type | Description |
|---|---|---|
action * | string | Action to perform: list_files or get_file_info |
params | Parameters for the action (see tool description) |
files_write
File management operations that create or modify state: create a new file, open an existing file to start an editing session, or close a session. Requires authentication. Actions: • open_file(file_id?, file_name?) — Open a spreadsheet, document or presentation by UUID or name and start an editing session. Returns the file's kind and web URL. Use read_data / write_data on a spreadsheet, doc_read / doc_write on a document and slide_read / slide_write on a presentation. The open is remembered for your user across MCP sessions (last open wins) — clients that use a new session per request do…
| Parameter | Type | Description |
|---|---|---|
action * | string | Action to perform: open_file, create_file, or close_file |
params | Parameters for the action (see tool description) |
read_data
Read-only queries on the open spreadsheet. No data is modified. Safe to auto-approve. Call as {"action": "<name>", "params": {...}} — per-action params are listed in the Action Reference below. Special actions (not shown in the action enum): • batch — {"action": "batch", "params": {"actions": [{"action": "<name>", "params": {...}}, ...]}}. Runs reads in parallel; individual failures are reported per-entry without short-circuiting. • context — {"action": "context", "params": {"topic": "<name>"}} or {"action": "context", "params": {"action": "<name>"}}. Returns deeper docs for a topic…
| Parameter | Type | Description |
|---|---|---|
action * | string | Action to perform: get_cell_data, has_cell_data, get_code_cell_value, get_text_formats, get_validations, get_conditional_formats, text_search, get_sheet_info, get_spreadsheet_context, read_data, outli… |
params | Parameters for the action (see tool description). For batch: {actions: [{action, params}, ...]} |
slide_read
Read-only queries on the open presentation (a file whose kind is SLIDE). No data is modified. Safe to auto-approve. Open the presentation first with files_write(open_file). Call as {"action": "<name>", "params": {...}}. Slides and shapes have stable ids; slide_write addresses edits by them. Shape positions and sizes (xfrm: x, y, cx, cy, rot) are in EMU (914400 per inch, 12700 per point) unless units is "in" or "pt". Actions: • deck_outline() — Every slide's id, index, layout, title, shape count, whether it has notes and open comments, plus slide size, footer, comment count and available…
| Parameter | Type | Description |
|---|---|---|
action * | string | Action to perform: read_deck, deck_outline, search_deck, or read_comments |
params | Parameters for the action (see tool description) |
slide_write
Edits to the open presentation (a file whose kind is SLIDE). Edits apply live for anyone viewing the presentation. Requires edit access. Call as {"action": "<name>", "params": {...}}. Read the presentation first (slide_read deck_outline or read_deck) to get slide and shape ids. Every edit returns what it wrote (new ids, placeholder shapes, z-order) and saved: false if it hadn't been confirmed yet (it is still applied). Text content is Markdown by default (paragraphs, - bullets with two-space nesting, 1. numbering, **bold**, *italic*, ~~strike~~, <u>, <sup>, <sub>, links), or ProseMirror JSON…
| Parameter | Type | Description |
|---|---|---|
action * | string | Action to perform: add_slide, delete_slides, move_slide, duplicate_slides, update_slide, reset_slide, set_text, format_text, add_shape, update_shape, delete_shapes, duplicate_shapes, reorder_shapes, a… |
params | Parameters for the action (see tool description). For batch: {operations: [{action, params}, ...]} |
write_data
Write operations on the open spreadsheet. Call as {"action": "<name>", "params": {...}} — per-action params are listed in the Action Reference below. Numbers, booleans, and nulls in cell values are coerced to strings. Special actions (not shown in the action enum): • batch — {"action": "batch", "params": {"actions": [{"action": "<name>", "params": {...}}, ...]}}. Runs writes sequentially; errors short-circuit the batch. • context — {"action": "context", "params": {"topic": "<name>"}} or {"action": "context", "params": {"action": "<name>"}}. Returns deeper docs for a topic or a singl…
| Parameter | Type | Description |
|---|---|---|
action * | string | Action to perform: set_cell_values, delete_cells, move_cells, add_data_table, set_code_cell_value, set_formula_cell_value, rerun_code, set_text_formats, set_borders, merge_cells, unmerge_cells, add_sh… |
params | Parameters for the action (see tool description). For batch: {actions: [{action, params}, ...]} |