Skip to main content
Glama

delegate_to_user

Destructive

THE channel for anything a HUMAN must do, decide or answer (approve, confirm data, classify, check something on site). Not create_todo (that is the agent's own list), not send_team_email or mail/WhatsApp to colleagues. Address the person who must act with an (name or user_id, resolved only within this tenant; default: the key owner) — it lands in THAT person's delegation inbox on the website and in the app, counted at the bell. Link it with bezug {typ: 'deal'|'project'|…, id: e.g. the DN number} and a short thema: an open delegation for the same person + bezug + thema is REUSED (reused: true, new questions appended) instead of creating a second one — so never ask the same thing again, wait for the answer. A deadline (frist_at) follows from importance (≥80: 4 working hours, ≥60: next working morning 09:00; or pass frist); unanswered after it the person is reminded once a day (07–19 Zurich) and then it is escalated to the tenant's escalation person. Hand a concise summary and zero or more open questions to the human — from a scheduled Dev-Agent turn OR from an interactive Dev-Agent session. Each question needs text, importance (0-100), and 1-n recommended answers. The questions appear in the user's delegation inbox in CallPilotAI; when answered, this same session is resumed automatically with the answers. NO ids are required: schedule_run_id, runner_id and session_id are only passed in a scheduled turn (from its instruction). Anywhere else — an interactive Dev-Agent session, Claude Desktop, any client — just call it with summary and questions; in a Dev-Agent session the runner supplies runner and session itself, so the answer resumes this session. Use it for decisions the human must take (approve a draft, pick an option), not for chat. For EVERY question also recommend which agent should handle it (recommended_agent_id from list_agents, plus a one-line recommended_agent_reason) — yourself if you can, another agent if it has the rights or the expertise you lack; null only when no agent should act and the human decides alone. The inbox offers the human a one-click hand-over to that agent. Reply drafts to an incoming item: ALWAYS set source {kind: 'email'|'inbound_message', id} on EACH question (questions[].source), also when one delegation holds many drafts — only then does each mail/message carry its draft and /app/inbox count it under 'Entwürfe zur Freigabe'. The result reports linked_sources and unlinked_sources (with reason).

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>",
      "questions": "<questions>"
    },
    "name": "delegate_to_user"
  }
}

Input Schema

NameRequiredDescriptionDefault
anNoWho must answer/act: name (e.g. 'Max Mustermann', 'Erika') or user_id from list_tenant_users. Only members of this tenant; ambiguous or unknown names are refused with the member list. Default: the key owner.
bezugNoWhat it is about, for duplicate detection and the inbox: {typ: deal|project|lead|account|contact|offer|lab_order|todo|email|other, id}. For deals the deal number (e.g. '1000').
fristNoOptional deadline (ISO date-time). Default from importance: ≥80 four working hours, ≥60 next working morning 09:00, below no deadline.
themaNoShort topic key, e.g. 'Daten komplett bestätigen' or 'MaP einstufen'. Same person + bezug + thema while open = the same delegation.
sourceNoThe incoming item this is about (e.g. the mail a reply draft answers): {kind: 'email'|'inbound_message', id}. The item then carries this delegation as its reply draft (triage_draft_delegation_id). Checked BEFORE anything is created. For several drafts in one delegation use questions[].source per question instead.
summaryYesConcise summary for the human of what this is about
agent_idNoID of the agent
questionsYesOpen questions for the human, each with text, importance and recommended answers
runner_idNoID of the runner
an_user_idNoSame as an, as a user_id.
session_idNoID of the session
session_nameNoName of the asking Dev-Agent session, resumed with the answers
schedule_run_idNoID of the schedule run

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed27 schema fields changed
    • addedInput schema / properties / agent_id / description
      Added value: +"ID of the agent"
    • addedInput schema / properties / bezug / properties / id / description
      Added value: +"ID of the related record, for deals the deal number"
    • addedInput schema / properties / bezug / properties / typ / description
      Added value: +"Type of the related record, e.g. deal, project, lead, account or other"
    • addedInput schema / properties / questions / description
      Added value: +"Open questions for the human, each with text, importance and recommended answers"
    • addedInput schema / properties / questions / items / properties / depends_on / properties / delegation_id / description
      Added value: +"ID of the delegation"
    • addedInput schema / properties / questions / items / properties / depends_on / properties / todo_id / description
      Added value: +"ID of the to-do"
    • addedInput schema / properties / questions / items / properties / email / properties / attachments / description
      Added value: +"Every file that goes out with the draft; [] when none"
    • addedInput schema / properties / questions / items / properties / email / properties / attachments / items / properties / document_id / description
      Added value: +"ID of the document"
    • addedInput schema / properties / questions / items / properties / email / properties / attachments / items / properties / name / description
      Added value: +"Exact file name of the attachment"
    • addedInput schema / properties / questions / items / properties / email / properties / attachments / items / properties / path / description
      Added value: +"Storage path of the attachment file, when known"
    • addedInput schema / properties / questions / items / properties / email / properties / attachments / items / properties / size_bytes / description
      Added value: +"File size of the attachment in bytes"
    • addedInput schema / properties / questions / items / properties / email / properties / cc / description
      Added value: +"CC recipients (email addresses)"
    • addedInput schema / properties / questions / items / properties / email / properties / subject / description
      Added value: +"Subject line"
    • addedInput schema / properties / questions / items / properties / email / properties / to / description
      Added value: +"Recipient address(es) of the email draft"
    • addedInput schema / properties / questions / items / properties / id / description
      Added value: +"Optional stable ID of the question"
    • addedInput schema / properties / questions / items / properties / importance / description
      Added value: +"Importance 0-100; also sets the default deadline"
    • addedInput schema / properties / questions / items / properties / recommendations / description
      Added value: +"One or more recommended answers offered to the human"
    • addedInput schema / properties / questions / items / properties / source / properties / id / description
      Added value: +"ID of the incoming email or inbound message this draft answers"
    • addedInput schema / properties / questions / items / properties / source / properties / kind / description
      Added value: +"Type of the incoming item this draft answers: email or inbound_message"
    • addedInput schema / properties / questions / items / properties / text / description
      Added value: +"The question or decision, kept short"
    • addedInput schema / properties / runner_id / description
      Added value: +"ID of the runner"
    • addedInput schema / properties / schedule_run_id / description
      Added value: +"ID of the schedule run"
    • addedInput schema / properties / session_id / description
      Added value: +"ID of the session"
    • addedInput schema / properties / session_name / description
      Added value: +"Name of the asking Dev-Agent session, resumed with the answers"
    • addedInput schema / properties / source / properties / id / description
      Added value: +"ID of the incoming email or inbound message"
    • addedInput schema / properties / source / properties / kind / description
      Added value: +"Type of the incoming item: email or inbound_message"
    • addedInput schema / properties / summary / description
      Added value: +"Concise summary for the human of what this is about"
  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 mark it as non-read-only, destructive, and non-idempotent; the description adds substantive behavior beyond them: tenant-scoped recipient resolution, reuse of an open delegation for the same person + bezug + thema, deadline/reminder/escalation rules, session resumption with answers, and linked/unlinked source reporting. It could still spell out cancellation/undo and the practical meaning of 'destructive' more directly, so it stops short of 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.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and key exclusions are front-loaded, but the description is very long, with repeated source/id instructions and dense run-on sentences such as '... so never ask the same thing again, wait for the answer'. The density is partly justified by the tool's complexity, but several points are restated.

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 a 13-parameter, nested, destructive tool with no output schema, the description covers selection, recipient resolution, deduplication, deadlines, resume behavior, and result reporting such as linked_sources and unlinked_sources. Nothing critical to correct invocation is obviously 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 the baseline is 3; the description adds meaning around the default recipient, tenant scoping, the deduplication key, deadline derivation from importance, per-question source requirements, and that schedule/session ids are only supplied in scheduled turns. Some of this duplicates schema text, which keeps it from a 5.

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 opening sentence names the specific resource and scope: 'THE channel for anything a HUMAN must do, decide or answer', and explicitly distinguishes it from create_todo, send_team_email, and mail/WhatsApp. An agent can select it without needing to infer its role from sibling names.

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 clear when-to-use examples (approve, confirm data, classify, decisions), explicit exclusions ('not for chat'), and named alternatives. It also tells the agent what to do when an open delegation already exists rather than asking the same thing again.

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.