Skip to main content
Glama
shiiman

multi-agent-mcp

by shiiman

full_recovery

Terminates a malfunctioning agent, removes its worktree, creates a new worktree and agent, and reassigns pending tasks to restore normal operation.

Instructions

異常なエージェントの完全復旧を実行する。

以下のステップで復旧を行う:

  1. 古い agent を terminate

  2. 古い worktree を remove(存在する場合)

  3. 新しい worktree を作成(同じブランチ名で)

  4. 新しい agent を作成

  5. 未完了のタスクを新しい agent に再割り当て

※ Admin のみ使用可能。

Args: agent_id: 復旧対象のエージェントID caller_agent_id: 呼び出し元エージェントID(必須)

Returns: 復旧結果(success, old_agent_id, new_agent_id, reassigned_tasks, message)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agent_idYes
caller_agent_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations, the description fully discloses the recovery process: terminating the old agent, removing worktree, creating new ones, and reassigning tasks. This gives the agent complete behavioral understanding.

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?

The description is well-structured with steps and front-loaded purpose. It is concise but could be slightly shorter without losing clarity.

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?

Given the complexity and presence of an output schema, the description adequately explains the tool's behavior and prerequisites (admin). Missing comparison to 'attempt_recovery' or side effects, but sufficient for most use cases.

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?

The description lists 'caller_agent_id' as required, but the input schema shows it is optional (default null). This contradiction misleads the agent. Schema description coverage is 0%, so the description should compensate but instead adds incorrect information.

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 it performs 'complete recovery of an abnormal agent' with a list of steps (terminate, remove, create, reassign), distinguishing it from siblings like 'attempt_recovery' by its comprehensive nature.

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 mentions 'Admin only' usage, providing clear authorization context. It does not explicitly state when not to use it or alternatives, but the steps imply it's for abnormal agents needing full recreation.

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/shiiman/multi-agent-mcp'

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