Skip to main content
Glama

get_message_by_id

Retrieve a specific time-locked letter by its unique numeric message ID, so you can view or verify the exact message stored on-chain.

Instructions

Fetch a specific message by its unique message ID.

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": {
      "id": "<id>"
    },
    "name": "get_message_by_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe numerical ID of the letter.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden, and it discloses almost nothing. It does not say what a result contains, what happens when the ID does not exist (empty vs error), whether the message is private or permission-gated, or whether reading is side-effect free. Only the word "Fetch" weakly implies a read operation.

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?

One short sentence, front-loaded with the verb and resource, with zero padding or redundant phrasing. Nothing could be removed without losing the core meaning.

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 simple one-parameter getter with no output schema and no annotations, the essentials are present but thin. The description leaves an agent unable to predict the return shape, miss behavior, or access requirements, which are the main open questions for this tool.

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% and the single parameter is fully described in the schema as "The numerical ID of the letter," so the schema does the work. The description adds only the phrase "unique message ID," which restates the parameter name and actually introduces a message/letter terminology mismatch rather than clarifying format or source of the ID.

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 states a specific verb ("Fetch") and resource ("message") and scopes it to a single item via "by its unique message ID." It is immediately distinguishable from list_messages, but it never names or contrasts a sibling explicitly, so it stops short of the top score.

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?

Usage is only implied: "a specific message" signals single-item retrieval when an ID is known, versus the listing siblings. There is no explicit when-to-use, no precondition statement, and no guidance on what to do when the ID is unknown (e.g., use list_messages to find it).

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