Skip to main content
Glama

messages_delete

Only allowed while status < SENT. Returns 409 if already sent — sent messages are part of the audit trail.

Method: DELETE /api/v1/workspaces/{workspace_sqid}/messages/{sqid}/

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": {
      "sqid": "<sqid>"
    },
    "name": "messages_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqidYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does reasonably well: it discloses the state gate, the concrete failure mode (409), and the rationale ("sent messages are part of the audit trail"), which tells the agent the operation is state-dependent and non-recoverable once sent. It omits permissions/scope requirements, whether the delete is permanent, and any response body details beyond the error case.

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

Conciseness4/5

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

Three short sentences, front-loaded with the operative constraint so the agent hits the gating condition first. The trailing method/URL line is somewhat boilerplate but does add the endpoint shape; nothing else is padded.

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 one-parameter destructive tool with no annotations and no output schema, the definition covers the critical decision inputs: when it may be called, what blocks it, and why. The remaining gaps (permission requirements, permanence of the delete, the unexplained workspace_sqid) are moderate rather than disqualifying.

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 coverage is 0% for the single `sqid` parameter, so the description must compensate; embedding it in the DELETE path implies it is the message's SQID rather than a workspace identifier, which is real added meaning. However it also references a `workspace_sqid` that is absent from the input schema, and it gives no format or sourcing guidance for either identifier.

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?

The name plus the trailing "Method: DELETE /api/v1/workspaces/{workspace_sqid}/messages/{sqid}/" identifies the verb and the exact resource being targeted, and the first sentence pins down the eligible state. It never states in prose "deletes a message," leaning on the tool name and HTTP method to carry that, and it does not distinguish itself from the sibling messages_bulk_delete.

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?

"Only allowed while status < SENT" is an explicit precondition, and "Returns 409 if already sent" tells the agent what happens when that precondition fails, which is effectively a when-not-to-use signal. It stops short of naming an alternative (e.g. bulk delete or an archive path) for messages that are already sent.

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.