Skip to main content
Glama
ZeroSOC

defender-xdr

by ZeroSOC

defender_get_machine_logon_users

Read-only

Retrieve the list of users who logged onto a specific device using its machine ID. Optionally limit the number of users returned.

Instructions

List the users that logged on to a device.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topNoMaximum number of users to return (default 25, max 200).
machine_idYesThe Defender for Endpoint machine (device) ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/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 no additional behavioral detail, such as pagination, ordering, or what constitutes a 'logon'. It is consistent with annotations but does not extend them.

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 with no unnecessary words. The action and target are front-loaded, making it easy to scan and parse quickly.

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 operation with two parameters fully documented in the schema, the description is adequate. It lacks details on return format or edge cases, but given the simplicity and annotation coverage, it is reasonably complete.

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 100%: both machine_id and top have descriptions in the schema, including defaults and maximums. The description adds no extra meaning beyond the schema, so the baseline score of 3 is appropriate.

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 clearly states the action (list), the resource (users), and the scope (logged on to a device). It is specific enough to distinguish from sibling tools like defender_get_machine_alerts or defender_get_user_machines, which concern different entities.

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?

The description gives no guidance on when to use this tool versus alternatives. There are many get_* tools in the sibling list, and this one is not differentiated in terms of use cases, prerequisites, or exclusions. An agent would have to 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