Skip to main content
Glama
chatmaid

@chatmaid/mcp

Official
by chatmaid

get_message

Retrieve final delivery status and timestamps (created, sent, failed) for a WhatsApp message by providing its ID. Confirm message delivery.

Instructions

Fetch a single message by ID, including final delivery status and timestamps (createdAt, sentAt, failedAt).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageIdYesThe message ID returned from send_message (e.g. msg_abc123).

Implementation Reference

  • The actual handler that executes the get_message tool logic. It makes a GET request to /v1/messages/{messageId} with the given message ID, returning the message resource wrapped in an ApiSuccess envelope.
    getMessage(messageId: string) {
      return this.request<ApiSuccess<MessageResource>>(
        "GET",
        `/v1/messages/${encodeURIComponent(messageId)}`,
      );
    }
  • Zod schema for validating the get_message tool input. Expects a single required string field 'messageId'.
    const getMessageSchema = z.object({
      messageId: z.string().describe("The message ID returned from send_message (e.g. msg_abc123)."),
    });
  • src/index.ts:156-170 (registration)
    Tool registration as part of the tools array. Defines the tool's name ('get_message'), description, and input JSON Schema.
    {
      name: "get_message",
      description:
        "Fetch a single message by ID, including final delivery status and timestamps (createdAt, sentAt, failedAt).",
      inputSchema: {
        type: "object",
        properties: {
          messageId: {
            type: "string",
            description: "The message ID returned from send_message (e.g. msg_abc123).",
          },
        },
        required: ["messageId"],
      },
    },
  • src/index.ts:271-272 (registration)
    Dispatch routing for the get_message tool. Parses args using the Zod schema, extracts messageId, and calls client.getMessage().
    case "get_message":
      return client.getMessage(getMessageSchema.parse(args).messageId);
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It only describes the return content but does not disclose whether the operation is read-only, any authentication requirements, rate limits, or what happens for invalid IDs.

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?

The description is a single sentence that is front-loaded with the core purpose and includes specific output details. Every word adds value; no filler.

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?

The tool is simple (1 param, no output schema). The description mentions return fields (delivery status, timestamps) but does not cover all possible output fields or behavior (e.g., error handling, read-only nature). Adequate but not comprehensive.

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

Parameters4/5

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

Schema coverage is 100%, providing a baseline of 3. The description adds value by specifying the exact format of the message ID (e.g., 'msg_abc123') and that it comes from send_message, which helps agents understand the parameter's origin.

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 the verb 'Fetch', the resource 'a single message by ID', and specifies what is included ('final delivery status and timestamps'). It distinguishes from siblings like list_messages (multiple) and send_message (send).

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?

The description implies usage when you have a specific message ID to retrieve details, which distinguishes it from list_messages. However, it does not explicitly mention when not to use it or suggest alternatives.

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/chatmaid/mcp'

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