Skip to main content
Glama

Resolve a comment thread

resolve_comment

Marks an Overleaf comment thread as resolved after you address it, including orphaned threads. Pass thread_id and optionally doc_id to skip lookup.

Instructions

Marks a thread as resolved. Use after addressing the comment (e.g. by editing the doc and replying). Also works for orphaned threads. Pass doc_id from list_comments to skip a lookup round-trip.

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>"
    },
    "name": "resolve_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
doc_idNoId of the doc the thread is anchored in (`doc_id` from list_comments). Looked up automatically if omitted.
thread_idYesThe thread id, e.g. from list_comments.
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. Changed2 schema fields changedv0.4.0
    • addedInput schema / properties / doc_id
      Added value: +{
      +  "description": "Id of the doc the thread is anchored in (`doc_id` from list_comments). Looked up automatically if omitted.",
      +  "minLength": 8,
      +  "type": "string"
      +}
    • addedInput schema / properties / project_id
      Added value: +{
      +  "description": "Overleaf 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.",
      +  "minLength": 8,
      +  "type": "string"
      +}
  2. First observedv0.3.5

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral load. It discloses that this is a state mutation, that it tolerates orphaned threads, and that doc_id is optional via automatic lookup — useful traits. It says nothing about idempotency on already-resolved threads, permissions, reversibility, or what is returned, which are material gaps for a write tool.

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?

Three short sentences, front-loaded with the action, then the when, then the parameter tip. Nothing is padding, though the parenthetical example ('e.g. by editing the doc and replying') is closer to illustration than specification.

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 three-parameter mutation with no annotations and no output schema, the description covers purpose, trigger, edge case, and the key optional parameter. The remaining gap — no statement of error behavior or return value — is modest given the fully documented input schema.

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 the baseline is 3. The description adds a rationale for passing doc_id ('skip a lookup round-trip') beyond the schema's 'Looked up automatically if omitted,' which is a small but genuine value-add. It offers no guidance on project_id, the parameter with the most consequential semantics.

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: 'Marks a thread as resolved.' The reader knows exactly which object changes and to what state, and it is distinguishable from the sibling reopen_comment by implication. It does not explicitly name the inverse tool, so sibling differentiation is inferred rather than stated.

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?

'Use after addressing the comment (e.g. by editing the doc and replying)' gives a clear triggering condition, and 'Also works for orphaned threads' pre-empts a likely edge case an agent would otherwise hesitate on. It never says when not to resolve or points to reopen_comment, so exclusions are absent.

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