Skip to main content
Glama

Windows CLI MCP Server

get_command_history

Retrieve a detailed history of executed commands on Windows systems, including command, output, timestamp, and exit code. Specify a limit to manage the number of entries returned. Ideal for auditing and troubleshooting.

Instructions

Get the history of executed commands

Example usage:

{ "limit": 5 }

Example response:

[ { "command": "Get-Process", "output": "...", "timestamp": "2024-03-20T10:30:00Z", "exitCode": 0 } ]

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of history entries to return (default: 10, max: 1000)

Input Schema (JSON Schema)

{ "properties": { "limit": { "description": "Maximum number of history entries to return (default: 10, max: 1000)", "type": "number" } }, "type": "object" }
Install Server

Other Tools from Windows CLI MCP Server

Related Tools

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/SimonB97/win-cli-mcp-server'

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