Skip to main content
Glama

Save the canvas

canvas-save

Commit the canvas: the same as the person's Save, one new version of the artifact, with you named in the commit. It saves everything unsaved in the person's open canvas, the person's own edits included. Save when the task is done or when the person asks; artifact-publish publishes the last commit, so save before publishing. Answers with the commit, the pages written and anything that did not read back after saving.

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": {
      "sessionId": "<sessionId>"
    },
    "name": "canvas-save"
  }
}

Input Schema

NameRequiredDescriptionDefault
messageNoWhat the save holds, in a few words (added to the commit message)
sessionIdYesThe artifact's id (its sessionId), from canvas-get_open or workspace-list_artifacts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that the save captures everything unsaved in the open canvas, including the person's own edits, which is a real side effect on shared state that the agent must know before invoking. It also describes the response shape (the commit, pages written, anything that did not read back) despite there being no output schema.

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

Conciseness5/5

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

Front-loaded with the core action and its meaning, followed by scope, timing, ordering versus the alternative, and the response. Every sentence carries distinct information with no filler.

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 two-parameter mutation tool with no output schema, the description covers action semantics, side-effect scope, timing, sequencing with artifact-publish, and return values. Nothing an agent needs in order to call it correctly is missing.

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

Parameters3/5

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

Schema coverage is 100%, so both parameters are already documented in the schema, including where sessionId comes from. The description adds no additional meaning about the message parameter or the format of sessionId, so the baseline 3 applies.

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?

States a specific verb and resource ("Commit the canvas") and immediately clarifies the semantics: one new version of the artifact, equivalent to the person's own Save, with the agent named in the commit. This distinguishes it from the sibling artifact-publish, which is named explicitly as a different operation.

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?

Gives explicit triggers ("when the task is done or when the person asks") and an ordering constraint with the named alternative ("artifact-publish publishes the last commit, so save before publishing"). Nothing about when to choose this tool 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.