Skip to main content
Glama

Write the answer to a reviewer comment

write_response
Idempotent

Writes the answer to one reviewer comment into the response letter of the open revision round, where the letter has it: after "Response:" (and the manuscript changes after "Changes" when given), or in the comment's [to be written] places. Only when the person asks for it: the answer is theirs to approve. Recorded as a tracked change under the person's name, like edit_file; earlier rounds are read-only. Make any change the answer describes in the manuscript too (edit_file), then run check_responses.

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": {
      "project_id": "<project_id>",
      "comment": "<comment>",
      "response": "<response>"
    },
    "name": "write_response"
  }
}

Input Schema

NameRequiredDescriptionDefault
changesNoWhere the manuscript changed (section, figure, equation), if the letter has a place for it.
commentYesThe comment's label as read_review shows it, e.g. R2.4, E.1 or AE.1.
responseYesThe answer, as LaTeX text for the letter.
project_idYesThe project's id, from list_projects.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations, it discloses that the write is recorded as a tracked change under the person's name, that earlier rounds are read-only, and where in the letter the text lands. This is meaningful behavioral context the structured fields do not carry, though the exact failure mode for a missing comment label is left implicit.

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?

Front-loaded with the core action and no filler sentences. The placement sentence is convoluted with nested parentheticals ("where the letter has it: after 'Response:' ...") and could be split for faster parsing.

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 mutation tool with no output schema, it covers placement, tracking, prerequisite step, and follow-up verification. Only edge cases such as an unknown comment label or a locked round are unaddressed.

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 parameter meanings are already documented. The description adds only marginal semantics, chiefly that 'changes' applies when the letter has a slot for it, which is useful but does not go far beyond the schema's own wording.

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: writing the answer to one reviewer comment into the response letter of the open revision round. It also distinguishes itself from siblings by naming check_responses and edit_file as separate steps, so an agent can tell it apart without opening the schema.

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

Usage Guidelines5/5

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

Gives an explicit precondition ("Only when the person asks for it: the answer is theirs to approve") and an explicit sequencing rule: make the described manuscript change via edit_file first, then run check_responses. That is when-to-use, when-not, and alternatives all in one place.

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