Skip to main content
Glama

upload_file

Uploads a local file into a file input in a running Shiny app, then waits for the app to settle. For testing file upload workflows.

Instructions

Upload the local file at path into the file input id, then wait for the app to settle.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
pathYes
app_idYes
timeout_sNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are present, so the description carries the burden of behavioral disclosure. It does disclose a meaningful behavior: the tool waits for the app to settle after uploading. However, it omits side effects, failure modes, permissions, timeout behavior, and what happens if the upload fails.

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 a single, tightly worded sentence that front-loads the action and adds a relevant post-condition. There is no filler, and every phrase contributes to understanding the tool's behavior.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no annotations and no output schema, the description is the only source of behavioral and contextual detail. It does not explain `app_id` or `timeout_s`, does not say when to prefer this over siblings, and gives no indication of success/failure or return behavior. This is a meaningful gap for a 4-parameter mutation tool.

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 description coverage is 0%, so the description must compensate. It adds meaning to `path` (local file) and `id` (file input), which goes beyond the bare schema titles. But `app_id` and `timeout_s` receive no semantic explanation, leaving their roles mostly implicit.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific action ('Upload the local file at path') and a specific target ('file input id'), so an agent can tell what resource is acted on. It does not explicitly distinguish itself from siblings like attach or set_inputs, but the file-input framing is concrete enough to be clear.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies its use case: upload a local file into a file input and then wait. It does not provide explicit when-to-use guidance, exclusions, or alternatives, so the agent has to infer when this tool is appropriate relative to siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.