Skip to main content
Glama

get_messages_by_range

Read a local chat export and return messages for a chat within a specified half-open time range [start, end), enabling auditable range queries and summaries.

Instructions

Read the local export and filter the half-open interval [start, end).

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": {
      "chat_id": "<chat_id>",
      "start_time": "<start_time>",
      "end_time": "<end_time>"
    },
    "name": "get_messages_by_range"
  }
}

Input Schema

NameRequiredDescriptionDefault
chat_idYes
end_timeYes
query_idNo
page_sizeNo
start_timeYes
max_messagesNo
continuation_tokenNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.4/5.0
Behavior2/5

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

With no annotations at all, the description carries the full burden and falls short: it does not confirm this is a read-only operation on the export, does not state that pagination exists or how results are ordered, and does not mention what happens when the range is huge or when chat_id is invalid. The half-open interval note is the sole behavioral disclosure.

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?

A single front-loaded sentence with zero filler; the interval convention is stated compactly and unambiguously. It is under-specified rather than bloated, which is a completeness problem rather than a conciseness one.

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

Completeness2/5

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

An output schema exists, so return-value explanation is not required, but for a 7-parameter tool with zero annotation coverage the description leaves far too much unsaid — pagination strategy, chat scoping, and the role of query_id are all missing. An agent could not reliably invoke this beyond the simplest call.

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

Parameters2/5

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

Schema description coverage is 0% across 7 parameters, so the description must compensate. It clarifies only start_time/end_time (end exclusive), leaving chat_id, query_id, page_size, max_messages, and continuation_token completely unexplained — including the non-obvious interaction between page_size and max_messages.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The verb 'Read' plus the notion of filtering a time interval is concrete, and '[start, end)' precisely pins the boundary semantics. However, the object being read is described only as 'the local export' — the description never says it returns messages for a specific chat, so an agent must rely on the tool name and required chat_id parameter to infer the resource.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus alternatives, no statement of prerequisites, and no mention of how the pagination-related parameters (page_size, max_messages, continuation_token) are meant to be used. The only usage-relevant content is the half-open interval convention, which is helpful but narrow.

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

Deploy Server

Other Tools