Skip to main content
Glama
sandraschi

Windows Operations MCP

by sandraschi

winops_evtlog_query

Read-onlyIdempotent

Query recent Windows Event Log entries by channel, time range, and event ID to retrieve timestamps, source, level, and messages for system monitoring and troubleshooting.

Instructions

Query recent events from a Windows Event Log channel.

Return Format

{
  "success": bool,
  "log_name": str,
  "events": [{"timestamp": str, "id": int, "source": str, "level": str, "message": str}],
  "count": int,
  "has_more": bool
}

Examples

query(log_name="System", max_events=20, time_range_hours=1)
query(log_name="Application", event_id=1000)

Errors:

  • Returns success=false if pywin32 is not installed or log_name is invalid.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
event_idNoFilter by specific Event ID.
log_nameNoLog channel name (Application, System, Security, etc.).Application
max_eventsNoMax events to return (1-500).
time_range_hoursNoLookback window in hours.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is well covered. The description adds genuinely useful behavioral context beyond that: the structured return shape with a has_more flag, and explicit failure semantics (success=false when pywin32 is missing or log_name is invalid). This is meaningful information the annotations cannot convey.

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

Conciseness4/5

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

The description is well organized with compact markdown sections (Return Format, Examples, Errors) with no filler. The return format block is slightly redundant given an output schema exists, and the Errors section could have been merged into a single line, but the overall structure is front-loaded and every section earns its place.

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?

For a read-only, fully annotated tool with complete parameter schemas and an output schema, the description is nearly complete: it covers invocation examples, failure cases, and the return contract. Minor gaps remain — it does not clarify what `has_more` semantically means for pagination or state the ordering of returned events (e.g., newest first).

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 input schema already documents all 4 parameters with descriptions (100% coverage), so the baseline is 3. The description's examples reinforce parameter usage (e.g., combining time_range_hours with max_events, using event_id without other filters) but introduce no new parameter semantics beyond what the schema already states.

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 uses a specific verb-resource pair ('Query recent events from a Windows Event Log channel'), clearly stating the tool reads event data from a named channel. It distinguishes itself from its event-log siblings: winops_evtlog_clear mutates, winops_evtlog_export writes, and winops_evtlog_list enumerates channels, whereas this tool retrieves event records.

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?

Usage context is implied by the description ('recent events', 'filter by event ID', examples) and the examples demonstrate valid calls. However, there is no explicit guidance on when to choose this tool over winops_evtlog_export or winops_evtlog_list, nor any stated exclusions or prerequisites (other than the error note about pywin32).

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/sandraschi/windows-operations-mcp'

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