Skip to main content
Glama

dsh_get_session_stats

Retrieve cached token usage, session stats, and context pressure for a DSH session to assess performance.

Instructions

Fetch cached projections (tokenUsage, sessionStats, contextPressure) for a DSH session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idNo
Install Server

TDQS

B3.4/5.0
Behavior3/5

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

The description adds useful detail by calling the projections 'cached', implying the data may not be real-time, and lists the fields returned. However, it does not disclose error behavior, session existence requirements, or explicitly confirm read-only semantics (though 'Fetch' implies it). With no annotations, the description partially but inadequately carries the transparency burden.

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 that immediately states the action and key specifics. No filler or redundancy, every word contributes to understanding.

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

Completeness3/5

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

For a simple getter, the description covers the basic purpose and lists fields, but given there is no output schema, it does not explain what the projections mean or how they behave (e.g., staleness, availability). Usage context vs. alternatives is also missing, leaving the tool functional but not fully self-contained.

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

Parameters2/5

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

The input schema provides only a type for session_id with 0% description coverage. The description mentions 'for a DSH session', which clarifies the parameter's reference, but does not explain the expected format, source, or how to obtain a valid session_id. It fails to compensate for the lack of schema-level description.

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 action ('Fetch') and the target ('cached projections for a DSH session'), naming specific fields (tokenUsage, sessionStats, contextPressure). This distinguishes it from sibling tools like dsh_create_session and dsh_send_message, which are write/action operations.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives, such as when a session is active vs. cached, or when to call it in a workflow. The description lacks any context about prerequisites or exclusions.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cv588888888888888888888ju/dsh-web-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server