Skip to main content
Glama

Read Chat History

srift_chat_history
Read-onlyIdempotent

Read locally decrypted sent and received messages from the current chat session to check for peer replies.

Instructions

Read the chat messages of the current session (sent and received), decrypted locally. Use it to check for replies from the peer.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "srift_chat_history"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
messagesNoDecrypted message log for current session

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world scope, so the safety profile is covered. The description adds genuinely new behavioral context with 'decrypted locally', telling the agent the plaintext is produced on the client rather than returned by the server — a meaningful trust/behavior detail. Return format is covered by the output schema, so no gap there.

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?

Two short sentences, with the resource and scope front-loaded before the usage hint. No filler, no repetition of the title, and every clause carries information the schema and annotations do not.

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?

With an output schema, rich annotations and no parameters, the definition covers what is read, its scope, and one motivating use case. The only residual gaps are the absence of any statement about history depth/ordering or the requirement that a session be active, which are minor for a zero-argument read tool.

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

Parameters4/5

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

The tool takes zero parameters, so there is no parameter meaning for the description to carry; baseline applies. The description correctly refrains from inventing filter or pagination options that the schema does not support.

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?

States a specific verb and resource ('Read the chat messages'), narrows scope to 'the current session', and clarifies directionality with '(sent and received)'. It does not explicitly differentiate itself from siblings such as srift_read_state or srift_session_status, so an agent must infer that this is the message-level view rather than the session-level one.

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?

'Use it to check for replies from the peer' gives one concrete when-to-use scenario, which is better than nothing. However, there is no guidance on when not to use it, no mention of how it relates to srift_read_state (which may also surface message content), and no stated prerequisite that a session must exist.

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