Skip to main content
Glama

Wait for the files to be sent

wait_for_upload
Read-onlyIdempotent

Waits up to 50 seconds for the person to press Send on the upload link from get_upload_link. Returns the file ids in the order the person chose when they are sent, "still waiting" when the time runs out (call it again with the same upload_id), or "expired" when the link ran out. Never ask the person to say done.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "upload_id": "<upload_id>"
    },
    "name": "wait_for_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
upload_idYesThe upload_id from get_upload_link.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, non-destructive, closed-world), the description discloses the 50-second timeout, the three possible outcomes (file ids, 'still waiting', 'expired'), and what to do on each. That is the full behavioral envelope for a polling tool.

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 tight sentences, front-loaded with the timeout, then the outcomes, then the anti-pattern warning. Every clause carries operative information with no filler.

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?

There is no output schema, but the description fully specifies the return states and their meanings, plus retry behavior. For a one-parameter polling tool, nothing an agent needs in order to call it correctly is missing.

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% and the single parameter is already documented in the schema. The description only adds the retry-relevant nuance that the same upload_id must be reused across calls, which is useful but minimal beyond structured data.

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 verb and resource ('waits ... for the person to press Send on the upload link') and ties it directly to the sibling that produces the input ('the upload link from get_upload_link'). An agent can distinguish this polling step from the link-creation step without inspecting 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?

It gives explicit runtime context (up to 50 seconds), an explicit retry rule ('call it again with the same upload_id' on 'still waiting'), and an explicit exclusion ('Never ask the person to say done'). No conditions are left to inference.

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