Skip to main content
Glama

upload

Destructive

Attach a local file to a file input element on a web page. Use for upload forms, image uploads, and document submissions by specifying the element selector and absolute file path.

Instructions

[Agent Browser] Upload a file to an element. file_path must be an absolute path to an existing file on the local system. Use for file upload forms, image uploads, document submissions.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "selector": "<selector>",
      "file_path": "<file_path>"
    },
    "name": "upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
selectorYes
file_pathYes

Output Schema

NameRequiredDescriptionDefault
dataNo
hintsNo
messageNo
successNo
suggestionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and idempotentHint=false, so the safety profile is covered structurally. The description does add a real precondition beyond that: file_path must be absolute and the file must already exist. However, it never explains what the destructive aspect means in practice (what selection gets replaced, whether a form submit follows).

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?

Three short sentences, front-loaded with the action and its target, then the critical path constraint. The final sentence is largely redundant with the first, which keeps it just short of exemplary.

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

Completeness3/5

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

An output schema exists, so return values need not be described. For a simple two-parameter browser action, the description covers the hard precondition (absolute existing path) but leaves the selector targeting ambiguity and the practical consequence of the destructive hint unaddressed.

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% with two parameters, so the description must compensate. It does clarify file_path ('absolute path to an existing file on the local system'), which is genuinely useful beyond the schema's bare title. It says nothing about selector — notably that it should target the file input element rather than the adjacent button or wrapper.

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 names a specific verb (upload) and a precisely bounded target: an <input type="file"> element. That target constraint is what distinguishes it from generic input tools like fill or type, so an agent can tell which element class this applies to without opening siblings.

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 final sentence lists positive use cases (file upload forms, image uploads, document submissions), which gives context but largely restates the purpose. It offers no exclusions, prerequisites such as navigating to the page first, or guidance on what to use for non-file inputs, so an agent must infer the boundary with fill/click.

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