Skip to main content
Glama

upload

Set files on an HTML file input using absolute local paths, enabling automated or assisted file selection in the shared browser session.

Instructions

Set files on an element (absolute local file paths).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filesYesAbsolute local file paths
tabIdNo
targetYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations provided, the description carries the full behavioral burden, and it delivers very little. It does not say whether change/input events are dispatched, what happens if the target is not a file input or is missing, whether the call waits for the input, or what a failure looks like. The only behavioral detail is that paths must be absolute, which duplicates the schema.

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?

A single focused sentence with no padding, and the key constraint (absolute local paths) is placed inline. It is efficient, though brevity here comes at the cost of the missing behavioral and parameter detail noted above.

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?

For a 3-parameter mutation tool with no annotations, no output schema, and no enums, the description is too thin. It omits target semantics, event-dispatch behavior, error conditions, and required permissions or preconditions, leaving the agent to discover core invocation requirements by trial and error.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is low (33%) and the description only re-states the 'files' parameter meaning already given in the schema. The required 'target' parameter (presumably a selector or element ref) and the optional 'tabId' are left entirely undocumented in both the description and the schema, so the agent must guess how to address the element.

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 states a specific verb ('Set files') and the exact resource targeted ('<input type="file"> element'), which is distinct from every sibling in the browser-automation set (click, type, select_option, etc.). It is clear at a glance and does not merely restate the tool name 'upload', though it could be sharpened by naming what it is not suited for.

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?

Usage is only implied: the agent infers it should be called when a file input is present on the page. There is no explicit when-to-use, when-not-to-use, or alternative such as 'type' or 'click' for other element types, and no prerequisites like needing a resolved element reference.

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