Skip to main content
Glama

Land a worker's commits

land_worker

Cherry-pick a worker's commits and optional uncommitted edits onto its dispatch branch, blocking landing when acceptance, branch state, path ownership, or conflicts make it unsafe.

Instructions

Cherry-pick the worker's commits onto the branch checked out where it was dispatched. commit_message first commits its uncommitted edits, which is how a sandboxed worker's work gets committed. Refused when acceptance failed or has not run, the target is dirty, or the diff leaves owned_paths; a conflict leaves the target as it was. Read get_worker_diff 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": {
      "task_id": "<task_id>"
    },
    "name": "land_worker"
  }
}

Input Schema

NameRequiredDescriptionDefault
ontoNoRefuse unless the target is on this branch
task_idYes
commit_messageNo
commit_messagesNoTask id to commit message, for the chain
ignore_acceptanceNoOnly when the user said so
allow_outside_ownedNoOnly when the user said so
include_followup_parentsNoLand the whole follow-up chain, root first

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.1

TDQS

A4/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 discloses that commit_message commits uncommitted edits, that acceptance failures or dirty targets cause refusal, that owned_paths are enforced, and that conflicts leave the target unchanged. It does not describe return values or post-landing cleanup.

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 front-loaded, dense, and free of obvious filler. The refusal and conflict semantics are packed efficiently into a short block of text.

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?

This is a seven-parameter mutation tool with no annotations and no output schema, so the description must do substantial work. It covers core behavior and failure modes well but leaves several parameters underexplained relative to the tool's complexity.

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 71% and the description explains commit_message meaning plus the acceptance and owned_paths constraints. It does not clarify onto, commit_messages, ignore_acceptance, allow_outside_owned, or include_followup_parents beyond what their schema text already says.

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?

States a specific verb and resource: cherry-pick the worker's commits onto the branch checked out at dispatch. It clearly distinguishes the operation from sibling tools and explains the commit_message behavior.

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?

Explicitly says to read get_worker_diff first and lists refusal conditions, giving clear preconditions. It does not name alternative landing paths, but the when-not guidance is unusually specific.

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