Skip to main content
Glama

document_save_as

Save the current session document to an allowed XCF path. Refuses overwrites unless explicitly enabled, preventing accidental data loss.

Instructions

Commit the current session document to an allowed XCF path. Refuses overwrites unless explicitly enabled.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
overwriteNo
output_xcfYes
session_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose two useful traits: it refuses overwrites unless explicitly enabled, and it restricts writes to an allow-listed XCF path. It omits failure modes, whether the session document state changes, and any permission requirements.

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?

Two short sentences, front-loaded with the primary action and followed by the key safety constraint. No filler or redundant restatement of the tool name.

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

Completeness3/5

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

An output schema exists, so return values need not be described. However, with no annotations and 0% parameter coverage, the description should say more about session_id and about the consequences of the operation on session state to be fully actionable.

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 description coverage is 0%, so the description must compensate. It does add meaning for two parameters (overwrite's refusal semantics and output_xcf's allow-list restriction) but leaves session_id completely unexplained in both schema and description.

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?

States a specific verb (commit/save) and resource (the current session document) with a destination constraint (an allowed XCF path). This is clear enough to separate from export_image at a glance, though it never names the sibling it most resembles.

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

Usage Guidelines2/5

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

There is no statement of when to use this tool versus export_image or any other save/export sibling. The only conditional in the text is about overwrite refusal, which is behavior, not tool selection guidance.

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