Skip to main content
Glama

Request a File From the User

request_user_upload

Show the user an inline upload card so they can hand you a file from their device (image/font/audio/…) — it lands in the project's hosted assets and the card gives you the hosted publicUrl. This is the path for any file the user has: an image they attached in this chat (attachments never reach MCP servers — you see them through vision only, so the user re-picks the same file here), a file on their machine, or a user-provided file you hold but can't upload yourself (over the 3 MB inline cap with no S3 egress — the card uploads from their browser, which is never egress-blocked). Returns a jobId — poll get_job_status; it stays running until they upload, then returns the publicUrl to reference in code. When you show the card, tell the user in a sentence why you're asking — e.g. that you can see their image but the file itself doesn't reach Floot, so re-adding it here is a one-click step — and ask them to say "uploaded" when done in case your polling ends before they finish. For files you hold yourself, use upload_asset; for AI-generated imagery, use generate_image. Some clients can't show the card (Microsoft Copilot Studio, for one): if the user says they don't see it, give them the project's preview link (get_preview_url) and ask them to sign in there and drag the file into Storage › Static (or use its Upload button), then call list_files — the file is listed under "Files uploaded in the editor" with the /_cdn/static/ path to use.

Input Schema

NameRequiredDescriptionDefault
projectIdYes
descriptionNoShown in the card — what you're asking for, e.g. "the logo image you attached".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=true) are consistent, and the description adds substantial behavioral context: it returns a jobId, polling via get_job_status stays 'running' until the user uploads, attachments never reach MCP servers, and there is a 3 MB inline cap with S3 egress constraints. It also discloses the client-compatibility limitation, which annotations cannot express.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core purpose is front-loaded and most sentences carry distinct information (return contract, egress rationale, fallback). However, it is a single dense paragraph with workflow coaching ('ask them to say "uploaded"') that could be trimmed or split, so it is slightly over-long for a two-parameter tool.

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 fully carries the return contract (jobId, poll get_job_status, eventual publicUrl) and the failure path for unsupported clients. An agent has everything needed to call it and handle the asynchronous outcome.

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 50%: the 'description' param is documented in the schema, while projectId is left to inference. The description frames the operation around 'the project's hosted assets', which contextualizes projectId, but it adds no explicit semantics for either parameter beyond what the schema provides. Baseline 3 fits.

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 concrete verb and resource: 'Show the user an inline upload card so they can hand you a file from their device', and immediately clarifies the output ('gives you the hosted publicUrl'). It explicitly differentiates from siblings upload_asset and generate_image, so an agent can select it without opening any 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?

Gives explicit when-to-use cases (an attached image, a file on the user's machine, a file over the 3 MB inline cap), when-not-to-use alternatives (upload_asset for held files, generate_image for AI imagery), and a full fallback path for clients that can't render the card (get_preview_url, list_files). This is a model of routing guidance.

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