Skip to main content
Glama

Overleaf MCP Server and API by Cotlet

Add comment in Overleaf

overleaf_add_comment
Read-onlyIdempotent

Add comment 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_add_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/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 rather than contradicts them by stating it 'opens nothing by itself' and requires a follow-up browser step. It adds context the annotations cannot convey: the return payload is procedural guidance, and the stated rationale is that Overleaf has no public API for existing projects. This directly prevents an agent from assuming the comment was created.

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?

The purpose and the key disclosure ('opens nothing by itself') are front-loaded in the first two sentences. The audience list ('ChatGPT, Claude or any AI agent') and the parenthetical verification date are mild padding, but they are short and the whole description stays within three sentences.

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 parameters and no output schema, the description carries the burden of explaining the return value, and it does so at a high level (step-by-step screens/buttons/fields). It also explains the handoff to browser tools, which is what an agent needs to complete the task. The one unexplained point is how the target project is determined without any input parameters.

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. The description does not need to explain any inputs, and the empty schema matches the described behavior of a parameter-free instruction generator. It could have clarified how the target project/document is identified given no parameters (presumably via the active browser session), which is the only remaining gap.

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?

The description names a specific resource (Overleaf comments) and explicitly reframes the tool's real function: it returns step-by-step instructions (screens, buttons, fields) rather than performing the add. The phrasing 'Add comment... Returns how to do it' creates a brief tension between the name and the actual behavior, but the second sentence resolves it. It does not contrast itself with the sibling overleaf_reply_to_comment, so it stops 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?

It gives clear workflow context: call this first, then execute in the user's Overleaf Cloud Browser using the cotlet_browser_* tools. That is actionable routing guidance. It provides no explicit exclusions (e.g., when to use the reply-to-comment sibling instead), so it falls short of the when/when-not bar.

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