Skip to main content
Glama

team_send

Sends direct peer-to-peer messages to teammates by short name or broadcasts to all, with wake and delivery status so agents can coordinate handoffs.

Instructions

Send a direct peer-to-peer message to a teammate by short name (or 'all' to broadcast). Writes to ~/.gemini/agp/teams//inboxes/.json, mirrors to live session hooks/listeners, auto-wakes managed teammates, and returns honest delivery status.

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": {
      "team": "<team>",
      "to": "<to>",
      "message": "<message>"
    },
    "name": "team_send"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesRecipient short name (e.g. 'backend', 'lead', or 'all').
hopNo
kindNomessage
teamYes
wakeNo
messageYes
from_nameNolead
wake_modeNo'auto' wakes managed/listening/active peers; 'force_cli' spawns detached CLI resume even for unmanaged CLI sessions.auto

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the annotations (which only flag it as a non-destructive, non-idempotent write), the description discloses the concrete side effects: writing to the team inbox JSON path, mirroring to live hooks/listeners, and auto-waking managed teammates. It also flags that the returned `delivery` status is honest, which usefully signals partial-delivery outcomes, though it does not explain idempotency or ordering behavior.

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?

A single front-loaded sentence with the core action first, followed by delivery mechanics; every clause carries information, though the internal file path is arguably the least load-bearing detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter write tool with no output schema and low schema coverage, the definition covers the happy path and side effects but leaves the plan-approval `kind` variants, `hop` semantics, and the shape of the `delivery` return value unexplained.

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

Parameters2/5

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

Schema description coverage is only 25% across 8 parameters, and the description adds meaning only for `to` (short name or 'all') and obliquely for wake behavior. The significant `kind` enum (message, broadcast, plan_approval_request, plan_approval_response) and `hop`/`from_name`/`team` are left entirely to the bare schema.

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 states a specific verb and resource ('Send a direct peer-to-peer message to a teammate') plus the addressing scheme (short name, or 'all' to broadcast), which is enough to distinguish it from agent-level messaging siblings like agp_send and from read-oriented tools like team_inbox.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the addressing and broadcast note, but there is no explicit 'use this instead of X when...' guidance against the many siblings (agp_send, team_task, team_spawn), nor any stated prerequisites such as team membership or registration.

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