Skip to main content
Glama
ishan-parihar

facebook-lyr

Delete Message

delete_message
Destructive

Delete a Messenger message using its thread and message IDs. Validates identity and handles removal, reporting errors if deletion is unsupported.

Instructions

Delete (unsend) a Messenger message as the active (or specified) identity.

Validates the ids, checks the identity's posting limits, records the attempt, and deletes via the legacy Mercury endpoint. Fails honestly if deletion is decommissioned for the account.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmNoMust be true to delete
thread_idYesConversation id
account_idNoOptional stored identity id (default: active)
message_idYesThe message id to delete (from get_conversation_messages)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Goes well beyond the destructiveHint annotation by describing validation of ids, posting limit checks, attempt recording, legacy endpoint usage, and honest failure when decommissioned. This adds rich behavioral context not captured in annotations.

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, front-loaded with the primary purpose and then behavioral details. Every word earns its place with no redundant content.

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

Completeness5/5

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

Given the destructive nature, annotations, and output schema, the description sufficiently covers side effects, failure modes, validation, and identity handling. The existence of an output schema means return values need not be explained in the description.

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%, so baseline is 3. The description adds context about active/specified identity and validation, but does not substantially enhance parameter meaning beyond what the schema already provides.

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?

The description clearly states 'Delete (unsend) a Messenger message' with a specific verb and resource. It distinguishes from sibling tools like delete_post by specifying 'Messenger message' and using the term 'unsend'.

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?

Provides clear context that the tool deletes as the active or specified identity and mentions the legacy Mercury endpoint. While it does not explicitly list alternatives or when-not-to-use, the 'unsend' terminology and resource scoping make the intended use clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ishan-parihar/facebook-lyr'

If you have feedback or need assistance with the MCP directory API, please join our Discord server