Skip to main content
Glama
kharonx
by kharonx

list-directory-audits

list-directory-audits
Read-onlyIdempotent

List Entra directory audit events to see who changed what and when across users, groups, apps, password resets, and role assignments.

Instructions

Entra directory audit log (who changed what, when): user/group/app changes, password resets, role assignments. Time filter on activityDateTime; $filter e.g. "category eq 'UserManagement' and activityDisplayName eq 'Update user'" or "targetResources/any(t:t/id eq '')". Retention: 30 days (P1/P2). Read-only; needs AuditLog.Read.All + Directory.Read.All (admin consent).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toNoEnd of explicit time range (ISO date or datetime)
fromNoStart of explicit time range (ISO date or datetime, overrides timeRange)
cursorNoContinuation token (nextCursor of a previous truncated response). Continues that listing; other query inputs are ignored.
filterNoOData $filter expression, e.g. "importance eq 'high'" or "hasAttachments eq true"
orderbyNoOData $orderby, e.g. "receivedDateTime desc"
maxItemsNoMaximum items to return across pages (default 50, max 500). Pagination via @odata.nextLink is handled automatically; when the result is truncated, pass its nextCursor as cursor to continue.
timeRangeNoNamed time range applied on activityDateTime
Install Server

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint, idempotentHint, destructiveHint), the description adds meaningful behavioral context: the operation is read-only, requires specific admin-consented permissions (AuditLog.Read.All + Directory.Read.All), and only covers a 30-day retention period. This helps the agent set expectations about data availability and authorization.

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 dense but well-organized, front-loading the tool's purpose before moving to filter syntax, retention, and permissions. Every sentence adds useful information, and there is no fluff or repetition of schema content.

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

Completeness5/5

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

For a read-only audit listing tool with seven optional parameters and no output schema, the description provides enough context to call it correctly: what the log contains, how to filter, the time field, retention limits, and required permissions. Pagination behavior is already covered in the input schema, so nothing essential is missing.

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

Parameters5/5

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

Although schema description coverage is 100%, the description adds significant value by giving domain-specific $filter examples that correct the generic mail-oriented filter example in the schema. It also clarifies that timeRange/from/to apply to activityDateTime, giving the agent precise parameter semantics for audit queries.

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 identifies the resource as the Entra directory audit log and specifies exactly what it contains: who changed what and when, for users, groups, apps, password resets, and role assignments. This clearly distinguishes it from the sibling tools, none of which cover directory audit log retrieval.

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

Usage Guidelines4/5

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

The description provides concrete usage guidance: time filtering applies to activityDateTime and includes realistic $filter examples for category, activityDisplayName, and targetResources. It also states the retention window and required permissions. It does not name alternative tools to switch to, but no direct sibling alternative exists among the listed tools.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kharonx/mcp_gateway'

If you have feedback or need assistance with the MCP directory API, please join our Discord server