Skip to main content
Glama
Universal CLI History MCP Server

Universal CLI History MCP Server

by vip618

search_history

Search command history across shells and developer tools by keyword, with optional filtering by a specific tool, to locate and reuse past commands.

Instructions

搜索历史命令

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "search_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
toolNo特定工具名称
queryYes搜索关键词

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.5/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 disclosure burden, yet it says nothing about whether the operation is read-only, what corpus is searched, how many results are returned, or how matching works (substring vs regex). The word 'search' weakly implies a non-destructive read, which is the only behavioral signal available. For a tool with zero annotation coverage this is a substantial gap.

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 description is a single compact phrase with zero padding, so there is no wasted wording and the purpose is front-loaded. But brevity here crosses into under-specification rather than efficiency: the same six characters could have carried scope and alternative-routing information at negligible cost.

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?

The tool is low-complexity (2 params, no output schema, no nested objects), so the bar is low, but the description still leaves the search corpus, result behavior, and relationship to list_history entirely unstated. An agent could call it correctly on the basics yet have no idea what it will get back or when it should have used the sibling instead.

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%, with both 'tool' and 'query' documented in the schema itself, so the baseline is 3. The description adds no meaning beyond the schema — it does not explain the semantics of filtering the search by a specific tool name or how query terms are matched. It neither compensates nor detracts.

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?

"搜索历史命令" pairs a specific verb (搜索/search) with a resource (历史命令/command history), so the basic action is identifiable. However, it does not distinguish this from the sibling list_history, which appears to cover the same resource, and it never says whose history or which scope (shell history, tool-execution history, session history). That ambiguity keeps it at vague-but-usable rather than clearly differentiated.

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 tool versus list_history or execute_command, no prerequisites, and no exclusions. The agent must infer from the name alone that this is the keyword-driven alternative to listing. No usage guidance is present beyond the implied 'search' semantics.

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