Skip to main content
Glama

Delete a message from a comment thread

delete_comment_message
Destructive

Delete a single message, such as a reply, from an Overleaf comment thread while keeping the rest of the thread intact. Targets your own messages by default; cannot be undone.

Instructions

Deletes one message (e.g. a reply) from a thread, leaving the rest of the thread. Own messages by default; any_author: true deletes someone else's, which Overleaf only allows for the project owner. Cannot be undone.

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": {
      "thread_id": "<thread_id>",
      "message_id": "<message_id>"
    },
    "name": "delete_comment_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
thread_idYesThe thread id, e.g. from list_comments.
any_authorNoDelete a message written by someone else. Overleaf only allows this for the project owner. Default: own messages only.
message_idYesThe message id, from read_comment_thread (`messages[].id`).
project_idNoOverleaf project id from list_projects or open_project. Opens the project if it is not already active. Pass it on every call when MCP sessions may change between calls. Writes without it only go to the project last confirmed by open_project or by a write naming it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, and the description adds genuinely new context: irreversibility ('Cannot be undone'), the default authorship scope, and the owner-only permission constraint. It stops short of describing error behavior or what happens to thread metadata, but the safety profile is well covered.

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?

Three short sentences, front-loaded with the action and scope, then the permission nuance, then the irreversibility warning. No filler.

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 destructive, four-parameter tool with no output schema, the description covers scope, permissions, and irreversibility, and the schema handles parameter detail. Only minor gaps remain, such as failure modes when the caller is not the owner.

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 coverage is 100%, so all four parameters are already documented, including the any_author owner-only rule and the project_id session caveat. The description's mention of any_author largely restates the schema, so baseline 3 applies.

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 and resource ('Deletes one message ... from a thread') and immediately scopes it against the whole-thread alternative with 'leaving the rest of the thread'. An agent can distinguish this from delete_comment without opening either schema.

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 clear when-to-use context: own messages by default, `any_author: true` for someone else's, and notes Overleaf restricts that to the project owner. It does not explicitly name a sibling alternative, but the scope distinction is unambiguous.

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