Skip to main content
Glama
carlosedp

Windows MCP Server

by carlosedp

Windows-last-boot-time

Retrieve the exact date and time of the last Windows system boot. Useful for system uptime monitoring and diagnostics.

Instructions

Get the last boot time of the Windows system

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • main.py:50-53 (registration)
    Registration of the 'Windows-last-boot-time' tool using the @mcp.tool decorator with name and description.
    @mcp.tool(
            name="Windows-last-boot-time",
            description="Get the last boot time of the Windows system",
    )
  • main.py:54-68 (handler)
    Handler function 'get_windows_last_boot_time' that executes the tool logic: uses PowerShell to query the Win32_OperatingSystem WMI class for LastBootUpTime.
    def get_windows_last_boot_time() -> str:
        """Get the last boot time of the Windows system."""
        import subprocess
    
        try:
            # Use PowerShell to get the last boot time
            result = subprocess.run(
                ["powershell", "-Command", "(Get-CimInstance -Class Win32_OperatingSystem).LastBootUpTime"],
                capture_output=True,
                text=True,
                check=True
            )
            return result.stdout.strip()
        except subprocess.CalledProcessError as e:
            return f"Error retrieving last boot time: {e}"
Behavior3/5

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

No annotations provided. Description only states purpose, no behavioral details like return format, permissions, or error handling. For a simple read tool without parameters, this is adequate but minimal.

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?

Single sentence, front-loaded, no wasted words. Perfectly concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no parameters and presence of output schema, description is almost complete. Could mention return format or potential errors, but output schema likely covers that.

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?

No parameters. Schema coverage is 100% (trivial). Description adds no parameter info as there are none. Baseline 3 applies due to high schema coverage.

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?

Description clearly states 'Get the last boot time of the Windows system', which is specific verb+resource. It distinguishes from sibling tools like Windows-uptime which provide uptime, not last boot time.

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

Usage Guidelines4/5

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

Implicitly clear: use when you need last boot time. No explicit when-not or alternatives, but the purpose is straightforward and sibling tools cover other info.

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/carlosedp/windows-mcp-server'

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