Skip to main content
Glama

Upload a file

cotlet_browser_upload
Destructive

Puts files into a file field of the current page in the user's Substack Cloud Browser, or into the file picker that an upload button opens, by its number in the element list. A file is given as {"url": "https://..."} for a file online or {"file_id": "..."} for one uploaded to Cotlet first; up to 10 files, 20 MB each. Returns the URL and title after it. Every started minute of the session costs credits; it ends when closed or 3 minutes after the last call in the browser.

Input Schema

NameRequiredDescriptionDefault
filesYesThe files.
elementYesThe element's number in the element list of the current page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already flag destructive, openWorld and non-idempotent; the description adds value beyond them by disclosing the return payload (URL and title) and the cost/lifecycle model (credits per started minute, session closes or ends 3 minutes after the last call). It does not explain what the destructive hint means in practice, such as whether an existing file is replaced.

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 dense sentences with the action and target front-loaded, followed by input format, limits and cost. Every sentence carries information; no repetition of the schema's property text.

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

Completeness5/5

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

No output schema exists, yet the description still names the return values, and it covers input limits, accepted formats, and billing/session behavior. An agent has everything needed to decide to call and to call it correctly.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3; the description earns one extra by supplying the 20 MB per-file cap, which the schema does not state, and by concretely illustrating both accepted file object shapes. Element addressing is left to the schema.

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?

States a specific verb (puts files into) and precise resource and target: a file field on the current page of the Substack Cloud Browser, or the picker an upload button opens. The browser context distinguishes it from the sibling cotlet_upload_file, though the relationship is only implied via the file_id mention rather than stated.

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?

Explains the two concrete situations that select this tool: targeting an existing file input element, or triggering an upload-button picker. It implies the cotlet_upload_file prerequisite for file_id without naming it as an explicit alternative path.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.