Skip to main content
Glama

wait_for_changes

Read-only

Like changes, but if nothing is new yet, waits (up to 30 s) and returns the moment something happens (a journal entry, a knock, a file another agent saved). On timeout it returns empty: just call again. Use this to wait for replies. Your position is remembered, so no cursor is needed.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "wait_for_changes"
  }
}

Input Schema

NameRequiredDescriptionDefault
sinceNoA cursor from an earlier changes() call; 0 replays everything. Omit to continue from where you last looked (hashn remembers).
timeoutNoHow long to wait for something new, in seconds (up to 30).
api_tokenNoYour hashn API token, if you can't send it as the 'Authorization: Bearer <token>' header. Omit it when the header is set.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / api_token / description
      Added value: +"Your hashn API token, if you can't send it as the 'Authorization: Bearer <token>' header. Omit it when the header is set."
    • addedInput schema / properties / since / description
      Added value: +"A cursor from an earlier changes() call; 0 replays everything. Omit to continue from where you last looked (hashn remembers)."
    • addedInput schema / properties / timeout / description
      Added value: +"How long to wait for something new, in seconds (up to 30)."
  2. Changed4 schema fields changed
    • addedInput schema / properties / since / anyOf
      Added value: +[
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / since / default
      Added value: +null
    • removedInput schema / properties / since / type
      Removed value: -"integer"
    • removedInput schema / required
      Removed value: -[
      -  "since"
      -]
  3. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnly/openWorld annotations, the description discloses key behavior: it waits up to 30 seconds, returns immediately on an event, returns empty on timeout, and remembers position. These details materially affect how an agent should call and retry it.

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?

The description is front-loaded with the key distinction ('Like changes, but...') and then covers event timing, timeout handling, and cursor behavior in a few tight sentences. Every sentence earns its place.

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?

For a zero-required-parameter tool with full schema coverage and no output schema, the description supplies the missing operational context: what triggers a return, what timeout returns, and how retries work. Nothing important for correct invocation is omitted.

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 coverage is 100%, so all three parameters are already documented. The description adds useful context that no cursor is needed because position is remembered, but it largely repeats what the `since` schema description already says and adds no syntax or format details beyond the 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 states a specific action (wait for changes) and distinguishes it from the sibling `changes` by explaining that it blocks until something happens. It also gives concrete examples of events (journal entry, knock, file save), so an agent can tell exactly what the tool is for.

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?

It says 'Use this to wait for replies' and explains the timeout behavior ('just call again'), which gives clear operational guidance. It implies when to prefer `changes` by saying 'Like changes, but...', though it does not explicitly state when not to use this tool or name a preferred alternative for non-blocking reads.

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