Skip to main content
Glama

poll_tasks

Read-onlyIdempotent

Waits for new task assignments, blocking until one is assigned or timeout expires, then returns current tasks and change status. Use for blocking access; supports full task details.

Instructions

Long-poll for new task assignments. Blocks until a task is assigned to this agent or the timeout expires. Returns current assigned tasks and whether any change occurred. Tasks use the lean get_my_tasks view (first-line descriptions, no envelope fields); full=true returns the complete items. Kept for backward compatibility — prefer get_my_tasks for non-blocking access.

Input Schema

NameRequiredDescriptionDefault
fullNoReturn complete task items instead of the lean view (default false).
timeoutNoMaximum seconds to wait for new assignments (default 30, max 120).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.9/5.0
Behavior5/5

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

Annotations cover safety (readOnly, idempotent, non-destructive), and the description adds the behavior that actually matters here: it blocks until an assignment arrives or the timeout expires, and it reports whether a change occurred. That blocking/call-duration trait is not derivable from the annotations.

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?

Five short sentences, front-loaded with the blocking semantics, then return behavior, then the backward-compatibility routing. Nothing is padded and no sentence repeats structured data.

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 no output schema, the description carries the return-value burden and does: current assigned tasks, a change flag, and the lean-vs-full shape. Combined with the blocking contract, an agent has everything needed to call this correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description goes further by explaining what the lean view actually omits ('first-line descriptions, no envelope fields') and that full=true returns complete items — clarifying the trade-off the parameter controls rather than restating its default.

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 and resource ('Long-poll for new task assignments') and immediately distinguishes itself from the sibling get_my_tasks by naming the non-blocking alternative. An agent can route between the two 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?

Explicitly says when to prefer it (legacy/backward compatibility) and when not to ('prefer get_my_tasks for non-blocking access'). The blocking-vs-non-blocking condition is exactly the decision an agent needs to make.

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