Skip to main content
Glama

Overleaf MCP Server and API by Cotlet

Edit file in Overleaf

overleaf_edit_file
Read-onlyIdempotent

Edit file in the user's own Overleaf account from ChatGPT, Claude or any AI agent. Returns how to do it in Overleaf step by step (screens, buttons, fields) and opens nothing by itself; then do it with the cotlet_browser_* tools in the user's Overleaf Cloud Browser. Overleaf's official API: Overleaf has no public API to read or change existing projects (checked 5 Nov 2026).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "overleaf_edit_file"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description reinforces this by stating it opens nothing by itself and only returns instructions (screens, buttons, fields). It also discloses an external constraint — Overleaf has no public API for reading/changing existing projects — which explains why a browser-based path is required. It stops short of describing output size, formatting, or failure modes.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core information is front-loaded, but the opening clause about ChatGPT, Claude or any AI agent is environment boilerplate that doesn't help tool selection, and the dated API-verification parenthetical is tangential. The three-sentence structure is readable but carries some padding.

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

Completeness3/5

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

For a zero-parameter, no-output-schema guidance tool, the description covers what it returns and what to do next, which is most of the burden. It leaves unexplained how the specific project/file is identified given there are no inputs, which an agent would reasonably want to know before calling.

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?

The tool takes zero parameters, which is the baseline-4 case; schema coverage is moot for an empty object. The description does not explain how the target project/file is conveyed to the tool, which is a minor semantic gap for a zero-arg tool that must somehow act on a specific file.

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+resource (edit a file in the user's Overleaf account) and immediately corrects the likely misreading by stating it 'returns how to do it... and opens nothing by itself'. It does not explicitly distinguish itself from sibling overleaf_read_file or cotlet_upload_file, so it falls short of a 5.

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?

Gives a clear usage sequence: call this to get step-by-step Overleaf instructions, then execute them with the cotlet_browser_* tools. The 'opens nothing by itself' line implicitly tells the agent this is not a direct-mutation tool, but no explicit when-not-to-use or exclusion against sibling file tools is stated.

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