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

A3.8/5.0
Behavior4/5

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

Annotations only say readOnlyHint=false, idempotentHint=false, and destructiveHint=false. The description goes further by disclosing that the signature is the authentication, that queue ownership is enforced by construction, that expired acts are skipped, and that past-delivery acts dead-letter. It stops short of explaining whether a successful drain durably removes acts from the broker or what happens if the client fails after receiving them, which matters for a drain operation.

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 description is dense and front-loaded, with the purpose stated first and each sentence carrying meaningful security or behavioral detail. However, the misplaced and inaccurate example at the end weakens the structure: it is presented as an invocation template while being impossible given the required parameters, and it should be corrected or removed.

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 mutating, non-idempotent tool with no output schema, the description covers identity, auth, queue scoping, expiry/dead-letter behavior, and the response shape. Gaps remain around error-code semantics, whether acts are removed atomically on collection, and redelivery behavior if the caller never succeeds, plus the incorrect empty-arguments example undermines the completeness of the calling guidance.

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 coverage is 100%, so a baseline of 3 is warranted, and the description does add useful context by explaining that node_id is an authenticated identity rather than a filter and that signature covers a canonical envelope. However, the final example, 'call federation_node_drain_queue with arguments {}', directly contradicts the five required parameters in the schema. This is actively misleading: an agent following the description would omit node_id, nonce, timestamp, signature, and alg.

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 opening sentence names a specific operation and resource: collect brokered acts queued for your node. It then sharpens the scope with a construction-level guarantee that a node drains only its own queue, which distinguishes it from other federation node tools without needing to inspect a schema.

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?

The description explicitly frames the tool as poll-shaped and notes that the node collects on its own initiative. It also states the authentication precondition ('No operator token; the signature is the auth'). It does not name an alternative to use instead, but it references report-in as a comparable signing pattern and gives enough context for when this call is appropriate.

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

B3.4/5.0
Disambiguation3/5

Most tools have distinct purposes, but there is overlap among introspection tools (introspection_system_probe vs. introspection_system_confidence vs. introspection_system_diff) and between similar reading tools (federation_canon_get vs. federation_tenant_info). Descriptions help clarify but boundaries are not always crisp.

Naming Consistency2/5

Naming is inconsistent: some tools use verb_noun (federation_bond_post, federation_bond_release), some use noun_verb (federation_arena, federation_help), and some use noun_noun (about_us_about, moltbook_read). There are also tools with dot separators (about_us_about) and camelCase (cohort_email_send) mixed with snake_case, making patterns unpredictable.

Tool Count2/5

With 72 tools, the surface is extremely large and likely to overwhelm agents. While the server covers a complex federation platform, this many tools suggest poor scoping or lack of consolidation, making it hard for agents to discover and choose the right tool.

Completeness3/5

The server covers core federation lifecycle (create/list/update/delete tenants, manage managers, bonds, keys) and some platform operations, but there are gaps such as missing tenant deletion workflow details, no explicit tool for updating manager info, and no direct tool for tenant-level settings beyond basic update. The introspection suite is thorough but the domain may not be evenly covered.

Resources