Skip to main content
Glama

get_command_history

Retrieve the list of previously executed commands along with their results. Optionally limit the number of records returned.

Instructions

Get the history of executed commands. Returns a list of previously executed commands with their results. / 获取命令执行历史记录。返回之前执行的命令及其结果列表。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of history records to return. Default returns all records.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
totalYes
historyYes
Behavior3/5

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

With no annotations, the description carries the burden of disclosure. It states that a list of commands with results is returned, which is basic behavioral information. However, it does not mention ordering, permissions, or any side effects, though the tool appears read-only.

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

Conciseness5/5

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

The description is concise, two sentences, with no redundant wording except for the translation. It is front-loaded with the main action and return type, suitable for quick understanding.

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?

For a simple read-only tool with one optional parameter and a defined output schema, the description is complete. It covers the essential purpose and return value; the schema handles parameter details and the output schema defines return structure.

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?

The only parameter 'limit' is fully described in the input schema with a clear description and examples. The tool description adds no further parameter detail, but schema coverage is 100%, so this is adequate.

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?

The description clearly states the tool's action ('Get the history of executed commands') and its output ('Returns a list of previously executed commands with their results'). It distinguishes from siblings like clear_command_history and execute_command.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage by defining the tool's purpose, but does not explicitly mention when to use it over alternatives or any exclusions. The context suggests it is for retrieving past command executions, but no direct guidance is provided.

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/shibingli/mcp-toolkit'

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