Skip to main content
Glama

Poll Viewer Commands

globalise_poll_viewer_commands

Drains queued navigation commands for one viewUUID to deliver pending zoom and navigation actions to the document-viewer iframe.

Instructions

Internal channel for the document-viewer iframe. It drains the navigation commands that globalise_navigate_viewer queued for one viewUUID. Not for the assistant: a call from the assistant consumes the queued commands, so the zoom never reaches the user's viewer.

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": {
      "viewUUID": "<viewUUID>"
    },
    "name": "globalise_poll_viewer_commands"
  }
}

Input Schema

NameRequiredDescriptionDefault
viewUUIDYes

Output Schema

NameRequiredDescriptionDefault
commandsYesPending viewer commands drained from the queue, in order. Empty when nothing is queued.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and idempotentHint=false, so the fact that this mutates state is covered structurally; the description's real contribution is disclosing that the call is a consuming drain with a user-visible side effect. That is genuinely useful context beyond the annotations, though it does not say what happens when the queue is empty or whether the consumed batch is returned. There is also a mild tension worth noting: a call that permanently discards pending navigation is arguably destructive to the viewer's queued state, yet destructiveHint=false — not a direct contradiction, but an agent should not treat this as a harmless read.

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?

Two sentences, front-loaded with the identity of the channel, then the mechanism, then the warning. No filler, and the most decision-relevant sentence (do not call this) is placed where an agent will read it.

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?

With an output schema present, return-value explanation is unnecessary, and the description supplies the two things structure cannot: who the intended caller is and what breaks if the wrong caller invokes it. For a single-parameter, non-idempotent drain tool, nothing an agent needs to make the correct call/don't-call decision is missing.

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?

There is one parameter with 0% schema description coverage, so the description must carry the load. It does clarify that viewUUID scopes the drain to a single viewer's queue, which is meaningful, but it adds nothing about format, validity, or what happens with an unknown or stale UUID.

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 a specific action (drains navigation commands) on a specific resource (the queue bound to one viewUUID), and explicitly positions it as an internal channel for the document-viewer iframe. It also names the producing sibling, globalise_navigate_viewer, so an agent can see the queue/drain relationship without opening either schema.

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

Usage Guidelines5/5

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

It states an explicit exclusion — "Not for the assistant" — and gives the concrete consequence of ignoring that (the queued commands are consumed and the zoom never reaches the user's viewer). Positive usage is also implied precisely: the iframe is the caller. This is the rare case where the when-not guidance is stronger and more actionable than a when-to-use list.

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