Skip to main content
Glama
draiqw
by draiqw

tg_actions

Read-onlyIdempotent

Review an audit log of every writing call made on your behalf, showing sent messages, deletions, and failed attempts with errors. Use it to answer 'what did you send?' instead of guessing.

Instructions

What the agent itself did: the audit log of every writing call, oldest first.

The mirror image of tg_events — that one shows what happened in Telegram, this one shows what was done to it on the user's behalf. Use it to answer "what did you send?" instead of guessing from memory. Failed calls are logged too, with the error.

Args: limit: how many records. since: lower bound, ISO ("2026-08-17T09:00") or relative ("-6h", "-3d"). method: keep only this action, e.g. "send" or "delete". chat: keep only actions aimed at this chat (substring of what was passed).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chatNo
limitNo
sinceNo
methodNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A5/5.0
Behavior5/5

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

Annotations already indicate readOnly, idempotent, and non-destructive behavior. The description adds meaningful behavioral context: results are ordered oldest first, all writing calls are logged, and failed calls are included with their error. This goes beyond the annotations.

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 well-structured: a concise definition, a useful distinction from the sibling, an explicit usage hint, and compact parameter explanations. Every sentence contributes value with no fluff.

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?

With no output schema, the description still covers what the tool returns (audit log entries, including failures with errors), ordering, and filtering options. For a read-only list tool with four optional parameters, this is complete enough for reliable use.

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 for parameters. It explains all four: limit, since with ISO and relative formats, method filtering, and chat substring matching. This is exactly what an agent needs to invoke the tool correctly.

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 defines the tool as 'the audit log of every writing call, oldest first' and clearly differentiates it from sibling tg_events by contrasting what happened in Telegram versus what was done on the user's behalf. This allows an agent to immediately understand the tool's role.

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?

It explicitly says to use this tool to answer 'what did you send?' instead of guessing from memory, and names tg_events as the mirror image alternative. This provides clear selection guidance and distinguishes the tool from its closest sibling.

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