Skip to main content
Glama

apply_chain

Append a prepared chain to a track or the master, optionally clearing the existing chain first with replace=true.

Instructions

Append a ready chain to a track or the master (replace=true clears the chain first).

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": {
      "target": "<target>",
      "name": "<name>"
    },
    "name": "apply_chain"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
targetYes
projectNo
replaceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description does disclose the key destructive behavior: replace=true clears the existing chain first, which is the most important hidden side effect. It says nothing about what happens if the named track/chain doesn't exist, whether the append fails or creates, or what is returned.

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?

A single compact sentence with the destructive caveat attached inline where it matters. Nothing is wasted, though 'ready chain' could be replaced with a term the agent can act on.

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

Completeness2/5

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

No annotations, no output schema, and 0% schema descriptions for 4 parameters make this a bare definition. Two of four parameters and the failure modes are left unexplained for a mutation tool that destroys existing chain state.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% across 4 parameters, so the description must carry the load. It clarifies replace and loosely implies target values ('a track or the master'), but says nothing about the required 'name' (chain name? preset?) or 'project', leaving half the parameters undocumented.

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 (append) and resource (a ready chain) with the destination scope (a track or the master), which differentiates it from save_chain and the add_* device tools. The term 'ready chain' is unexplained jargon, but the core action is unambiguous.

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?

No guidance on when to use this versus save_chain or add_effect; no prerequisites (must a track exist? must a project be loaded?). The parenthetical describes the effect of replace, not when to choose this tool.

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