Skip to main content
Glama

fork_document

Copy a document at one version into a new document with its own history, for a variant, an experiment, or a new video from a template. The original doesn't change.

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": {
      "document_id": "<document_id>"
    },
    "name": "fork_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoThe new document's name; the original's when absent.
aliasNoAn alias, such as `latest`; `latest` when neither this nor `version` is given.
versionNoA version, by number.
project_idNoThe project to put it in; the original's when absent.
document_idYesThe document to fork, `doc_…`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=false and readOnlyHint=false, but the description adds two facts the annotations cannot convey: the copy carries its own independent history, and the source document is left untouched. That is genuine behavioral context about fork semantics, not a restatement of the flags.

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 sentences, zero filler, with the core fork semantics front-loaded and the non-mutation guarantee placed last for emphasis. Every clause earns its place by either defining the operation or naming a use case.

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

Completeness4/5

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

For a five-parameter, single-operation tool with full schema coverage and clear annotations, the description covers the essential behavior. The one gap is that with no output schema, it never indicates that a new document (and its identifier) comes back, which an agent must discover on its own.

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%, so every parameter including the version/alias defaulting rules is already documented in the schema. The description's 'at one version' phrasing reinforces the version parameter but adds no format, default, or constraint detail beyond that, 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 (copy/fork), the resource (a document), and the scope (at one version, new document with its own history). Because the source is an existing document, an agent can tell this apart from create_document without opening either schema.

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?

Gives concrete motivating scenarios — a variant, an experiment, a new video from a template — which tells the agent when this is the right call rather than plain creation. It stops short of naming an alternative or an explicit when-not condition, so it sits below the top band.

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