Skip to main content
Glama
x746b

Windows Forensics MCP Server

by x746b

evtx_export

Export filtered Windows Event Log records to a unique JSONL file with SHA-256 and a preview, reporting incomplete scans or row caps.

Instructions

Persist all selected EVTX matches in a unique JSONL file with SHA-256 and a bounded preview. Explicit scan/row caps report incomplete; preview clipping does not discard file rows.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
whereNoField-specific AND predicates. Missing fields fail comparisons, including neq. Use exists for presence; ordering uses numeric operands or aware ISO timestamps on TimeCreated.
fieldsNoSystem fields, dotted EventData/UserData paths, or unambiguous aliases.
formatNojsonl
compactNoCompact rows with event references; selects structured output by default.
containsNo
end_timeNo
max_rowsNoOptional explicit export cap; a capped export reports incomplete.
max_scanNoMaximum source records examined. A capped result reports an inexact total.
providerNo
event_idsNo
evtx_pathYes
max_charsNoResponse budget for metadata plus preview. Does not limit the exported file.
output_dirYesExplicit destination directory. A unique 0600 file is published without overwriting existing files.
start_timeNo
not_containsNo
preview_rowsNo
timestamp_precisionNoboth adds timestamp_second in UTC without changing TimeCreated.full
where_case_sensitiveNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
sha256Yes
previewYes
exported_rowsYes
scan_completeYes
exported_bytesYes
returned_charsYes
export_completeYes
payload_clippedYes
preview_clippedYes
export_limit_hitYes
preview_returnedYes
serialized_charsYes
time_filter_errorsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.5.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does add real behavioral facts: a unique file, a SHA-256 digest, and the crucial distinction that preview clipping does not discard file rows while scan/row caps mark the export incomplete. It still omits error/failure behavior, permission expectations, and what 'unique 0600, no overwrite' (only in the schema) implies operationally.

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?

Two tight sentences with the primary action front-loaded and no filler. The density is near the edge of cryptic, but each clause (SHA-256, bounded preview, cap vs clip semantics) carries distinct information.

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

Completeness3/5

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

An output schema exists, so return values needn't be explained, and the export/artifact semantics are covered. For an 18-parameter tool with a nested where object and heavy time-range filtering, the description still leaves filtering and predicate behavior to the schema alone.

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?

Schema coverage is only 44% across 18 parameters, so the description should compensate more than it does. It clarifies the interplay of scan/row caps and the preview budget, but leaves the filter surface (contains, not_contains, event_ids, provider, start_time/end_time, where) without additional meaning beyond what the schema already says.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (persist/export) and resource (selected EVTX matches) plus the artifact produced (a unique JSONL file with SHA-256 and a bounded preview). The word 'persist' implicitly distinguishes it from evtx_search-style read-only siblings, though no sibling is named explicitly.

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

Usage Guidelines2/5

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

There is no statement of when to prefer this over evtx_search, evtx_security_search, or evtx_get_event, nor any prerequisites. The phrase 'all selected matches' hints the tool consumes filters established elsewhere, but the agent gets no explicit routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.