Skip to main content
Glama

agy_merge

Commit a worktree worker's changes and merge them into the checked-out branch, refusing if the target is dirty or secrets or conflicts are detected.

Instructions

Commit a worktree worker's changes and merge into the checked-out branch. Refuses on dirty target, secrets or conflicts.

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": {
      "agent_id": "<agent_id>"
    },
    "name": "agy_merge"
  }
}

Input Schema

NameRequiredDescriptionDefault
messageNo
agent_idYesAgent id.
strategyNo
target_branchNoMust be the checked-out branch.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose three concrete preflight refusal conditions (dirty target, secrets, conflicts) — meaningful failure-mode information for a mutation tool. It still omits whether the commit happens before the merge, whether the operation is atomic on failure, and what happens to the worker afterwards.

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, zero filler, with the operation stated first and the refusal conditions second. Nothing is repeated and nothing could be trimmed without losing information.

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?

For a four-parameter mutation tool with no annotations and no output schema, the description covers purpose and blockers but leaves the biggest gaps open: what the strategy enum actually changes, what the call returns (merge commit, status, error shape), and whether the agent must call agy_result afterwards.

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 description coverage is only 50%, so the description should compensate but does not: 'message', 'strategy' (the consequential squash-vs-merge choice) and the tautological 'Agent id.' are all left unexplained. The only overlap is 'checked-out branch', which merely restates the schema's own note on target_branch.

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?

Names two specific operations (commit a worktree worker's changes, merge into the checked-out branch) with a clear source and destination. The resource scope ('worktree worker's changes', 'checked-out branch') makes it distinguishable from lifecycle siblings like agy_spawn or agy_wait, though it never explicitly contrasts itself with them.

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?

Usage is implied by the commit-and-merge framing but never stated as a when-to-use rule: there is no guidance on when a worker is ready to merge, what to do before calling, or what alternative path exists (e.g. inspect with agy_result first). The sentence about refusals is precondition behavior rather than routing guidance.

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