Skip to main content
Glama
duksh

PeerGlass

by duksh

rir_cache_stats

Read-onlyIdempotent

Monitor in-memory TTL cache performance to prevent repeated RIR queries, respect rate limits, and reduce lookup latency by tracking entry counts and configured TTLs.

Instructions

View the current state of the in-memory TTL cache.

The cache prevents repeated queries to RIRs within short windows, respecting rate limits and reducing latency for repeated lookups.

Returns: str: JSON with cache entry counts (total, alive, expired) and the configured TTL for each query type. Schema: { "cache_stats": {"total_entries": int, "alive": int, "expired": int}, "ttl_seconds": {"ip": int, "asn": int, "org": int, "abuse": int, "bgp": int, "rpki": int} }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations cover safety profile (readOnly, idempotent, non-destructive). Description adds valuable behavioral context about TTL caching mechanism and rate limit respect. Includes detailed return value schema. Could mention if calling this affects cache state (e.g., does it trigger cleanup?), but otherwise comprehensive.

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?

Well-structured with purpose front-loaded, followed by value proposition, then detailed returns. The embedded JSON schema in the Returns section is slightly verbose but functionally useful given the context. No wasted sentences.

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?

Given zero parameters and rich annotations (readOnly, idempotent hints), the description is complete. It explains the 'why' (rate limiting), the 'what' (cache stats), and the 'how' (JSON structure). For a simple diagnostic tool, this coverage is sufficient.

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?

Tool has zero input parameters, establishing a baseline score of 4 per evaluation rules. No parameter semantics are needed or provided, which is appropriate for a parameterless statistics retrieval function.

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?

Description opens with specific verb 'View' and clear resource 'in-memory TTL cache'. The second paragraph distinguishes this from sibling RIR query tools by explaining it monitors the cache that 'prevents repeated queries to RIRs', clearly differentiating it from active query tools like rir_query_ip or rir_check_rpki.

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?

Provides clear context on when the cache matters ('respecting rate limits and reducing latency for repeated lookups'), implying this tool is useful for debugging cache behavior or rate limit issues. Lacks explicit 'when not to use' or named alternatives, but the value proposition is clearly stated.

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/duksh/peerglass'

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