Skip to main content
Glama

Upload a local file

upload_file
Destructive

Upload a local file to an Overleaf project, replacing any file with the same path. Use for generated figures or .bib files.

Instructions

Uploads a file from this computer (e.g. a generated figure or .bib) into a project, replacing any file with the same path.

Input Schema

NameRequiredDescriptionDefault
pathNoDestination path in the project (default: the file name in the root folder)
projectNoProject name, id or Overleaf URL. May be omitted when exactly one project is pinned.
localPathYesAbsolute path of the file on this computer

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, and the description reinforces this by naming exactly what gets destroyed: any file with the same path is replaced. That concrete overwrite disclosure is real added value beyond the annotation flag, though nothing is said about permissions or whether missing parent folders are created.

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 sentence that front-loads the core action and folds in examples and the overwrite behavior without any wasted clauses. Nothing could be trimmed without losing information.

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?

With no output schema, the description still covers direction (local to project), destination behavior, and the destructive overwrite. Gaps remain around failure cases (nonexistent path, folder creation) and auth, but for a three-parameter tool with a fully documented schema it is largely sufficient.

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 all three parameters (path, project, localPath) are already documented with defaults and pinning behavior. The description adds only the vague notion of a matching 'path' and a project target, so the baseline 3 applies.

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 and resource ('Uploads a file from this computer into a project') and clarifies the source is the local machine, which distinguishes it from write_file and download_file. It stops short of naming a sibling explicitly, so an agent must infer the contrast from the local-vs-project framing.

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 examples ('a generated figure or .bib') imply the intended scenario of pushing locally-produced artifacts into a project, but there is no explicit when-to-use vs write_file/download_file guidance and no stated prerequisites. Usage is implied rather than directed.

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