Skip to main content
Glama

Upload a binary file

upload_file
Idempotent

Upload or overwrite binary files like images, PDFs, or data in an Overleaf project to keep resources updated.

Instructions

Upload or overwrite a binary file (image, PDF, data) in an Overleaf project.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
projectIdYes
contentBase64Yes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, and destructiveHint=false. The description adds the fact that it can overwrite files, which is a behavioral detail not covered by annotations. However, it does not disclose other potential behaviors such as file size limits, authorization requirements, or response format. Since annotations cover the basic safety profile, the added 'overwrite' context earns a middle score.

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 a single, concise sentence that front-loads the action and resource. There is no wasted wording, and the core information is immediately accessible. It is an efficient and well-structured definition.

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

Completeness2/5

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

For a tool with three required parameters and no output schema, the description is notably sparse. It fails to explain the purpose of each parameter or any expected behavior on overwrite (e.g., atomicity, confirmation). It also does not mention prerequisites like project existence or path format. While the action is simple, the lack of parameter documentation and return information leaves the description incomplete for an agent to call it correctly without additional knowledge.

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

Parameters1/5

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

Schema description coverage is 0%, so the description is expected to compensate by explaining the parameters. It does not mention projectId, path, or contentBase64 at all, nor does it clarify their meaning or format. The parameter names are self-explanatory to some extent, but without any description-level elaboration, an agent has no guidance beyond the schema names. This is a significant gap given the low coverage.

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 verb (upload/overwrite) and the resource (binary file in an Overleaf project). It also distinguishes from write_file by specifying binary file types (image, PDF, data). This gives an agent a clear understanding of the tool's scope and differentiates it from siblings.

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

Usage Guidelines2/5

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

The description does not explicitly state when to use this tool versus alternatives like write_file. It mentions 'binary file' but does not provide explicit conditions or exclusions. An agent would have to infer the intended use case from the resource type alone, which is insufficient guidance.

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