Skip to main content
Glama

patch_lineage_section

Update generated MINDMAP, TABLE, or MATH_DIFF sections while preserving manual annotations outside managed markers; conflicting edits trigger a safe conflict instead of overwriting user text.

Instructions

Update the generated portion of MINDMAP, TABLE, or MATH_DIFF. Put manual annotations outside MANAGED markers; user text is preserved and edited generated content triggers a safe conflict instead of overwrite.

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": {
      "filename": "<filename>",
      "section": "<section>",
      "new_content": "<new_content>"
    },
    "name": "patch_lineage_section"
  }
}

Input Schema

NameRequiredDescriptionDefault
sectionYes
filenameYes
new_contentYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden and does disclose meaningful behavior: user text is preserved and editing generated content yields a safe conflict rather than an overwrite. It omits what happens when the filename or section does not exist, and whether the operation is idempotent.

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, front-loaded with the action and scope, then the safety constraint. No filler or restatement of the tool name.

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

Completeness3/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 conflict/preservation semantics are covered. Still, for a mutation tool with no annotations and zero schema description coverage, the roles of filename and new_content and the failure modes are left unspecified.

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 coverage is 0%, so the schema provides no help, and the description never mentions filename or new_content. It does implicitly define the domain of 'section' as MINDMAP, TABLE, or MATH_DIFF, which is genuine added meaning, but two of three parameters remain 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 and resource: 'Update the generated portion of MINDMAP, TABLE, or MATH_DIFF.' The named section types distinguish it from create_lineage_doc and read_current_doc without needing to open a schema, though it does not explicitly name those siblings.

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

Usage Guidelines3/5

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

The instruction 'Put manual annotations outside MANAGED markers' is real usage guidance about where content belongs, but there is no explicit statement of when to choose this tool over create_lineage_doc or read_current_doc, and no preconditions or exclusions are given.

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