Skip to main content
Glama
Firenook

Firenook

Official

pubsub_peek

Read-onlyIdempotent

Inspect a Pub/Sub subscription's backlog in delivery order without pulling, leasing, or acking messages. Returns each message's state, attempts, attributes, and data preview.

Instructions

Peek at a subscription's backlog in delivery order without pulling, leasing or acking anything: each message's state, attempts, attributes and data.

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": {
      "subscription": "<subscription>"
    },
    "name": "pubsub_peek"
  }
}

Input Schema

NameRequiredDescriptionDefault
fullNoReturn each message's whole data instead of a 256-character preview
limitNoAt most this many; default 20
stateNoOnly messages in this state; default every state
cursorNonextCursor of a previous peek
subscriptionYesSubscription id or full name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered; the description still earns credit for adding that no lease is created and no ack is sent, meaning message state is not mutated and outstanding ack deadlines are untouched. It does not discuss pagination behavior or any quota/rate considerations, which keeps it from 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.

Conciseness5/5

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

A single sentence with the key non-mutation guarantee front-loaded and the returned fields listed immediately after. Every clause adds information and nothing is repeated from the schema or annotations.

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?

For a five-parameter read tool with no output schema, the description covers what comes back (per-message state, attempts, attributes, data) and the no-ack/no-lease semantics, which is what an agent most needs. It omits anything about cursor paging semantics for large backlogs, but the schema's cursor field and the parameter descriptions close most of that gap.

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 100%, so every parameter, the enum states, the 1-500 limit range and the 256-character preview default are already documented in structured form; the description only loosely reinforces 'data' and 'state'. Baseline 3 is appropriate because the schema, not the prose, carries parameter meaning.

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?

The description names a specific verb and resource ('Peek at a subscription's backlog') and goes further to enumerate the returned per-message fields (state, attempts, attributes, data) and their ordering. It is unmistakable what the tool does, though it never names a sibling alternative, so it stops short of explicit sibling differentiation.

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 through the contrast with 'pulling, leasing or acking' — i.e. use this for inspection rather than consumption — which is useful context for choosing it over a destructive pull. However, there is no explicit when-to-use statement, no mention of prerequisites such as consume permissions, and no named alternative to route the agent elsewhere.

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