Skip to main content
Glama

ParCAD

Save project

save_project
DestructiveIdempotent

Writes a new part to parcad's project folder, where the user can open it; open_project then puts it on their screen. For a part already saved, edit_part changes the lines it names, rebuilds and saves in one call, without the whole script being sent again. A script that does not build is saved regardless, as a broken file; evaluate_part builds a script without saving it. Saving replaces an existing project at the same path; a new one is created as a '.parcad' folder, and a path like 'Mounts/bracket' files it under a folder, creating the folder if needed. The reply says whether the script built (the error if not) and the snapshot of the version it replaced, which list_snapshots and restore_snapshot can bring back. A part that builds and fails its print_check (material under 0.3 mm, where nothing prints) or one of its own checks is not saved: the refusal names the finding or the check and its measurement. allow_failing carries the user's words accepting that it fails, for keeping such a part, and the reply keeps it beside the verdicts it opens with.

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": {
      "name": "<name>",
      "script": "<script>"
    },
    "name": "save_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe project path to write: slash-separated folder names and no extension, such as `bracket` or `Mounts/bracket`. Folders are created as needed. An existing project at that path is replaced.
scriptYesThe DSL source to save.
allow_failingNoThe user's words accepting that the part fails a check or the print check, such as "save it, I'll fix the clearance later". Fixed dimensions in a brief, or the request to save, accept no failure. Without it a failing verdict refuses the save, naming it and what was measured; with it the reason is kept in the reply.

Output Schema

NameRequiredDescriptionDefault
nameYes
pathYes
briefNo
builtYes
errorNo
checksNo
snapshotNo
print_checkNo
allow_failingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so replacement semantics are partly given. The description nonetheless adds real value: what gets replaced, that a snapshot of the prior version is returned and is restorable via restore_snapshot, that non-building scripts are written as broken files, and that failing print_check or custom checks refuse the save. That is above the annotation baseline but it still leaves the overwrite irreversibility and snapshot retention rules implicit rather than stated.

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?

Front-loaded with the core action, then ordered into alternatives, overwrite behavior, reply contents, and failure handling. It is one dense paragraph and the sentence describing reply fields (`built`, `error`, `snapshot`) partly restates the output schema, which crowds an otherwise tight definition.

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 three-parameter write tool with full schema coverage and an output schema, nothing an agent needs is missing: path semantics, replacement behavior, failure refusal path, override mechanism, and where to go for refinement versus read-back are all present.

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; the description goes modestly beyond by explaining how allow_failing interacts with the refusal verdict and that the reason is echoed in the reply, and by spelling out nested-path folder creation for name. Much of this is already in the schema descriptions, so the added meaning is real but partly redundant.

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 ('Writes a new part to parcad's project folder') and immediately positions it against siblings: open_project for display, edit_part for already-saved parts, evaluate_part for building without saving. An agent can distinguish it from every relevant alternative 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?

Gives explicit routing: use edit_part when a saved part only needs named lines changed, use evaluate_part to build without persisting, use open_project to put it on screen. It also states the precondition for overriding a refusal (allow_failing must carry the user's words) and where that does not apply.

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.