Skip to main content
Glama

Update a Slaide document

update_document
Destructive

Use this when the user wants to change an EXISTING Slaide document — update figures, rewrite a section, restyle, add or remove pages. Say precisely what should change and, if it matters, what must stay untouched; Slaide keeps a version history, so changes are reversible in the app. Read the document with get_document first and pass its version as expected_version: if someone else changed the document meanwhile you get a version_conflict instead of silently overwriting their work — re-read and decide, never just retry with a higher number. The run uses the same account limits as in Slaide. Returns a job_id immediately and works in the background; handle it like create_document (with a live progress card shown to the user, do not poll; otherwise poll get_job). Do NOT use it for a new document (use create_document).

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": {
      "document_id": "<document_id>",
      "instruction": "<instruction>"
    },
    "name": "update_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeNoNarrow the change, e.g. 'page 4' or 'the revenue chart'. Everything else is left alone.
document_idYesOpaque id of the document to change, taken from search_documents, get_document or a job result.
instructionYesWhat should change, stated precisely, and what must stay untouched if that matters.
idempotency_keyNoA key of your choosing; reuse it when you retry after a lost response so the edit is not applied twice. Omitted, the same request against the same document version within 24 hours returns the earlier job (marked `deduplicated`).
expected_versionNoThe `version` from your last get_document. If the document changed since, the call fails with version_conflict instead of overwriting. Omitted, the change is applied to whatever the current version is.

Output Schema

NameRequiredDescriptionDefault
noteNoPresent only when there is something to tell the user about this build; pass it on in your own words.
job_idYesHandle of the background job. Pass it to get_job or cancel_job.
statusYesState of the job when this response was sent: queued, running, completed, partial, failed or cancelled.
app_urlYesLink that opens the document in the Slaide web app. Share it with the user.
document_idYesThe document the job works on. Opaque id of the document. Pass it to get_document, update_document or export_document.
deduplicatedNoTrue when this request matched an earlier one and that earlier job is returned instead of a new one.
poll_after_msYesMilliseconds to wait before the first get_job call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag destructive=true, idempotent=false and openWorld=true, but the description adds genuinely new behavioral facts: version history makes edits reversible in-app, a version_conflict is returned instead of silently overwriting, the call returns a job_id immediately and runs in the background, and the agent should not poll but use the progress card or get_job. The idempotency_key dedup explanation also refines, rather than contradicts, the idempotentHint=false annotation.

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

Conciseness4/5

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

It is front-loaded with the trigger, then prerequisites, failure mode, execution model, and finally the exclusion. It is dense and somewhat long for a single block, but nearly every clause carries decision-relevant information; a short bulleted split for the async/conflict rules would improve scanability.

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

Completeness5/5

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

For a destructive, async, version-sensitive mutation with five parameters, the description covers preconditions, concurrency safety, side-effect reversibility, and background-job handling. Since an output schema exists, it correctly does not spend words explaining the returned fields.

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 100%, so the baseline is 3, but the description goes beyond it by prescribing the workflow for expected_version (pass the `version` from get_document, and what to do on conflict) and by telling the agent to state precisely what changes and what must stay untouched for `instruction`. It adds real operational meaning, though it does not further clarify `scope` or `idempotency_key` beyond the schema.

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

Purpose5/5

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

The description opens with a specific verb+resource scoped to an EXISTING Slaide document and enumerates the kinds of edits it performs (figures, sections, restyle, pages). It explicitly distinguishes itself from create_document, so an agent can route without opening a schema.

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

Usage Guidelines5/5

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

It gives an explicit when-to-use trigger, a mandatory prerequisite (read with get_document first), an explicit exclusion ('Do NOT use it for a new document (use create_document)'), and concrete conflict-handling instructions ('re-read and decide, never just retry with a higher number'). Nothing about tool selection is left to inference.

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.

Resources