Skip to main content
Glama

Handle Message Action

trillet_handle_message_action

Approve, edit, or reject a conversation message by specifying its conversation ID, message ID, and action; include edited text when choosing Edit.

Instructions

Approve, edit, or reject a message in a conversation.

Args:

  • conversationId, messageId: required

  • action: "Approve" | "Edit" | "Reject"

  • editedMessage: required when action is "Edit"

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": {
      "conversationId": "<conversationId>",
      "messageId": "<messageId>",
      "action": "<action>"
    },
    "name": "trillet_handle_message_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesAction to take
messageIdYesMessage ID
editedMessageNoEdited message text (required for Edit action)
conversationIdYesConversation ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare this is a non-readonly, non-destructive, non-idempotent, open-world mutation, so the safety profile is covered by structured data. The description adds the mode split (approve/edit/reject) but does not disclose what each action does downstream — e.g. whether Reject discards the message permanently or whether Approve triggers an external side effect — which matters given openWorldHint=true.

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?

The core sentence is front-loaded and the entire definition is three short lines. The trailing 'Args:' list is largely redundant with the input schema, which is minor waste, but nothing is buried or padded.

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

Completeness3/5

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

For a four-parameter state-changing tool with no output schema, the definition covers inputs adequately but says nothing about the result of the call or the state transition it causes. An agent could invoke it correctly but cannot predict consequences, leaving a meaningful gap relative to the tool's mutation semantics.

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 100%, so every parameter including the action enum and the conditional editedMessage already carries a description in the schema. The 'Args:' block in the description reproduces that same information verbatim (required fields, enum values, Edit-only condition) without adding format, length, or validation meaning. Baseline 3 is appropriate.

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 description opens with a specific set of verbs (approve, edit, reject) applied to a concrete resource (a message in a conversation), which is clearly distinct from siblings like delete_message or generate_message. It stops short of explicitly contrasting itself with any named alternative, so it lands at a clear-but-not-differentiating 4.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

The three allowed operations are enumerated and the Edit-only requirement for editedMessage is stated, which implies the usage pattern of acting on a pending message. However, there is no guidance on when to choose Approve versus Reject versus the separate edit/update tools, and no preconditions (message state, permissions) are given.

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