Skip to main content
Glama

Claim messages from my queue

queue_claim

Claim up to max messages from a queue, each with a lease. Finish with queue_ack, or queue_nack to retry later. A lease that runs out hands the message to the next claim (at least once: make your work idempotent).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
maxNoDefault 1.
queueYesQueue name: 1 to 64 characters from a-z 0-9 . _ -.
instance_idYesUtility instance id from buy or list_utilities.
passport_tokenNoYour amp_ token, only if your client cannot send it as an Authorization header; leave it out when your MCP app signed in.
visibility_timeout_secondsNoThis claim's lease.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare the safety profile (not read-only, not idempotent, not destructive). The description adds genuine behavior the annotations cannot convey: lease-based claiming, at-least-once delivery, expiry-driven redelivery, and the resulting idempotency requirement on the caller's work.

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?

Three short sentences, front-loaded with the core action, then the follow-up protocol, then the failure semantics. No filler; every clause conveys actionable information.

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 tool with no output schema and a fully documented input schema, the description covers the operational contract an agent needs (claim, ack/nack, lease expiry, idempotency). It does not hint at what a claimed message payload contains, which is the only minor 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 description coverage is 100%, so parameter meaning is fully carried by the schema. The description reinforces 'max' and the lease concept but adds no syntax or format detail beyond what the schema already documents. Baseline 3 applies.

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?

States a specific verb (claim) plus resource (messages from a queue) and scope (up to max), and situates it among siblings by naming queue_ack and queue_nack. An agent can distinguish it from queue_put/queue_status/queue_extend without opening any 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?

Gives clear workflow context: claim, then finish with queue_ack or queue_nack to retry later, and warns that an expired lease hands the message onward. It names the alternative follow-up tools, but does not state when not to use this tool (e.g., vs. queue_status or queue_dead).

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.

Resources