Skip to main content
Glama

Wait for new 2ools project activity

wait_for_project_activity
Read-onlyIdempotent

Wait for up to 20 seconds to receive new project activity events, returned oldest-first for ordered processing. Use a cursor to skip already-seen events and get a resync signal when pagination is required.

Instructions

Wait up to 20 seconds for attributable project events newer than a head_cursor or prior next_cursor. Returns events oldest-first so an outside agent can process them in order. If resync_required is true, paginate get_project_activity instead of advancing the cursor.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum new events to return.
project_idYes2ools project ID.
after_cursorYesOpaque head_cursor from get_project_activity or next_cursor from a prior wait.
timeout_secondsNoMaximum time to wait before returning timed_out=true.
Behavior5/5

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

Beyond the annotations (readOnlyHint, idempotentHint), the description adds meaningful behavior: the 20-second timeout limit, the oldest-first ordering, and the resync_required fallback logic. It also explains cursor semantics, which is valuable for correct invocation.

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 sentences, each carrying essential information: timeout, event ordering, and resync behavior. No filler or repetition. The structure is front-loaded with the core action and then clarifies response ordering and edge-case handling.

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 polling tool with no output schema, the description explains the key behavioral aspects (blocking, ordering, resync) and is sufficient for an agent to use it correctly. It could be slightly more explicit about the response envelope (e.g., timed_out flag), but the timeout_seconds parameter description hints at it, so the gap is minor.

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?

The input schema already provides 100% parameter coverage with detailed descriptions for project_id, after_cursor, limit, and timeout_seconds. The description does not add much beyond what the schema states, so the baseline of 3 applies. It does reference head_cursor/next_cursor indirectly, but those concepts are already in the schema for after_cursor.

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 states a specific action: wait up to 20 seconds for project events newer than a cursor. It clearly distinguishes the tool from siblings by describing its blocking behavior and the order of returned events, which sets it apart from immediate-fetch tools like get_project_activity.

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?

It explicitly references an alternative in a specific condition: 'If resync_required is true, paginate get_project_activity instead of advancing the cursor.' It also provides context on why to use this tool ('so an outside agent can process them in order'). This gives clear when-to-use and when-not-to-use guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/2ools/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server