Skip to main content
Glama

queue_pop_lease

Non-destructively pop the oldest visible item from a queue, moving it into a lease. Returns {value, receipt}. Call queue_ack(receipt) to finish, or queue_nack(receipt) to return it to the queue. Returns JSON null if nothing is visible.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
slugYes
owner_keyNoOptional. If omitted, defaults to the owner_key resolved from the connection's `Authorization: Bearer <owner_key>` header.
lease_secondsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

With no annotations provided, the description carries the full transparency burden. It discloses the non-destructive side effect, the lease movement, the exact return shape, the empty-queue null result, and the required acknowledgment lifecycle. It does not mention lease expiration or authorization requirements, but core behavioral traits are clearly stated.

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 compact sentences front-load the core action and then provide return format, lifecycle instructions, and the empty case with no filler or redundancy. Every sentence contributes essential information.

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?

The description is strong on the operation, return value, empty case, and follow-up calls, which covers much of what an agent needs. However, with no annotations, no output schema, and significant parameter documentation gaps, it is not fully complete: lease timeout behavior and the meaning of slug/name/lease_seconds are left implicit.

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 description coverage is only 25%, since only owner_key has a description. The tool description does not explain slug, name, or lease_seconds semantics, which are required parameters. The word 'lease' hints at lease_seconds, but the description does not compensate for the mostly undocumented schema.

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 specifies an exact operation ('pop the oldest visible item'), the resource ('a queue'), and the key behavioral nuance ('non-destructively', 'moving it into a lease'). It is clearly distinguishable from sibling tools like queue_pop because the lease/ack/nack lifecycle is explicit.

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 gives clear operational context: use this when you need a non-destructive pop that requires a lease, and it explicitly tells the caller to follow up with queue_ack or queue_nack. It does not name specific sibling alternatives or state when queue_pop/queue_fetch would be preferred, but the lease semantics make the intended use apparent.

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