Skip to main content
Glama
LoneVertex

Telegram MCP — Next Generation

Get Last Message Time with Contact

get_last_interaction
Read-onlyIdempotent

Check communication recency before contacting someone by retrieving the timestamp and summary of your last interaction with them. Read-only.

Instructions

Get the timestamp and summary of the most recent interaction or message with a contact. Use to check communication recency before initiating contact. Read-only operation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountNoOptional account label for multi-account environments. If omitted in single-mode, the default account is used. In multi-mode without an account, read-only tools fan out across all configured accounts.
contact_idYesNumeric Telegram user ID of the contact in your contact directory.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.1.1

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, and the description's 'Read-only operation' merely restates that. It does disclose what is returned (timestamp and summary of the most recent interaction), but adds little behavioral context beyond the structured metadata.

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?

Three short, front-loaded sentences that state purpose, usage, and safety. The final sentence is redundant with the readOnlyHint annotation and could be dropped, but the description is otherwise tight.

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 a full output schema, complete parameter documentation, and rich annotations, the description only needs to convey purpose and when-to-use, both of which it covers. Nothing an agent needs to invoke it correctly is missing.

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 description coverage is 100%, so both parameters (account and contact_id) are already fully documented in the schema. The description adds no additional parameter meaning, which is the baseline when the schema does the heavy lifting.

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?

States a specific verb (Get) and resource (timestamp and summary of the most recent interaction with a contact). It clearly separates itself from siblings like get_messages, get_history, and get_user_status by scoping to the single most recent interaction.

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

Usage Guidelines4/5

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

Explicitly states the use case: 'Use to check communication recency before initiating contact.' This gives clear context for when to reach for it, though it names no alternative tool for related queries.

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