Skip to main content
Glama

Windows CLI MCP Server

get_command_history

Retrieves a specified number of recently executed command entries from the Windows CLI MCP Server, including command details, outputs, timestamps, and exit codes for auditing or 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" }

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

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