Skip to main content
Glama

Cooper Email

Hand a thread to a human

cooper_handoff_thread
Idempotent

Use this when a thread needs a human, or to read that state. Requires auth. Inputs: inbox_id (omit when this key is limited to one inbox), thread_id, action (mark or status), optional reason (at most 500 characters) for mark. mark pauses agent sends on that thread and notifies verified owners. status reads needs_human or resolved. The agent cannot resume. The owner resumes with POST /api/v1/owner/agents/{inbox}/threads/{thread_id}/resume. Mail already sent is not recalled. A send on a paused thread is HTTP 409 thread_needs_human. An unknown thread is HTTP 404 thread_not_found. COOPER_HUMAN_HANDOFF=off returns HTTP 503 handoff_disabled. The default is on. Same as POST and GET /api/v1/inboxes/{id}/threads/{threadId}/handoff.

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": {
      "thread_id": "<thread_id>",
      "action": "<action>"
    },
    "name": "cooper_handoff_thread"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesmark or status.
reasonNoWhy a human is needed. At most 500 characters. Used when action is mark.
inbox_idNoInbox id, username, or email. Omit it when this key is limited to one inbox.
thread_idYesThread id (thr_…).

Output Schema

NameRequiredDescriptionDefault
objectNothread_handoff.
reasonNoWhy the thread was paused, or null.
statusNoneeds_human or resolved.
inbox_idNoInbox id.
thread_idNoThread id.
created_atNoISO-8601 time it was marked, or null when it was never marked.
resolved_atNoISO-8601 time the owner resumed it, or null.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, the description discloses the substantive behavioral traits: mark pauses agent sends and notifies verified owners, the agent cannot resume and must route resumption through the owner endpoint, already-sent mail is not recalled, and the specific failure modes (409 thread_needs_human, 404 thread_not_found, 503 handoff_disabled, default on) are spelled out. This is exactly the context annotations cannot carry, and it is consistent with readOnlyHint=false, destructiveHint=false, and idempotentHint=true.

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 definition is front-loaded with the trigger condition and the two actions, then layers on errors and constraints. It is dense but every clause carries operational information; the endpoint mapping and error-code list make it read as a compressed run-on, which costs a little readability but not correctness.

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 mutation tool with an output schema already present, the description covers everything an agent needs: auth requirement, action semantics, irreversibility of sends, resumption path owned by the human, and the full set of error responses including the feature flag. Nothing material is left to inference.

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 adds real meaning beyond the schema by explaining what each action value does (mark pauses and notifies; status reads needs_human or resolved) and by tying reason to the mark action only. The inbox_id omission rule is repeated from the schema rather than extended, 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 description names both modes precisely: handing a thread to a human (mark) and reading that state (status), and describes the concrete effects (pauses agent sends, notifies verified owners). An agent can distinguish this from generic thread tools such as cooper_assign_thread or cooper_update_thread because the resource is specifically the human-handoff state of a thread.

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?

"Use this when a thread needs a human, or to read that state" gives a clear trigger condition, and the action semantics tell the agent which of the two modes to pick. What is missing is an explicit exclusion or named alternative for adjacent operations (e.g. assigning an owner vs. handing off to a human), so the guidance is clear but not fully comparative.

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.