Skip to main content
Glama
ZeroSOC

defender-xdr

by ZeroSOC

defender_get_user_alerts

Read-only

Retrieve Microsoft Defender for Endpoint alerts involving a specific user by user ID. Optionally apply filters and set a maximum count to focus on relevant threats.

Instructions

List the Defender for Endpoint alerts that involve a user.

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.
user_idYesUser ID: the account name as Defender reports it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, and destructiveHint=false, so the safety profile is covered. However, the description adds no additional behavioral context, such as what 'involve' means (e.g., user as actor, target, or in evidence), pagination behavior, or rate limits. It does not contradict annotations, but it adds no value beyond the name.

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?

The description is a single, clear sentence that front-loads the action and resource. There is no redundant or filler wording; it is appropriately concise for a simple read-only list operation.

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 that the tool is a straightforward read-only list, the schema fully documents parameters, and annotations cover safety, the description is mostly complete. However, the term 'involve' is vague—it does not specify what roles a user can play in an alert—which could lead to misinterpretation. This minor gap prevents a perfect score.

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 has 100% coverage, with detailed descriptions for all three parameters (user_id, top, filter). The description does not add any parameter information, so it earns the baseline 3 for 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?

The description states a specific verb and resource: 'List the Defender for Endpoint alerts that involve a user.' It clearly distinguishes from siblings like defender_get_user_machines (machines for a user) and defender_get_machine_alerts (alerts for a machine). The scope is unambiguous.

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?

No guidance is provided about when to use this tool versus alternatives. It does not mention that it should be used for user-centric alert queries as opposed to machine- or file-centric ones, nor does it reference any sibling tools. An agent must infer usage from the name alone.

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