Skip to main content
Glama

Edit a sent message and get a new answer

deepseek_edit_message

Replace an earlier DeepSeek chat message with corrected or clearer text and get a new answer, defaulting to your latest message so you avoid sending a separate correction.

Instructions

Replace one of YOUR earlier messages in a DeepSeek chat and get DeepSeek's answer to the new text, like the pencil Edit button on the site. Use it when a message was unclear or wrong instead of sending a correction. Defaults to your latest message. Anything after the edited message is no longer part of the active conversation (the site keeps it as an older version), and the chat continues from the new answer.

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": {
      "prompt": "<prompt>"
    },
    "name": "deepseek_edit_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatNoThe chat to edit: id, title, or a unique part of the title.
modelNodeepseek-web (default), deepseek-web-thinking, or deepseek-web-expert.
promptYesThe replacement text for your message.
searchNoTurn web search on for the new answer.
thinkingNoTurn deep thinking on or off for the new answer.
message_idNoWhich of your messages to replace (see deepseek_read_chat ids). Default: your latest message.
conversation_idNoOr the conversation_id returned by deepseek_ask.
include_reasoningNoAlso return the model's thinking text when available.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

A4/5.0
Behavior4/5

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

With no annotations provided, the description carries the burden and does disclose the key destructive side effect: anything after the edited message is removed from the active conversation, though the site keeps it as an older version. It also explains that the chat continues from the new answer, but it does not discuss permissions, errors, or rate limits.

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?

The description is front-loaded with the core action and a familiar analogy to the site's pencil Edit button. Every sentence contributes useful information, including the default target and the conversation-truncation behavior, with no wasted wording.

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 an eight-parameter mutation tool with no output schema or annotations, the description covers the essential behavior, consequence, and return intent well enough for an agent to act correctly. It could say more about error conditions or permission requirements, but the schema handles parameter details.

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 input schema already documents all eight parameters, including the default for message_id. The description adds little parameter-specific meaning beyond noting that editing defaults to the latest message, so the baseline of 3 is appropriate.

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 states a specific verb and resource: replace one of the user's earlier messages in a DeepSeek chat and get a new answer. It is clear about what is being edited and what results, but it does not explicitly distinguish itself from sibling tools such as deepseek_regenerate or deepseek_continue.

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 a clear use case: edit a message that was unclear or wrong instead of sending a correction, and notes that the latest message is the default target. It does not state when not to use it or explicitly compare it with sibling tools that might also alter a conversation.

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