Skip to main content
Glama

teams_undelete_message

Restore a deleted Microsoft Teams message by undoing a previous deletion, so you can recover removed chat or channel content for work or personal accounts.

Instructions

Restore a message you deleted (undo teams_delete_message). Work and personal accounts.

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>"
    },
    "name": "teams_undelete_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountNoAccount alias (see teams_accounts). Defaults to the default account.
message_idYes
conversation_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations only declare readOnlyHint=false and openWorldHint=true, so the description must add the operational nuance. It contributes two real facts beyond annotations: this is the inverse of a prior deletion and it works across work and personal accounts. It omits failure modes, whether a restored message reappears in the same thread position, and whether restore is time-limited.

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?

A single front-loaded sentence with the action first and the sibling cross-reference and account scope in parentheses. No filler, no redundancy.

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 mutating tool with no output schema, two undocumented parameters, and only minimal annotations, the definition is thin — it says nothing about what happens on success, whether the restored message is identical to the original, or what conditions cause the restore to fail. An agent could call it, but not confidently predict the outcome.

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 only 33% — only the `account` parameter is documented in the schema, while `message_id` and `conversation_id` are bare strings. The description says nothing about how to source these identifiers (e.g., from a prior delete call or a get_message result), so it fails to compensate for the coverage gap.

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 ("Restore a message") and explicitly ties it to the inverse sibling operation ("undo teams_delete_message"), so an agent can distinguish it from teams_delete_message or teams_edit_message 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 Guidelines4/5

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

Clear usage context: use this when a deletion needs to be reversed, and it names the sibling operation it undoes. It stops short of exclusions or preconditions — nothing about a restore window, whether the original deletion must have been performed by the caller, or what to do if restore is no longer possible.

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