Skip to main content
Glama

Get Context Statistics

rlm_get_statistics
Read-onlyIdempotent

Retrieve detailed statistics for a context, including line, word, sentence, and paragraph counts, plus averages. Get precise metrics to analyze text structure.

Instructions

Get detailed statistics about a context.

Returns length, line/word/sentence/paragraph counts, and averages.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
context_idNoContext identifiermain
session_idNoSession ID
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is clear. The description adds return-value details but does not disclose additional behavioral aspects such as error handling, precision of averages, or session requirements. With annotations covering safety, this is acceptable but not rich.

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 two sentences, front-loaded with the purpose and then listing the return categories. Every sentence earns its place with no redundancy or fluff, making it highly concise and well-structured.

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?

No output schema exists, so the description's enumeration of return values is valuable. It covers the main information an agent needs, though 'averages' is ambiguous and it does not mention whether a session must be specified. Given low complexity and rich annotations, it is nearly complete.

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%, and both parameters (context_id, session_id) are already described in the schema. The tool description does not add any additional meaning beyond what the schema provides, so the baseline 3 applies.

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?

The description clearly states the verb ('Get') and resource ('statistics about a context') and lists specific return values (length, line/word/sentence/paragraph counts, averages). However, it does not explicitly differentiate from sibling tools like rlm_get_context_info or rlm_read_context, which may serve similar purposes, so it lacks sibling differentiation.

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?

The description provides no guidance on when to use this tool versus alternatives. It does not mention any exclusions, prerequisites, or preferred scenarios. The agent is left to infer usage from the name and sibling context, which is insufficient.

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

Install Server

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/win10ogod/RLM-MCP'

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