Skip to main content
Glama

build_handoff

Read-only

Creates a role-specific handoff package with shared context, invariants, next action, tasks, and reports, capping size to a token budget by compressing history while preserving critical items.

Instructions

Build a role-specific handoff package (shared Context, invariants, next action, task and reports), optionally fitted to a token budget. Over budget, bounded history lists (decisions, agent_results_awaiting_refinement) are compressed oldest-first and budget_omitted lists what was cut; invariants, source_document_refs, approved_plan, task and reports are never truncated. Read-only. get_context returns the same package without a budget, so use this tool only when you need to cap its size.

Input Schema

NameRequiredDescriptionDefault
roleNoRole the handoff is for: PM (default) or any agent role such as SA, SD, RD, SD/RD, REVIEW, SR, AR, SEC, QA or SW.PM
task_idNoTask id to scope the call to. Omit it for the tool's default scope.
project_idYesRegistered project id, as returned by list_projects.
token_budgetNoEstimated token ceiling (about 3 characters per token). Omit for no limit. When set, available skills and long history lists are shortened to fit; budget_exceeded is true if the protected parts alone are larger.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.1.3
    • addedInput schema / properties / project_id / description
      Added value: +"Registered project id, as returned by list_projects."
    • addedInput schema / properties / role / description
      Added value: +"Role the handoff is for: PM (default) or any agent role such as SA, SD, RD, SD/RD, REVIEW, SR, AR, SEC, QA or SW."
    • addedInput schema / properties / task_id / description
      Added value: +"Task id to scope the call to. Omit it for the tool's default scope."
    • addedInput schema / properties / token_budget / description
      Added value: +"Estimated token ceiling (about 3 characters per token). Omit for no limit. When set, available skills and long history lists are shortened to fit; budget_exceeded is true if the protected parts alone are larger."
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and destructiveHint=false, and the description's "Read-only" line restates that rather than adding to it. Where it does add real value is the compression behavior: bounded lists are cut oldest-first, budget_omitted records what was removed, and invariants/source_document_refs/approved_plan/task/reports are never truncated. That is exactly the kind of beyond-schema behavior an agent needs before choosing a budget.

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?

Front-loaded with purpose, then behavior, then the sibling comparison, with no filler sentences. The protected-versus-compressed field list is dense but every item is load-bearing; the parenthetical list of package contents is the only mildly cluttered spot.

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?

An output schema exists, so return values need not be spelled out, and the description still covers the one output concept that affects invocation (budget_exceeded). For a four-parameter read tool with full annotation and schema coverage, nothing an agent needs to call it correctly is missing.

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 all four parameters are already documented. The description still adds meaning by explaining the budget mechanics (roughly 3 characters per token, which parts get shortened, budget_exceeded when protected parts alone exceed the ceiling), which goes beyond the schema's phrasing.

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?

Uses a specific verb ("build") and resource ("handoff package") and enumerates the contents: shared Context, invariants, next action, task and reports. It explicitly contrasts itself with the sibling get_context, so an agent can distinguish the two without opening either schema.

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

Usage Guidelines5/5

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

States the selecting condition plainly: get_context returns the same package without a budget, "so use this tool only when you need to cap its size." That is an explicit when-to-use plus a named alternative, leaving nothing to inference.

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