Skip to main content
Glama

hedwigai

Change a workbook with a run

run_workbook
Destructive

Changes what a workbook says by starting a research run: add, update, refresh or rewrite content, in one sentence the way a person would say it ('add a section on Q3 headcount', 'refresh the cash figures from the latest 10-Q'). Uses the account's balance; returns its run id at once. Also answers the question a workbook is asking (answer: yes or no) and stops its live run (stop).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "workbook": "<workbook>"
    },
    "name": "run_workbook"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoWhat this workbook's runs are, from now on. `harnessroom` (a new workbook's default): the instruction is a request, and a harness researches and writes the document. `latticeroom`: the instruction is a draft someone already wrote, whole — markdown, its links kept — which comes back exactly as written, with the run's inference beside it (read_workbook's `inference`: each claim cited, self-reported, secondary only, contradicted or with no source, and its sources); each entry under its References or Bibliography heading is looked up in Crossref and on the web and marked found, found with other authors or year, or not found, and a sentence citing it — [3], (Smith et al., 2020) — is read against the work found; attach data files (.json, .csv, .tsv) to settle the draft's own figures. `graphroom`: the document is the graph, one ```mermaid flowchart, edited with write_workbook like any document (each edit a version; one that cannot run is refused); a run performs the current version and is kept in the workbook's `graph_runs` with what each box held, changing no version. Runs refuse until a graph is drawn. `flashroom`, for a workbook made from a spreadsheet or a Word document: the instruction is an edit to its sheet, or to the document's table it is about, planned in seconds and kept in `messages` — each cell's before and after, the rows added and removed — and nothing is written until the next instruction is `yes`, which makes it as a new version. `askroom`: the workbook is asked and never changed — every instruction is a question of the document as it stands, answered in seconds and kept in `messages`; no run writes a version. A mirror's read-only copy is always an askroom. Omit to keep the workbook's current mode.
stopNotrue to stop the run editing the workbook.
workNotrue when the instruction is work to do, not a question. The run then starts without first checking whether the instruction is a question.
answerNoyes or no, to what the workbook is asking.
run_idNoWith `stop`: the run to stop, when not the live one.
workbookYesThe workbook id.
attachmentsNoFiles to attach to the workbook — before its run starts, when one does, so it reads and cites them — each {name, content_base64, content_type?}, 32 MB at most. They stay attached for every later run; list_attachments shows them.
instructionNoWhat should change, in one sentence.
sources_folderNoThe drive folder you keep this workbook's subject in — e.g. `/dropbox/Market research`. What the run cites is filed there once it delivers, instead of a folder named after the document's title.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / mode / description
      Previous value: -"What this workbook's runs are, from now on. `harnessroom` (a new workbook's default): the instruction is a request, and a harness researches and writes the document. `latticeroom`: the instruction is a draft someone already wrote, whole — markdown, its links kept — which comes back exactly as written, with the run's inference beside it (read_workbook's `inference`: each claim cited, self-reported, secondary only, contradicted or with no source, and its sources); each entry under its References or Bibliography heading is looked up in Crossref and on the web and marked found, found with other authors or year, or not found, and a sentence citing it — [3], (Smith et al., 2020) — is read against the work found; attach data files (.json, .csv, .tsv) to settle the draft's own figures. `graphroom`: runs perform the procedure drawn for the workbook in the app, and refuse until one is drawn. `flashroom`, for a workbook made from a spreadsheet or a Word document: the instruction is an edit to its sheet, or to the document's table it is about, planned in seconds and kept in `messages` — each cell's before and after, the rows added and removed — and nothing is written until the next instruction is `yes`, which makes it as a new version. `askroom`: the workbook is asked and never changed — every instruction is a question of the document as it stands, answered in seconds and kept in `messages`; no run writes a version. A mirror's read-only copy is always an askroom. Omit to keep the workbook's current mode."New value: +"What this workbook's runs are, from now on. `harnessroom` (a new workbook's default): the instruction is a request, and a harness researches and writes the document. `latticeroom`: the instruction is a draft someone already wrote, whole — markdown, its links kept — which comes back exactly as written, with the run's inference beside it (read_workbook's `inference`: each claim cited, self-reported, secondary only, contradicted or with no source, and its sources); each entry under its References or Bibliography heading is looked up in Crossref and on the web and marked found, found with other authors or year, or not found, and a sentence citing it — [3], (Smith et al., 2020) — is read against the work found; attach data files (.json, .csv, .tsv) to settle the draft's own figures. `graphroom`: the document is the graph, one ```mermaid flowchart, edited with write_workbook like any document (each edit a version; one that cannot run is refused); a run performs the current version and is kept in the workbook's `graph_runs` with what each box held, changing no version. Runs refuse until a graph is drawn. `flashroom`, for a workbook made from a spreadsheet or a Word document: the instruction is an edit to its sheet, or to the document's table it is about, planned in seconds and kept in `messages` — each cell's before and after, the rows added and removed — and nothing is written until the next instruction is `yes`, which makes it as a new version. `askroom`: the workbook is asked and never changed — every instruction is a question of the document as it stands, answered in seconds and kept in `messages`; no run writes a version. A mirror's read-only copy is always an askroom. Omit to keep the workbook's current mode."
  2. Changed2 schema fields changed
    • changedInput schema / properties / mode / description
      Previous value: -"What this workbook's runs are, from now on. `harnessroom` (a new workbook's default): the instruction is a request, and a harness researches and writes the document. `latticeroom`: the instruction is a draft someone already wrote, whole — markdown, its links kept — which comes back exactly as written, with the run's inference beside it (read_workbook's `inference`: each claim cited, self-reported, secondary only, contradicted or with no source, and its sources); each entry under its References or Bibliography heading is looked up in Crossref and on the web and marked found, found with other authors or year, or not found, and a sentence citing it — [3], (Smith et al., 2020) — is read against the work found; attach data files (.json, .csv, .tsv) to settle the draft's own figures. `graphroom`: runs perform the procedure drawn for the workbook in the app, and refuse until one is drawn. `flashroom`, for a workbook made from a spreadsheet or a Word document: the instruction is an edit to its sheet, or to the document's table it is about, planned in seconds and kept in `messages` — each cell's before and after, the rows added and removed — and nothing is written until the next instruction is `yes`, which makes it as a new version. `askroom`: the workbook is asked and never changed — every instruction is a question of the document as it stands, answered in seconds and kept in `messages`; no run writes a version. `swarmroom`, for a parent workbook whose table lists the workbooks of its folder (columns Workbook, Owner, Needs, Writes, Done when, one row per workbook): a run first has TLC check the map — every workbook a row needs is a row, no fact has two writers, every workbook can finish — and refuses with each issue's row if one breaks; otherwise each workbook runs as a harnessroom on the parent's `model`, in the order Needs allows, and the parent gets a `Swarm run` tab. A mirror's read-only copy is always an askroom. Omit to keep the workbook's current mode."New value: +"What this workbook's runs are, from now on. `harnessroom` (a new workbook's default): the instruction is a request, and a harness researches and writes the document. `latticeroom`: the instruction is a draft someone already wrote, whole — markdown, its links kept — which comes back exactly as written, with the run's inference beside it (read_workbook's `inference`: each claim cited, self-reported, secondary only, contradicted or with no source, and its sources); each entry under its References or Bibliography heading is looked up in Crossref and on the web and marked found, found with other authors or year, or not found, and a sentence citing it — [3], (Smith et al., 2020) — is read against the work found; attach data files (.json, .csv, .tsv) to settle the draft's own figures. `graphroom`: runs perform the procedure drawn for the workbook in the app, and refuse until one is drawn. `flashroom`, for a workbook made from a spreadsheet or a Word document: the instruction is an edit to its sheet, or to the document's table it is about, planned in seconds and kept in `messages` — each cell's before and after, the rows added and removed — and nothing is written until the next instruction is `yes`, which makes it as a new version. `askroom`: the workbook is asked and never changed — every instruction is a question of the document as it stands, answered in seconds and kept in `messages`; no run writes a version. A mirror's read-only copy is always an askroom. Omit to keep the workbook's current mode."
    • changedInput schema / properties / mode / enum
      Previous value: -[
      -  "harnessroom",
      -  "latticeroom",
      -  "graphroom",
      -  "flashroom",
      -  "askroom",
      -  "swarmroom"
      -]New value: +[
      +  "harnessroom",
      +  "latticeroom",
      +  "graphroom",
      +  "flashroom",
      +  "askroom"
      +]
  3. Changed2 schema fields changed
    • changedInput schema / properties / mode / description
      Previous value: -"What this workbook's runs are, from now on. `harnessroom` (a new workbook's default): the instruction is a request, and a harness researches and writes the document. `latticeroom`: the instruction is a draft someone already wrote, whole — markdown, its links kept — which comes back exactly as written, with the run's inference beside it (read_workbook's `inference`: each claim cited, self-reported, secondary only, contradicted or with no source, and its sources); each entry under its References or Bibliography heading is looked up in Crossref and on the web and marked found, found with other authors or year, or not found, and a sentence citing it — [3], (Smith et al., 2020) — is read against the work found; attach data files (.json, .csv, .tsv) to settle the draft's own figures. `graphroom`: runs perform the procedure drawn for the workbook in the app, and refuse until one is drawn. `flashroom`, for a workbook made from a spreadsheet or a Word document: the instruction is an edit to its sheet, or to the document's table it is about, planned in seconds and kept in `messages` — each cell's before and after, the rows added and removed — and nothing is written until the next instruction is `yes`, which makes it as a new version. `askroom`: the workbook is asked and never changed — every instruction is a question of the document as it stands, answered in seconds and kept in `messages`; no run writes a version. A mirror's read-only copy is always an askroom. Omit to keep the workbook's current mode."New value: +"What this workbook's runs are, from now on. `harnessroom` (a new workbook's default): the instruction is a request, and a harness researches and writes the document. `latticeroom`: the instruction is a draft someone already wrote, whole — markdown, its links kept — which comes back exactly as written, with the run's inference beside it (read_workbook's `inference`: each claim cited, self-reported, secondary only, contradicted or with no source, and its sources); each entry under its References or Bibliography heading is looked up in Crossref and on the web and marked found, found with other authors or year, or not found, and a sentence citing it — [3], (Smith et al., 2020) — is read against the work found; attach data files (.json, .csv, .tsv) to settle the draft's own figures. `graphroom`: runs perform the procedure drawn for the workbook in the app, and refuse until one is drawn. `flashroom`, for a workbook made from a spreadsheet or a Word document: the instruction is an edit to its sheet, or to the document's table it is about, planned in seconds and kept in `messages` — each cell's before and after, the rows added and removed — and nothing is written until the next instruction is `yes`, which makes it as a new version. `askroom`: the workbook is asked and never changed — every instruction is a question of the document as it stands, answered in seconds and kept in `messages`; no run writes a version. `swarmroom`, for a parent workbook whose table lists the workbooks of its folder (columns Workbook, Owner, Needs, Writes, Done when, one row per workbook): a run first has TLC check the map — every workbook a row needs is a row, no fact has two writers, every workbook can finish — and refuses with each issue's row if one breaks; otherwise each workbook runs as a harnessroom on the parent's `model`, in the order Needs allows, and the parent gets a `Swarm run` tab. A mirror's read-only copy is always an askroom. Omit to keep the workbook's current mode."
    • changedInput schema / properties / mode / enum
      Previous value: -[
      -  "harnessroom",
      -  "latticeroom",
      -  "graphroom",
      -  "flashroom",
      -  "askroom"
      -]New value: +[
      +  "harnessroom",
      +  "latticeroom",
      +  "graphroom",
      +  "flashroom",
      +  "askroom",
      +  "swarmroom"
      +]
  4. Changed4 schema fields changed
    • removedInput schema / properties / context
      Removed value: -{
      -  "description": "Explain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as \"a user\", \"the customer\", or \"an account\". Example: \"Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution.\"",
      -  "type": "string"
      -}
    • removedInput schema / properties / llm_model
      Removed value: -{
      -  "description": "The exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. \"claude-opus-4-8\", \"gpt-5.2\"). Used for analytics only. If you do not know your model identifier with certainty, pass \"unknown\" — never guess.",
      -  "type": "string"
      -}
    • changedInput schema / properties / sources_folder / description
      Previous value: -"The drive folder you keep this workbook's subject in — `/dropbox/Trevi Therapeutics`. What the run cites is filed there once it delivers, instead of a folder named after the document's title."New value: +"The drive folder you keep this workbook's subject in — e.g. `/dropbox/Market research`. What the run cites is filed there once it delivers, instead of a folder named after the document's title."
    • changedInput schema / properties / work / description
      Previous value: -"true when the instruction is work to do and never a question — your own router already said so. The run starts without first being asked whether it is a question."New value: +"true when the instruction is work to do, not a question. The run then starts without first checking whether the instruction is a question."
  5. Changed1 schema field changed
    • changedInput schema / properties / attachments / description
      Previous value: -"Files to attach to the workbook BEFORE the run starts, so it reads and cites them — each {name, content_base64, content_type?}, 32 MB at most. They stay attached for every later run; list_attachments shows them."New value: +"Files to attach to the workbook — before its run starts, when one does, so it reads and cites them — each {name, content_base64, content_type?}, 32 MB at most. They stay attached for every later run; list_attachments shows them."
  6. Added

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the destructive/openWorld annotations it discloses real behavior: it consumes the account's balance, returns the run id immediately rather than blocking, and specifies that flashroom writes nothing until a later `yes` and askroom never writes a version. That materially informs the agent about cost and mutation timing, though error/failure behavior is left unstated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The lead sentence is front-loaded and useful, but the text then re-narrates the five modes that are already fully documented in the `mode` schema description, making it denser and more redundant than needed. It is understandable but not tight.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter mutating tool with no output schema, it covers the essentials an agent needs: async return of a run id, cost against balance, attachment persistence, and per-mode write semantics. Remaining gaps (what a failed or refused run returns, error conditions) are minor rather than blocking.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, so the baseline is 3, but the description earns an extra point by adding interpretive meaning to `instruction` (one natural-language sentence, with concrete examples) and by pointing at read_workbook's `inference` for results. The `mode` prose largely restates the schema rather than extending it.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb+resource ("Changes what a workbook says by starting a research run") and enumerates the mutation classes (add, update, refresh, rewrite). It is clear what the tool does, though it bundles run/answer/stop behaviors and never contrasts itself with the sibling write_workbook, so it stops short of full sibling differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives phrasing guidance ("one sentence the way a person would say it") and two example instructions, which implies when to use it. But there is no explicit when-not and no routing to alternatives like write_workbook or configure_workbook, leaving the agent to infer the boundary from sibling names alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.