Skip to main content
Glama

browser_upload_file

Upload a local file to a file input element using a CSS selector.

Instructions

Upload a local file to a file input element by CSS selector.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filePathYes
selectorYes
Behavior2/5

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

No annotations provided. Description does not disclose behavioral traits like file dialog triggering, browser security implications, or return values beyond the upload action.

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?

One sentence of 13 words is concise and front-loaded. Could include more information without becoming wordy.

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?

Given no output schema, no annotations, and 2 params, the description is thin. Does not explain return behavior, error conditions, or prerequisites (e.g., file existence, input element readiness).

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 coverage is 0%. Description adds minimal meaning: 'filePath' is 'local file' but no format details (absolute/relative path?), 'selector' is 'CSS selector' but no syntax. Schema already has types but no descriptions.

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?

Description clearly states the action (upload), target (file input element), and identification method (CSS selector). It distinguishes from siblings like browser_set_value or browser_type.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives, no prerequisites or context (e.g., file must exist, input type must be 'file'). With 38 siblings, differentiation is lacking.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SilenceEchoLab/PhantomHand'

If you have feedback or need assistance with the MCP directory API, please join our Discord server