Skip to main content
Glama
ZeroSOC

defender-xdr

by ZeroSOC

defender_get_machine_alerts

Read-only

Retrieve the security alerts associated with a specific device in Microsoft Defender for Endpoint, using optional filters to narrow results.

Instructions

List the Defender for Endpoint alerts of one device.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topNoMaximum number of alerts to return (default 25, max 100).
filterNoOData $filter expression. Refine the filter instead of paging deep.
machine_idYesThe Defender for Endpoint machine (device) ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds the device-scoping behavior but does not disclose response format, pagination behavior, or other operational details beyond what the schema and annotations already provide.

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?

A single sentence with no filler: it front-loads the action, resource, and scope. Every word contributes to the core purpose, making it a model of concise and well-structured tool documentation.

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 simple read-only list tool with a fully described schema and safety annotations, the description is adequate to identify purpose and scope. The only gap is the lack of an output schema or explicit statement of returned alert fields, but the name and sibling tools make the return type predictable.

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 description coverage is 100%, so the parameters (machine_id, top, filter) are already fully documented. The description does not add meaning beyond reinforcing that alerts are machine-scoped, which aligns with the baseline of 3 when the schema carries the semantic weight.

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?

States a specific verb ('List'), the resource ('Defender for Endpoint alerts'), and a scoping qualifier ('of one device'), which clearly distinguishes it from sibling tools like defender_list_alerts (all alerts) and defender_get_alert (single alert). The purpose is immediately unambiguous.

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?

The description implies the tool is for retrieving alerts for a specific device, but it gives no explicit when-to-use guidance or alternatives. The phrase 'of one device' provides context, yet an agent must infer when to choose this over defender_list_alerts or other machine-focused tools.

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

Deploy Server

Other Tools