Skip to main content
Glama
Universal CLI History MCP Server

Universal CLI History MCP Server

by vip618

list_history

Lists historical commands for CLI tools like git, docker, npm, and shell, with optional tool filters and result limits to review past usage.

Instructions

列出所有CLI工具的历史命令

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

Input Schema

NameRequiredDescriptionDefault
toolNo特定工具名称 (git, docker, npm, node, python, shell等)
limitNo限制返回的命令数量

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden, yet it says nothing about ordering (newest-first?), whether the default limit is unbounded, what happens with an unknown tool name, or whether history is read from disk. For an unannotated read tool this leaves the agent guessing at runtime behavior.

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 sentence with no filler and the purpose front-loaded. It is efficient, though its terseness is part of why the usage and behavior gaps exist.

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 two-parameter, zero-required list tool with no output schema, the minimum is met: an agent knows what it returns. Missing are ordering, default limit semantics, and the relationship to search_history, which an agent needs to call this correctly rather than redundantly.

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%, so both parameters (tool, limit) are already documented in the schema, which sets the baseline at 3. The description adds no syntax, example values, or default behavior beyond the schema, and its "all CLI tools" phrasing slightly muddies rather than clarifies the optional filter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a verb and resource ("列出...历史命令") for CLI tools, so the basic action is clear. However, it says "all CLI tools" while the schema exposes an optional single-tool filter, and it says nothing to distinguish it from the sibling search_history, which likely covers the filtered/searched variant.

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 guidance at all: no indication of when to prefer this over search_history, no prerequisites, and no mention of whether the optional tool filter changes the behavior from "all" to a single tool.

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