Skip to main content
Glama

Edit own chat message

chat_edit
Destructive

Edit from the widget. Widget only.

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": {
      "hub": "<hub>",
      "id": "<id>",
      "body": "<body>"
    },
    "name": "chat_edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesmessage id
hubYeshub key
bodyYesthe new text

Output Schema

NameRequiredDescriptionDefault
idYes
seqYes
viaYes
bodyNo
kindYes
mineNo
emojiNo
filesYes
authorYes
deletedNo
stickerNo
reply_toNo
author_idNo
edited_atNo
created_atYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and idempotentHint=false, so the safety profile is carried structurally. The description adds the widget-context constraint but never explains what the edit overwrites (the body text), whether prior text is recoverable, or why a text edit is marked destructive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two very short sentences with no filler, front-loading the only constraint offered. However, "Widget only" merely repeats "from the widget," so the second sentence does not earn its place as new information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive mutation with three required parameters and an output schema, the description omits what the operation actually changes, permission or ownership requirements (the title says "own"), and any differentiation from edit_hub_chat_message. The term "widget" is never grounded, leaving a key precondition unexplained.

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 description coverage is 100% (id, hub, body are each documented), so the schema does the work and a baseline 3 applies. The description adds no meaning about parameter usage, such as whether body replaces or appends and how hub/id are resolved.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Edit from the widget. Widget only." restates the tool name without stating the resource (a chat message) or scope. The phrase "from the widget" is undefined, so an agent cannot tell what is being edited or how this differs from the sibling edit_hub_chat_message.

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

Usage Guidelines2/5

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

"Widget only" is a restriction but not actionable guidance: it never defines what the widget is, nor names an alternative such as edit_hub_chat_message for non-widget contexts. An agent is left guessing when this tool applies versus its clearly named siblings.

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