Skip to main content
Glama

Open a file picker in the conversation

upload_media_widget

Fallback local-media intake for aicut in Apps UI-capable clients. When the user refers to an attached/local photo, image, or video with no confirmed url, first upload it yourself if your code environment can read the file (e.g. /mnt/user-data/uploads): upload_media, curl POST, confirm_upload. Call this widget as the only tool in the turn only when the file is unreadable there or the POST fails. Do not ask the user to attach the file in Claude chat; remote MCP tools cannot read chat attachments. This widget is the upload surface: the user re-selects one or more files in the browser, the browser uploads them directly to aicut storage, the widget confirms them, then keeps them on the account, and list_uploads gives you their url once the user answers in chat.

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": "upload_media_widget"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations, the description explains the interaction model: the user re-selects files in the browser, the browser uploads directly to aicut storage, the widget confirms them, and the files are kept on the account. It also notes that list_uploads provides the URL after the user answers in chat, which is important behavioral context for a non-read-only widget.

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 description is dense but front-loads the fallback role and covers trigger, primary alternative, anti-pattern, and resulting behavior. Some sentences are long and clause-heavy, but no sentence is purely redundant.

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-parameter widget with no output schema, the description provides enough context to invoke it correctly: when to use it, when not to use it, what the user must do, where files go, and how to retrieve the resulting URLs. Nothing critical is missing.

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?

The tool has zero input parameters, so there are no parameter semantics to clarify. The schema is empty and fully consistent with the no-argument widget design, making the baseline score appropriate.

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 and resource: it is the upload surface where the user re-selects local files in the browser and the browser uploads them to aicut storage. It also distinguishes this widget from upload_media, curl POST, confirm_upload, and list_uploads by framing it as the fallback upload path.

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 when-to-use guidance: try upload_media/curl POST/confirm_upload first when the code environment can read the file, and call this widget only when the file is unreadable or the POST fails. It also gives a clear anti-pattern: do not ask the user to attach the file in Claude chat because remote MCP tools cannot read chat attachments.

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.