Skip to main content
Glama
draiqw
by draiqw

tg_history_batch

Read-onlyIdempotent

Read up to 25 chats in a single call to compare or summarise multiple conversations without repeated history requests. Apply search and brief filters across all chats.

Instructions

Read several chats in one call (up to 25). Use this instead of calling tg_history repeatedly when comparing or summarising multiple conversations.

Args: chats: chat ids, @usernames or exact titles. limit: messages per chat. search: only messages containing this text, applied to every chat. brief: drop reactions, link cards and edit times. Same messages, about a quarter smaller — for triage, not for reading a chat closely.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
briefNo
chatsYes
limitNo
searchNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already provide readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so safety is covered. The description adds extra behavioral detail: brief mode drops reactions, link cards, and edit times while keeping messages identical, and search is applied to every chat. It stops short of describing failure or pagination behavior, but the added context is solid.

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 front-loaded with the core purpose, followed by a compact Args list. Every sentence adds functional value, including the triage caveat for brief, with no filler or redundancy.

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

Completeness4/5

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

For a batch read tool with no output schema, the description covers use case, parameter meanings, and behavioral nuances thoroughly. The only notable gap is that it does not describe the shape of the returned data, but the core usage context is complete enough for an agent to invoke it correctly.

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?

Schema description coverage is 0%, so the description carries the full burden of documenting parameters. It does so well: chats accepts ids, @usernames, or exact titles; limit is per chat; search applies to every chat; and brief has a precise effect on output size and content.

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 states a specific action ('Read several chats in one call') with a resource ('chats') and a limit ('up to 25'). It also distinguishes itself from the sibling tg_history by explicitly positioning itself as a batch alternative, so an agent can tell what this tool does and how it differs.

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

Usage Guidelines5/5

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

The description explicitly says 'Use this instead of calling tg_history repeatedly when comparing or summarising multiple conversations.' This gives a clear condition and names the alternative, and also includes a caveat about brief mode being for triage, not close reading.

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