Skip to main content
Glama
martinbechard

MCP Agent Operations

update_hierarchy_plan

Apply one targeted mutation to a hierarchical plan—completion, text edit, child add/replace, or peer insert—then regenerate its HTML view.

Instructions

Apply exactly one targeted plan mutation and regenerate its HTML rendering.

The plan path must be absolute beneath configured workspace roots. The target is an exact dotted hierarchy number or an exact unique title. Supply exactly one of completed, text, add_child, replace_children, or add_peer_after.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textNoReplacement item text.
targetYesExact dotted path or exact unique item title.
add_childNoText for one appended child.
completedNoReplacement completion state; branch updates include descendants.
plan_pathYesAbsolute JSON plan path returned by `create_hierarchy_plan`.
add_peer_afterNoText for one peer inserted immediately after the target.
replace_childrenNoOrdered replacement child texts; an empty list removes all.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
successYes
next_taskNo
plan_pathYes
automatically_completedNo
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses the side effect of regenerating HTML rendering and the requirement of exactly one mutation. It does not discuss reversibility or error states, but the core mutative and rendering behavior is clearly communicated.

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?

The description is compact and front-loaded. Four sentences cover the primary action, path prerequisites, target format, and mutation exclusivity. Every sentence adds essential information with no redundancy or filler.

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?

Given the tool's complexity (7 parameters, 2 required) and the presence of an output schema, the description sufficiently covers the key operational constraints (mutual exclusion, path validation, target matching). It does not need to explain return values because the output schema exists, and the description provides enough guidance for correct invocation.

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 the baseline is 3. The description adds value by clarifying that exactly one of the five mutation parameters must be supplied, which the schema does not enforce. It also adds context about the plan path being beneath configured workspace roots.

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 clearly states the tool's function with a specific verb and resource: 'Apply exactly one targeted plan mutation and regenerate its HTML rendering.' This distinguishes it from sibling tools like create_hierarchy_plan (creation) and render_hierarchy_html (pure rendering). The listed mutation types further clarify the scope.

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?

The description provides clear context by stating the tool is for applying a mutation and lists the specific mutation types. It also gives constraints (absolute path, exact target). However, it does not explicitly name alternatives or when-not-to-use cases, so it falls short of a 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/martinbechard/mcp-agent-ops'

If you have feedback or need assistance with the MCP directory API, please join our Discord server