Skip to main content
Glama

teams_edit_message

Destructive

Update an existing Microsoft Teams message by specifying its conversation and message IDs, with options for text, formatting, and @mentions.

Instructions

Edit one of your messages.

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": {
      "conversation_id": "<conversation_id>",
      "message_id": "<message_id>",
      "text": "<text>"
    },
    "name": "teams_edit_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
accountNoAccount alias (see teams_accounts). Defaults to the default account.
mentionsNoPeople to @mention.
message_idYes
content_typeNoHow to read `text` (default markdown; raw HTML tags are shown literally, use html to send markup).
conversation_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true and openWorldHint=true, so the safety profile is covered. The description's only added behavioral fact is the ownership constraint ("your messages"), a real restriction not in the structured fields, but it says nothing about whether the edit replaces or appends text, how mentions behave on edit, or whether recipients see revision history.

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?

A single five-word sentence is maximally front-loaded with no filler, which is good for conciseness. For a destructive, six-parameter mutation tool it is arguably undersized rather than tight, so the brevity cuts both ways.

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?

With no output schema, a destructive mutation flag, six parameters at half schema coverage, and mention/content-type subtleties that affect sending, the description leaves out everything an agent needs to call it safely: what gets overwritten, whose messages are editable, and what happens to existing mentions. It relies almost entirely on the name.

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

Parameters2/5

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

Schema description coverage is 50%, so the description must carry some weight and carries none: it does not mention text (the replacement body), message_id or conversation_id, nor warn that mentions must be re-supplied with text for them to survive the edit. Only the schema's own field descriptions guide the agent.

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?

"Edit one of your messages" names a specific verb and resource, and the possessive "your" scopes it to messages the caller owns, which separates it in spirit from send/delete/forward siblings. It stops short of explicitly contrasting with any named sibling, so it sits at clear-but-undifferentiated rather than exemplary.

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?

There is no when-to-use guidance, no prerequisites (e.g. that the message must be your own and still exist), and no pointer to alternatives such as teams_send_message for new content or teams_delete_message for removal. The agent must infer everything about tool selection from the name.

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

Deploy Server

Other Tools