Skip to main content
Glama

Fork

fork

Copies a session's conversation into a new session on the same worker so you can continue work from existing context without altering the original.

Instructions

Copy a session's conversation into a new session on the same worker.

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": {
      "session": "<session>"
    },
    "name": "fork"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations whatsoever, the description carries the full burden, and it does disclose two important behavioral facts: this is a copy operation (source is not consumed) and the new session is pinned to the same worker. It says nothing about permissions, whether the copy is independent afterward, or any side effects.

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?

One short sentence, front-loaded with the action and ending on the constraint that matters most. Every clause earns its place; nothing is padding.

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?

An output schema exists, so return values need not be explained, and the definition covers what the tool does plus the worker constraint. For a mutation tool with no annotations, though, it could say more about side effects or permission requirements before an agent commits.

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?

The single required 'session' parameter has zero schema description coverage, so the description must compensate. It implies the parameter identifies the source session being copied, but does not state whether it is an ID, a name, or how to obtain it, so the gap is only partly filled.

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?

The description names a specific verb and resource — copying a session's conversation into a new session — and adds the scope constraint 'on the same worker' that makes it distinguishable from a plain create. It does not explicitly name the sibling it differs from, so it stops short of 5.

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 explicit when-to-use or when-not-to-use guidance; the agent must infer that fork is preferred over create when duplicating an existing conversation. No prerequisites, no exclusions, no mention of what happens to the source session.

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