Skip to main content
Glama
stackia
by stackia

Set Chat Read State

set_chat_read_state
Idempotent

Set a chat as read or unread for the current user. Provide the chat ID and isRead flag; optionally include a last-read timestamp to control which messages become unread.

Instructions

Mark a chat read or unread for the current user.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chatIdYesChat ID
isReadYesTrue: read. False: unread.
tenantIdNoTarget tenant ID from list_tenants. Omit only when a default is configured or exactly one tenant is connected. Resource IDs belong to this tenant.
lastMessageReadDateTimeNoUnread only: messages after this time become unread. Omit to mark the latest message unread.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and idempotentHint=true. The description adds only the scope clarification 'for the current user', which is useful but not a deep behavioral disclosure. It does not contradict the annotations and provides minimal extra context beyond 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 a single, front-loaded sentence with zero waste. It states the action and scope immediately, making it easy to parse.

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 simple state-setting tool, the description is adequate. The schema covers parameter details, and annotations cover idempotency and destructiveness. The description clarifies the user scope, leaving no critical information missing for invoking the tool correctly.

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 the schema fully documents all four parameters. The description does not add any parameter-specific meaning beyond what the schema provides, keeping the baseline at 3.

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 clearly states the verb 'Mark', the resource 'chat', and the state change ('read or unread') for the current user. It is unambiguous and distinguishes itself from all sibling tools, none of which handle read state.

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 provides no explicit guidance on when to use this tool versus alternatives, though no direct alternative exists. It implicitly clarifies the scope (current user) but does not explain when to set read vs unread or how the optional parameters affect behavior.

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