Skip to main content
Glama
Soroush Plus MCP

Soroush Plus MCP

by NabuxAi

Soroush Plus bot: edit

soroushplus_bot_edit_message
Idempotent

Replaces the text of a message the bot previously sent, after explicit confirmation, in an allowed Soroush Plus chat.

Instructions

Replace the text of a message the bot sent. Needs confirm: true, the chat in SOROUSHPLUS_ALLOWED_CHAT_IDS and NABU_MESSAGING_ENABLE_SEND=1.

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": {
      "chatId": "<chatId>",
      "messageId": "<messageId>",
      "text": "<text>",
      "confirm": "<confirm>"
    },
    "name": "soroushplus_bot_edit_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
chatIdYesSoroush Plus chat, group or channel id for the bot.
confirmYesMust be true, and only after the user has explicitly approved this exact action.
messageIdYesId of a message this bot sent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false; the description adds the confirmation gate and the allowlist/env preconditions, which is genuine value. It does not say what happens to the previous text or how errors surface when the gating conditions fail, which is the main remaining gap for a mutation tool. Nothing here contradicts the annotations — a text replacement is a non-destructive, idempotent write.

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?

Two sentences, zero filler, with the action stated first and the operational preconditions second. Every clause carries information an agent needs before calling.

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 4-required-parameter mutation with no output schema, the definition covers purpose, confirmation protocol and environment gating. It stops short of describing error modes or what a successful edit returns, but the essential call-time information is present.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 75% (chatId, confirm, messageId described; text only bounded by maxLength 4000). The description adds meaning beyond the schema by tying chatId to the SOROUSHPLUS_ALLOWED_CHAT_IDS allowlist, which the schema does not say. The confirm requirement it repeats is already documented in the schema.

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 ('Replace the text of a message') plus a scoping constraint ('the bot sent'), which implicitly separates it from the web-account sibling soroushplus_web_edit_message. It never names the alternative outright, so the differentiation relies on the reader inferring bot-vs-web semantics.

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 concrete preconditions for use: confirm must be true, the chat must be in SOROUSHPLUS_ALLOWED_CHAT_IDS, and NABU_MESSAGING_ENABLE_SEND=1. It does not state when to prefer this over soroushplus_web_edit_message or describe failure behavior for the gating checks.

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