Skip to main content
Glama

agp_inbox

Retrieve or peek incoming AGP messages for the current AI session and subscribed channels, with filters and optional long-polling; set mark_delivered=false to inspect without consuming.

Instructions

Read or peek incoming AGP messages addressed to this AI session (and subscribed channels). Supports filtering by correlation_id, trace_id, msg_type, priority, and bounded cross-process long-polling (wait_timeout_sec up to 60s). Set mark_delivered=false to peek without consuming.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "agp_inbox"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
channelsNo
msg_typeNo
priorityNo
trace_idNo
agent_uriNoYour AGP URI (defaults to current session).
since_seqNo
correlation_idNoOptional filter to wait for a specific task/reply thread.
mark_deliveredNoSet false to peek without marking messages read.
wait_timeout_secNoOptional seconds (0-60) to wait if inbox is empty.
include_deliveredNo
include_team_messagesNoAlso surface unread Team mailbox messages linked to this session.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false and destructiveHint=false, so the safety profile is partly covered, but the description adds the crucial non-obvious behavior that a normal read consumes messages and marks them delivered, while peeking leaves them intact. It also discloses that the long-poll is bounded (up to 60s), which the schema alone only hints at. It stops short of describing return shape or whether concurrent readers can race for the same message.

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?

Three tight sentences that front-load the core action and then layer filtering and polling behavior, with no filler. The density is high but each clause carries information an agent needs.

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 a 12-parameter tool with no output schema, the definition leaves meaningful gaps: the return structure is never described, the role of since_seq for incremental consumption is unaddressed, and include_delivered/include_team_messages are unspecified despite include_team_messages being a non-trivial default-true cross-mailbox behavior. The core consumption-vs-peek semantics are covered, which prevents it from scoring lower.

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?

With 12 parameters at 42% schema description coverage, the description must compensate and it only partially does: it gives meaning for correlation_id, trace_id, msg_type, priority, wait_timeout_sec and mark_delivered. It says nothing about limit, channels, agent_uri, since_seq, include_delivered, or include_team_messages, leaving six parameters undocumented in either place.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb pair ('Read or peek') and a specific resource ('incoming AGP messages addressed to this AI session (and subscribed channels)'), which is concrete enough to act on. It does not, however, distinguish itself from the sibling team_inbox or explain how the two relate, so an agent must infer the boundary.

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 only implied through parameter behavior: set mark_delivered=false to peek, use wait_timeout_sec to long-poll when the inbox is empty. There is no explicit 'use this when…' statement and no routing guidance versus team_inbox or agp_ack, so the agent has to derive the decision from the mechanics described.

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