Skip to main content
Glama

send_to_role

Route messages to active agents by role instead of naming handles, enabling domain handoffs when you don’t know who is on shift; optionally post one question for the role.

Instructions

Route a message by function: DM every active agent whose role is role, instead of naming a handle. This is how you hand work to whoever owns a domain (e.g. send_to_role("reviewer", "please review #123")) without knowing who is on shift. Delivers one DM per matching agent; yourself is excluded, and only agents on your project or a linked one are reached. Returns the recipients it hit — an empty list means no one currently holds that role.

With question=True it posts ONE question addressed to the role instead of one DM per holder. Every holder sees it until one of them answers; if nobody holds the role yet, it waits for the first session that takes it. Same project only. Returns the question's guid; track it with questions.

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": {
      "role": "<role>",
      "body": "<body>"
    },
    "name": "send_to_role"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes
roleYes
urgentNo
questionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does so well: it discloses fan-out semantics (one DM per matching agent), self-exclusion, project/linked-project scoping, empty-list return meaning, and the question-mode lifecycle including the waiting behavior for unfilled roles. It omits failure/permission behavior and never mentions what `urgent` does.

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 well-separated paragraphs: the default routing behavior first, then the question variant. Front-loaded and mostly economical, though the 'instead of naming a handle' framing is restated slightly and the question paragraph could be tighter.

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?

Despite no output schema and no annotations, the description covers return values for both modes (recipient list vs. question guid, plus how to track it via `questions`). The main gap is the undocumented `urgent` flag, which leaves one of four parameters unexplained for a messaging tool.

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

Parameters3/5

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

Schema coverage is 0%, so the description must compensate. It gives real meaning to `role` and `body` via the example call and thoroughly explains `question=True`, but `urgent` is never mentioned and its effect is left entirely undefined across all four parameters.

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?

Opens with a specific verb and resource ('Route a message by function: DM every active agent whose role is `role`') and immediately contrasts it with the alternative of naming a handle, so an agent can distinguish it from `send` without opening a schema. The concrete example call reinforces the intent.

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?

Gives clear when-to-use framing ('hand work to whoever owns a domain ... without knowing who is on shift') and describes the alternate mode (question=True) with its own behavior. It never explicitly names the sibling `send` as the choice when a handle is known, so the exclusion is implied rather than stated.

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