Skip to main content
Glama
ZeroSOC

defender-xdr

by ZeroSOC

defender_get_machines

Read-only

Retrieve onboarded devices from Defender for Endpoint using OData filters on health, risk, or hostname to focus your security queries.

Instructions

List devices onboarded to Defender for Endpoint, with OData filtering, e.g. "healthStatus eq 'Active'", "riskScore eq 'High'", "startswith(computerDnsName,'ws')".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topNoMaximum number of machines to return (default 25, max 100).
skipNoNumber of entries to skip (paging).
filterNoOData $filter expression. Refine the filter instead of paging deep.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. The description adds concrete OData filter examples (healthStatus, riskScore, startswith on computerDnsName), which gives agents actionable knowledge beyond the annotations. It doesn't contradict annotations.

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 concise line followed by three illustrative examples. It's front-loaded with the verb and resource, every word earns its keep, and the example filter expressions are tightly relevant. No unnecessary elaboration.

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 output schema, the description could mention that it returns a list of machine objects, but 'List devices' implies that. The combination of description and schema covers what it lists, how to filter, and paging via top/skip. A note on return shape would be a minor addition, not a critical gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so each parameter (top, sKip, filter) is already well-documented. The description adds value by showing exact syntax for the filter parameter, which helps an agent construct valid queries rather than just knowing the schema type. This goes beyond the baseline.

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 and resource: 'List devices onboarded to Defender for Endpoint'. The OData filter examples clarify it's the general machines list, not a filtered-by-vulnerability or software list. It doesn't explicitly distinguish from sibling tools like defender_get_machine_by_id, but the naming and verb 'List' make the core purpose clear.

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?

It implies use when you need a list of machines with OData filtering, and provides realistic filter examples, but it doesn't state when not to use it or mention alternatives such as defender_get_machines_by_vulnerability or defender_find_machines_by_tag. There is no explicit exclusion or routing guidance for the sibling set.

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