Skip to main content
Glama

BrightLocal MCP Server and API by Cotlet

Upload a file

cotlet_browser_upload
Destructive

Puts files into file field or upload button element: each file is {"url": "https://..."} or {"file_id": "..."} of a file uploaded to Cotlet; up to 10 files, 20 MB each. In ChatGPT, a file of the conversation (one you made or the user attached) goes in file, no upload_url needed. Answers the page after it: the elements and text in view, with the same numbers.

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": {
      "element": "<element>"
    },
    "name": "cotlet_browser_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabNoThe Tab id of the last answer. The step acts only while that tab is the shown one; if the user or another client showed another tab, it does nothing and answers tab_changed. Leave it out to act on the shown tab.
fileNoA file of the ChatGPT conversation; ChatGPT fills it.
filesNoThe files.
elementYesThe element's number from the last read or step answer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / file
      Added value: +{
      +  "description": "A file of the ChatGPT conversation; ChatGPT fills it.",
      +  "properties": {
      +    "download_url": {
      +      "type": "string"
      +    },
      +    "file_id": {
      +      "type": "string"
      +    },
      +    "file_name": {
      +      "type": "string"
      +    },
      +    "mime_type": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "download_url",
      +    "file_id"
      +  ],
      +  "type": "object"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "element",
      -  "files"
      -]New value: +[
      +  "element"
      +]
  2. Changed1 schema field changed
    • addedInput schema / properties / tab
      Added value: +{
      +  "description": "The Tab id of the last answer. The step acts only while that tab is the shown one; if the user or another client showed another tab, it does nothing and answers tab_changed. Leave it out to act on the shown tab.",
      +  "maxLength": 64,
      +  "minLength": 1,
      +  "type": "string"
      +}
  3. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Adds real context beyond the annotations: concrete limits (up to 10 files, 20 MB each) and the post-action behavior ('Answers the page after it: the elements and text in view, with the same numbers'). The destructiveHint is not elaborated — it never says whether an existing file in the field is replaced — which is the one notable gap for a write operation.

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?

Front-loaded with the action and target, then limits, then the return behavior; nearly every clause carries information. It is dense and slightly run-on across clauses but contains no filler.

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

Completeness4/5

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

For a 4-parameter tool with nested objects and no output schema, the definition covers the target element, both file-path variants, size/count limits, and what the agent sees afterward. Missing only failure semantics and the overwrite behavior implied by destructiveHint.

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 each parameter and the baseline is 3. The description does add genuine meaning for the nested file objects (each entry is {url} or {file_id}) and explains that `file` is ChatGPT-filled with no upload_url needed, but does not resolve when to prefer url over file_id.

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?

Names a specific verb and resource ('Puts files into file field or upload button') and identifies the target by element number, so the action is unambiguous. It does not explicitly distinguish itself from cotlet_upload_file, which is the closest-sounding sibling, leaving the agent to infer that one stages a file in Cotlet storage and this one injects it into a live page.

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 implied by the target ('file field or upload button') and there is a useful conditional note for the ChatGPT case where a conversation file goes in `file` with no upload_url. However, no exclusions or explicit alternative routing are given — nothing says to call cotlet_upload_file first to obtain a file_id, or what to do when no upload button exists.

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.

Resources