Skip to main content
Glama

delegate_task

Destructive

Hand a task from one agent to another (both owned by the caller). Required: to_agent_id. Optional: from_agent_id (default: the acting agent), task_todo_id, message. to_agent_id/from_agent_id take the agent id from list_agents OR its exact name (e.g. 'Termin-Assistent', case-insensitive), resolved only within this tenant; an unknown or ambiguous name is refused with the list of available agents (name = id). Without task_todo_id a one-time task is created for the receiver: it shows above the input of every Dev-Agent slot running that agent and under Delegations → Zwischen Agenten, and in the receiver's next run. If the receiver is a server-job agent (trigger_mode server_job) it is STARTED IMMEDIATELY (result: started=true) and works the task itself; otherwise a connected runner picks it up automatically if the tenant enabled automatic handoffs (limited per hour, last 24 hours only), else when someone clicks it there. Tell the person 'handed to ', never 'done', until the receiver confirms. Put everything the receiver needs into message, including where to send the result. The receiving agent's own permissions still apply. wait_for_result=true: the receiver is started right away (max 5 per hour per sender), reports back with report_task_result, and the result automatically RESUMES THIS SESSION (in a Dev-Agent session) — also after a 24 h timeout. Until then give the human nothing about it; present only the final result (delegate_to_user). Use get_delegation_status to look at the state. nur_info=true: PURE INFORMATION for the receiver (an FYI, nothing to do) — stored as already finished (status info), no task, never started, does not wake a scheduled/takt agent; the receiver sees it in its bootstrap (infoUebergaben). Use it whenever the receiver need not act; a normal handoff costs the receiver a full run.

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": {
      "to_agent_id": "<to_agent_id>"
    },
    "name": "delegate_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
messageNoEverything the receiving agent needs, including where to send the result
nur_infoNoInformation only: no task, no start, does not wake the receiver.
priorityNoPriority
to_agent_idYesID of the to agent
session_nameNoName of the sending session to resume with the result
task_todo_idNoID of the task todo
from_agent_idNoID of the from agent
wait_for_resultNoStart the receiver now and resume this session with its result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / from_agent_id / description
      Added value: +"ID of the from agent"
    • addedInput schema / properties / message / description
      Added value: +"Everything the receiving agent needs, including where to send the result"
    • addedInput schema / properties / priority / description
      Added value: +"Priority"
    • addedInput schema / properties / session_name / description
      Added value: +"Name of the sending session to resume with the result"
    • addedInput schema / properties / task_todo_id / description
      Added value: +"ID of the task todo"
    • addedInput schema / properties / to_agent_id / description
      Added value: +"ID of the to agent"
  2. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only say destructiveHint=true, idempotentHint=false, openWorldHint=false; the description adds the behavior that actually matters: server_job receivers start immediately (started=true), other receivers depend on tenant automatic-handoff settings, auto-pickup is rate-limited per hour and limited to the last 24 hours, wait_for_result is capped at 5 per hour per sender and survives a 24 h timeout with session resumption, and the receiver's own permissions still apply. It also discloses failure behavior: an unknown or ambiguous name is refused with the available agents listed.

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 required/optional parameters, then behavioral branches — a sensible order. It is dense and long with several run-on em-dash clauses and mixed German terminology ('Delegations → Zwischen Agenten', 'infoUebergaben', 'nur_info'), which costs some readability, but almost every sentence carries operational information rather than filler.

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?

For an 8-parameter delegation tool with no output schema, the description covers the outcome of each mode (started=true, status info, session resumption), lifecycle timing (24 h timeout, next run, hourly limits), and the caller-side protocol for narrating results. Nothing needed to invoke it correctly or interpret its effects is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so 3 is the floor, but the description goes well beyond it: to_agent_id/from_agent_id accept either the id from list_agents or the exact case-insensitive name, resolved only within the tenant; from_agent_id defaults to the acting agent; task_todo_id absent means a one-time task is created; nur_info changes storage status to info and suppresses wake/start; wait_for_result triggers immediate start plus session resumption. These are semantic consequences the schema descriptions do not convey.

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?

Opening clause states a specific verb and resource: 'Hand a task from one agent to another', with the ownership scope '(both owned by the caller)'. That is enough to separate it from delegate_to_user (human target), report_task_result (receiver side) and get_delegation_status (inspection) without opening any 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 gives positive and negative selection rules: use nur_info 'whenever the receiver need not act', because 'a normal handoff costs the receiver a full run'; use wait_for_result only when this session should be resumed; use get_delegation_status to inspect state; use delegate_to_user to present the final result. It also states a protocol constraint for the caller ('Tell the person handed to <agent>, never done').

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.