Skip to main content
Glama
sanjar-x

Claudegram

by sanjar-x

get_history

Read-onlyIdempotent

Retrieve chat messages using filters for sender, media type, or ID, with pagination options to access older or specific messages.

Instructions

Сообщения чата (новые → старые по умолчанию).

Args: limit: 1-200. offset_id: вернуть старше указанного id (пагинация). min_id / max_id: границы id. from_user: id/@username — фильтровать по отправителю. reverse: True — от старых к новым. ids: получить конкретные сообщения по id (без пагинации). reply_to: показать сообщения треда/комментариев под этим id. filter_type: media-фильтр: photo, video, document, voice, music, gif, url, chat_photo, phone_call, roundvideo, mymentions. scheduled: показать запланированные (а не уже отправленные) сообщения.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idsNo
chatYes
limitNo
max_idNo
min_idNo
reverseNo
reply_toNo
from_userNo
offset_idNo
scheduledNo
filter_typeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations already declare readOnly, idempotent, and non-destructive behavior. The description adds meaningful behavioral details such as default ordering, pagination semantics, and the difference between scheduled and sent messages, which goes beyond the annotations without contradicting them.

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 concise and well-structured: one line for the core purpose followed by a compact list of parameter explanations. Each line earns its place, with no redundant content. The parameter list is easy to scan and directly useful.

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

Completeness5/5

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

Given the tool's complexity (11 parameters) and that an output schema exists, the description covers all parameters and their nuances, including edge cases like 'ids' bypassing pagination and 'scheduled' for planned messages. It provides complete operational context without needing to describe return values.

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

Parameters5/5

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

With 0% schema description coverage, the description fully compensates by explaining every parameter: limit range (1-200), offset_id pagination, min_id/max_id boundaries, from_user filtering, reverse ordering, ids without pagination, reply_to threads, filter_type allowed values, and scheduled flag. This adds substantial meaning beyond the schema's raw types and defaults.

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 clearly states the tool returns chat messages with a default new-to-old ordering. It identifies the specific resource (chat history) and default behavior, but does not differentiate from the sibling tool get_history_with_links, so it lacks sibling distinction.

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 description implies usage for retrieving chat messages with various filters and pagination, but it does not explicitly state when to use this tool versus alternatives like search_messages or get_history_with_links. No exclusions or alternative tool references are provided.

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/sanjar-x/claudegram'

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