Skip to main content
Glama

await_upload

Read-only

Wait for a file upload to land by polling the link from source_add. Handles pending and expired links, returning source details on success.

Instructions

Wait for a file uploaded via a source_add(source_type="file") link to land.

Pass the human_upload.url (or the bare token) that source_add returned. Polls the server in-process until the browser/agent upload commits the source:

  • {"status":"received","source_id",...,"file":{...}} — the upload landed.

  • {"status":"pending",...} — nothing yet after ~timeout s; re-invoke with the same link (the wait resumes; a transport reset does not lose it).

  • {"status":"expired_or_invalid",...} — the link failed; mint a fresh one via source_add(source_type="file").

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timeoutNo
upload_linkYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Despite annotations declaring readOnlyHint=true and destructiveHint=false, the description adds substantial behavioral detail: polling mechanism, timeout behavior, resumability across transport resets, and the three possible statuses. This goes far beyond the annotation and gives the agent a precise mental model.

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 structured with a brief intro, a parameter instruction, and a bulleted list of status outcomes. Every sentence is purposeful, no filler, and formatting aids quick comprehension.

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?

Despite having an output schema (true), the description goes beyond it by explaining the full workflow: when to call, what to pass, what each status means, and how to handle pending/expired cases. It is complete for a polling tool with this complexity.

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?

With 0% schema description coverage, the description must compensate. It does so by explaining upload_link (from source_add return) and timeout indirectly ('after ~timeout s'). The default value is in the schema, so no issue. This is solid compensation for missing schema descriptions.

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?

Description opens with a specific verb+resource: 'Wait for a file uploaded via a source_add(source_type="file") link to land.' This clearly distinguishes it from siblings like source_add or source_wait by focusing on the file-upload link wait workflow.

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 provides clear context: pass the human_upload.url from source_add, re-invoke on pending, and mint a fresh link on expired_or_invalid. It does not explicitly mention alternatives like source_wait, but the usage context is well-defined.

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/Solar2004/nblm-mcp'

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