Skip to main content
Glama

comet_upload

Upload local files to web forms and dialogs by attaching images, documents, or other files from your computer to the current webpage.

Instructions

Upload a file to a file input on the current page. Use this to attach images, documents, or other files to forms, posts, or upload dialogs. The file must exist on the local filesystem.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filePathYesAbsolute path to the file to upload (e.g., '/home/user/image.png' or 'C:\Users\user\image.png')
selectorNoOptional CSS selector for the file input element. If not provided, auto-detects the first file input on the page.
checkOnlyNoIf true, only checks if file inputs exist on the page without uploading
Behavior3/5

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

With no annotations provided, the description carries full burden of behavioral disclosure. It mentions the file must exist locally and describes auto-detection behavior for the selector parameter, but doesn't cover error conditions, permissions needed, or what happens after upload. It provides some behavioral context but leaves gaps.

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 perfectly front-loaded with the core purpose in the first sentence, followed by usage context and a critical constraint. Every sentence earns its place with zero waste, making it highly efficient and well-structured.

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?

For a file upload tool with 3 parameters, no annotations, and no output schema, the description provides adequate purpose and usage context but lacks details about return values, error handling, or system requirements. It's minimally viable but has clear gaps in behavioral transparency.

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 100%, so the schema already documents all three parameters thoroughly. The description adds minimal value beyond the schema, mentioning the file must exist locally and auto-detection behavior for selector, but doesn't provide additional syntax or format details. Baseline 3 is appropriate when schema does the heavy lifting.

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 clearly states the specific action ('upload a file') and resource ('to a file input on the current page'), distinguishing it from sibling tools like comet_screenshot or comet_tabs. It specifies the exact use case for attaching files to forms, posts, or upload dialogs.

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

Usage Guidelines4/5

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

The description provides clear context about when to use this tool ('to attach images, documents, or other files to forms, posts, or upload dialogs'), but doesn't explicitly state when not to use it or name specific alternatives among sibling tools. It implies usage scenarios without explicit exclusions.

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/RapierCraft/Perplexity-Comet-MCP'

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