Skip to main content
Glama

document_saveAs

Save the currently open Moho document to a chosen .moho file path to preserve work or create a separate copy.

Instructions

Save the currently open Moho document to a specific file path.

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": {
      "path": "<path>"
    },
    "name": "document_saveAs"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesDestination .moho file path

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden for a mutating file-write tool. It does not say whether an existing file at the path is overwritten, whether the document's current path becomes the new path, whether missing directories are created, or what happens if no document is open. Only the basic action is disclosed.

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?

One short sentence with the verb front-loaded and no filler. It is appropriately terse for a single-parameter tool, though the brevity leaves no room for the behavioral detail noted above.

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?

The tool is simple, the schema is fully documented, and no output schema exists, so the description is nearly sufficient. However, for a file-writing mutation with zero annotation coverage, the omitted overwrite/error behavior keeps it at a minimum-viable level.

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 100% — the single 'path' parameter is already documented as the destination .moho file path. The description adds no format, extension, or absolute-vs-relative-path guidance beyond the schema, so baseline 3 applies.

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 and resource: save the currently open Moho document to a given path. The 'to a specific file path' phrasing implicitly distinguishes it from the plain document_save sibling, though it never names that sibling. An agent can identify the operation, but the save-vs-saveAs distinction is inferred rather than stated.

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?

Usage is only implied: the phrase 'a specific file path' hints at writing to a new destination versus saving in place, but there is no explicit when-to-use guidance, no mention of document_save as the alternative, and no stated preconditions such as requiring an open document.

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