Skip to main content
Glama

upload_file

Copies a local file such as a figure, dataset, or .bib into the attached Overleaf project and pushes it, so you can add assets without manual uploads.

Instructions

Copy a file from this computer (figures, data, .bib) into the attached project and push it.

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": {
      "local_path": "<local_path>",
      "path": "<path>"
    },
    "name": "upload_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesDestination path in the project, e.g. 'figures/results.png'.
messageNoCommit message shown in Overleaf's history.
local_pathYesAbsolute path of a file on this computer (e.g. a figure PNG or PDF).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true and destructiveHint=false, so the bar is lower. 'And push it' usefully discloses that the file goes straight to the remote project rather than being staged locally, which is real context beyond the annotations, but the description is silent on overwriting an existing destination path and on size or type limits.

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?

A single front-loaded sentence with no filler, and the source/destination/effect are all in the first clause sequence.

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 three-parameter tool with full schema coverage and clear annotations, this covers source, destination and immediate push. The only material omissions are overwrite behavior when the destination exists and whether an attached project is a precondition.

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 path, local_path and message are already documented with examples. The description adds only the flavor of typical content ('figures, data, .bib') and the local-machine constraint; it adds no destination-collision or message-default guidance beyond the schema.

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?

States a specific verb (copy/upload) plus resource (a file from this computer) and the effect (into the attached project and pushed). The 'from this computer' locality phrase meaningfully separates it from server-side content creation tools like write_file or edit_file.

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 phrase 'from this computer' implies the use case (a local artifact exists that must enter the project), but there is no explicit when-to-use versus write_file/write_file-style alternatives, and no prerequisite stated such as a project already being attached.

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