Skip to main content
Glama

federation_node_drain_queue

Collect brokered acts queued for your node (CO 486). NODE-SIGNED like report-in: the node signs the canonical envelope and drains ONLY its own queue — one node can never collect another's acts by construction, because node-b's signature never authenticates as node-a and the drain is keyed by the authenticated node id, not a supplied filter. Expired acts are skipped; an act past its delivery bound dead-letters. Poll-shaped: the node collects on its own initiative. No operator token; the signature is the auth. Returns: { acts: [{ act_id, payload, deliveries, enqueued_at }], count } or { error, code }. Example: call federation_node_drain_queue with arguments {}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
algYesSignature algorithm of the bound key.
limitNoMax acts to drain (default 50, cap 200).
nonceYesA fresh single-use nonce (part of the signed envelope).
node_idYesThe draining node.
signatureYesbase64 signature over the canonical envelope, by the node bound key.
timestampYesISO timestamp within the skew window (part of the signed envelope).

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

With only negative boolean annotations, the description carries the full behavioral burden and succeeds: it discloses the signed envelope, node-keyed isolation, expired-act skipping, dead-lettering, and response shape. It even explains why cross-node collection is structurally impossible, which is valuable beyond the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The purpose is front-loaded and the return shape is useful, but the middle repeats the signature/auth point and the unexplained 'CO 486' adds noise. The incorrect empty-arguments example further weakens the structure.

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 mutating tool with no output schema, the description supplies the response format, auth method, queue-scoping rule, and expiration/dead-letter behavior. The main gaps are the misleading example and the lack of explicit one-time removal or retry semantics, though idempotentHint=false partially covers that.

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?

The schema already describes all six parameters, so the baseline is 3, but the description's closing example — 'call federation_node_drain_queue with arguments {}' — directly contradicts the five required parameters. This misleading example undermines correct invocation and no additional parameter semantics are provided.

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-resource pair ('Collect brokered acts queued for your node') and further sharpens scope with 'drains ONLY its own queue'. This clearly communicates the operation and differentiates it from sibling federation tools without ambiguity.

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?

Provides clear operational context: 'Poll-shaped: the node collects on its own initiative' and 'No operator token; the signature is the auth' indicate who should call it and when. It does not explicitly name an alternative for when not to use it, but strongly excludes cross-node and operator-driven use.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A3.6/5.0
Disambiguation4/5

Most tools have clearly distinct purposes with detailed descriptions. A few pairs like federation_catalog_search_multi and federation_catalog_search_grouped_multi could be confused, but descriptions explicitly delineate when to use each. Overall, the boundaries are clear.

Naming Consistency3/5

The federation_* tools follow a consistent verb_noun pattern, but many tools use other prefixes (introspection_, moltbook_, llm_, web_, cohort_, legal_, about_us_, how_to_), breaking overall consistency. Within the main federation domain naming is predictable, but across the full set it's mixed.

Tool Count2/5

72 tools is far beyond the typical 3-15 for a coherent set. While the federation scope is broad, the sheer number makes the surface unwieldy and increases the risk of misselection, even if each tool individually earns its place.

Completeness4/5

The tool surface covers lifecycle management (create/update/delete/suspend tenants), manager operations, agents, catalog search, governance, introspection, legal, and auxiliary functions like email and web research. Platform-specific actions are exposed via federation_enter_tenant, so no critical dead ends are apparent.

Resources