Skip to main content
Glama
Secil Canary Historian MCP Server

Secil Canary Historian MCP Server

by eins53740

get_metrics_summary

Retrieve aggregated performance metrics for all MCP tools, including request counts, latency percentiles, cache hit/miss statistics, and active connections to monitor health and usage.

Instructions

Get human-readable summary of performance metrics.

Story 2.1: Returns aggregated metrics including request counts, latency percentiles, and cache statistics for all MCP tools.

Returns: dict[str, Any]: Dictionary containing metric summaries with keys: - total_requests: Total number of requests processed - by_tool: Per-tool statistics (counts, latencies, cache stats) - cache_stats: Overall cache hit/miss counts - active_connections: Current connection pool usage

Example: json { "total_requests": 156, "by_tool": { "search_tags": { "request_count": 42, "latency": {"median": 1.2, "p95": 3.5, "p99": 5.1}, "cache_hits": 10, "cache_misses": 32 } }, "cache_stats": {"total_hits": 45, "total_misses": 111}, "active_connections": 3 }

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": "get_metrics_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden: 'Get' implies a safe read, but it never explicitly states that it is read-only, side-effect free, or cheap to call. The return-shape discussion is useful context but partly duplicates the output schema, and nothing is said about cost, rate limits, or whether the numbers are live vs. windowed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first sentence is well front-loaded, but the body carries an internal 'Story 2.1' reference that means nothing to an agent, a verbose 'Returns:' block duplicating the output schema, and a full sample JSON payload. All of that could be compressed to one or two sentences.

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, parameterless read tool with an output schema, the description is sufficiently complete: purpose, scope, and nature of the returned metrics are all covered. The remaining gap is routing guidance against similar metrics siblings, which is a usage-guideline concern.

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 nothing for the description to disambiguate; the baseline for a parameterless tool applies. No misleading parameter claims are made.

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+resource ('Get human-readable summary of performance metrics') and scopes it to 'all MCP tools', so the agent knows this is a global aggregate rather than per-tool data. It does not, however, distinguish itself from close siblings like get_metrics, get_aggregates, or get_cache_stats, which likely overlap.

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?

There is no when-to-use/when-not-to-use guidance at all, and no alternative tool is named despite several similar-looking siblings (get_metrics, get_aggregates, get_cache_stats). The agent must infer from the title alone when a summary is preferable to the raw metrics.

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