Skip to main content
Glama

Save form draft

save_form_draft
DestructiveIdempotent

Replace a form’s entire draft definition and name, preserving draft history. Read get_form first and use its draft_revision as base_revision. Send a new UUIDv7 mutation_id per edit; retries must reuse the exact same payload and ID. Existing publication stays unchanged. Re-read and reconcile on draft_conflict. read_docs explains the definition format and every error.

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": {
      "form_id": "<form_id>",
      "base_revision": "<base_revision>",
      "mutation_id": "<mutation_id>",
      "name": "<name>",
      "definition": "<definition>"
    },
    "name": "save_form_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesComplete form name. An empty string uses Untitled form.
form_idYesForm UUID returned by list_forms or create_form.
definitionYesComplete draft definition object from get_form, including unchanged properties; not a partial patch.
mutation_idYesNew UUIDv7 per edit. Reuse only for an identical retry.
base_revisionYesCurrent draft_revision from get_form.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and idempotentHint=true; the description supplies the reasoning behind both — full replacement of the draft, draft history preserved, publication untouched, and idempotency achieved only by reusing the same payload and mutation_id. It also names the draft_conflict failure mode and the required reconcile action, which the annotations do not convey.

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?

Purpose is front-loaded in the first clause, followed by prerequisite, idempotency contract, side-effect scope, and error recovery in descending importance. Every sentence contributes a distinct operational fact with no restatement of the name or title.

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, nested-object mutation with no output schema, the description covers the full call lifecycle: correct input sourcing, idempotent retry protocol, side-effect boundaries, and conflict recovery. It delegates the definition format and error catalog to read_docs, which is appropriate rather than a gap.

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 3 is the baseline. The description goes beyond it by tying base_revision to get_form's draft_revision and by adding the constraint that a retry must resend the exact same payload and ID, a relationship between mutation_id and payload identity that the schema does not state. The definition parameter's 'complete object, not a partial patch' semantics are already in the schema, so it does not add much there.

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 pair: 'Replace a form's entire draft definition and name'. It explicitly scopes the operation (entire draft, not a patch), states what is preserved (draft history), and distinguishes it from publication ('Existing publication stays unchanged'), which separates it from publish_form without naming it.

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

Usage Guidelines4/5

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

It gives clear preconditions and sequencing: 'Read get_form first and use its draft_revision as base_revision', plus retry rules and a reconciliation step 'on draft_conflict'. It also routes to read_docs for the definition format and error semantics. What it lacks is an explicit when-not-to-use or a named alternative for publishing or partial edits.

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