Skip to main content
Glama
Universal CLI History MCP Server

Universal CLI History MCP Server

by vip618

get_tool_stats

Retrieves usage statistics for each CLI tool tracked in command history, helping you identify active tools and analyze command patterns.

Instructions

获取各工具的使用统计

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_tool_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses almost nothing. It does not confirm the call is read-only, does not state the aggregation window (all time? current session?), and does not describe the shape or granularity of the statistics returned.

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?

A single short clause with no filler, and the resource is front-loaded. It is efficient, though the terseness borders on under-specification rather than genuine conciseness.

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

Completeness2/5

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

With no output schema, the description is the only place to explain what 'usage statistics' means — per-tool call counts, latency, error rates, time window — and it explains none of that. For a zero-parameter aggregate reporting tool, an agent cannot predict the result at all.

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 and the schema is an empty object, so there is nothing for the description to disambiguate. Baseline of 4 applies; the only mild loss is not stating that no filters or time ranges are accepted.

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 names a specific verb+resource pair: '获取' (retrieve) '各工具的使用统计' (usage statistics for each tool). An agent can tell it is an aggregate metrics read, not a history listing. It does not, however, contrast itself with siblings like list_history or search_history, which also expose tool-related records.

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 statement of when to use this versus list_history or search_history, no prerequisites, and no exclusions. The agent must infer that this is for aggregate counts rather than raw event inspection purely from the word '统计' (statistics).

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