Skip to main content
Glama

Memoria — Deterministic AI Memory & Code Intelligence MCP

Hand Off Context to Specialist Wing

handoff_to_agent

Persist a high-salience (0.9) Semantic handoff memory into a target specialist wing namespace (wing:) (consumes 1 Write API call; non-idempotent: repeated calls create distinct handoff records) and return { id, wing, namespace }. Accepts target wing via wing or alias to_wing (defaults to "architect") and sender via from_agent or alias from_wing (defaults to "agent"), attaching files and memory_ids as searchable context tuples. Use when delegating findings and next steps between architect, reviewer, qa, security, or ops agents; use encode_memory instead for general project memories.

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": {
      "summary": "<summary>"
    },
    "name": "handoff_to_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskNoOptional concrete follow-up action appended for the receiving wing.
wingNoDestination specialist wing (preferred; defaults to "architect" if both wing and to_wing are omitted).
filesNoOptional file paths attached as ["file", path] context tags.
summaryYesRequired concise summary of architectural findings, constraints, and state.
to_wingNoAlias for destination wing used when wing is omitted.
from_wingNoAlias for sending specialist wing used when from_agent is omitted.
from_agentNoIdentifier of the sending agent or role (preferred; defaults to "agent").
memory_idsNoOptional related memory UUIDs attached as ["memory_id", id] context tags.

Output Schema

NameRequiredDescriptionDefault
idYesCreated handoff memory UUID.
wingYesResolved destination wing ID.
namespaceYesTarget wing namespace (for example "wing:qa").

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • changedInput schema / properties / files / description
      Previous value: -"Optional list of relevant file paths."New value: +"Optional file paths attached as [\"file\", path] context tags."
    • changedInput schema / properties / from_agent / description
      Previous value: -"Originating agent or wing identifier."New value: +"Identifier of the sending agent or role (preferred; defaults to \"agent\")."
    • changedInput schema / properties / from_wing / description
      Previous value: -"Alias for originating specialist wing."New value: +"Alias for sending specialist wing used when from_agent is omitted."
    • changedInput schema / properties / memory_ids / description
      Previous value: -"Optional list of related memory IDs attached to the handoff."New value: +"Optional related memory UUIDs attached as [\"memory_id\", id] context tags."
    • changedInput schema / properties / summary / description
      Previous value: -"Concise summary of architectural findings and constraints."New value: +"Required concise summary of architectural findings, constraints, and state."
    • changedInput schema / properties / task / description
      Previous value: -"Optional actionable task for the receiving wing."New value: +"Optional concrete follow-up action appended for the receiving wing."
    • changedInput schema / properties / to_wing / description
      Previous value: -"Alias for target specialist wing."New value: +"Alias for destination wing used when wing is omitted."
    • changedInput schema / properties / wing / description
      Previous value: -"Target specialist wing."New value: +"Destination specialist wing (preferred; defaults to \"architect\" if both wing and to_wing are omitted)."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "id": {
      +      "description": "Created handoff memory UUID.",
      +      "type": "string"
      +    },
      +    "namespace": {
      +      "description": "Target wing namespace (for example \"wing:qa\").",
      +      "type": "string"
      +    },
      +    "wing": {
      +      "description": "Resolved destination wing ID.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "wing",
      +    "namespace"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and idempotentHint=false, but the description adds real context: the cost ("consumes 1 Write API call"), the concrete consequence of non-idempotency ("repeated calls create distinct handoff records"), the salience value 0.9, and the namespace format wing:<target>. It stops short of stating permission/auth requirements or whether the target wing must pre-exist (list_agent_wings is a sibling), which keeps it below a 5.

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?

Two sentences carry a large amount of information with essentially no filler, and the identity of the tool is front-loaded. The first sentence is heavily nested with parentheticals, which makes it slower to parse than it needs to be, but no sentence is expendable.

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?

For an 8-parameter mutation tool the coverage is strong: required field, defaults, aliasing, cost, idempotency consequences, and the usage boundary against encode_memory are all stated. Since an output schema exists, the inline return shape is redundant rather than necessary, and prerequisites such as whether the destination wing must be registered are the only meaningful gap.

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, but the description goes beyond it by documenting alias precedence (wing preferred over to_wing, from_agent preferred over from_wing) and default values, plus the tuple format used for files and memory_ids ("searchable context tuples"). This resolves the ambiguity of why two pairs of near-duplicate parameters exist, which the schema alone does not explain.

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 opens with a specific verb and resource ("Persist a high-salience (0.9) Semantic handoff memory into a target specialist wing namespace") and names the sibling it is not ("use encode_memory instead for general project memories"). An agent can distinguish it from encode_memory and build_context 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?

It states the exact scenario ("delegating findings and next steps between architect, reviewer, qa, security, or ops agents") and explicitly routes the general case to encode_memory. Both the when-to-use and the when-not-to-use are present, 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.