entraadm-mcp
Inglés | 日本語
Servidor MCP para el triaje de inicios de sesión y registros de auditoría de Microsoft Entra ID. Solo lectura.
Por qué esto en lugar del Microsoft MCP Server for Enterprise oficial
Microsoft ofrece un MCP Server for Enterprise oficial para datos de Entra ID. Es una buena opción para un administrador interactivo frente a un teclado, y no es adecuado para un bot de triaje desatendido:
Solo autenticación delegada. El servidor oficial no admite autenticación solo de aplicación (credenciales de cliente), por lo que no puede ejecutarse sin supervisión detrás de una cuenta de servicio. entraadm-mcp está diseñado para ese caso: solo aplicación en producción, con un respaldo delegado (
az login) para el desarrollo local.Una herramienta de consulta Graph de propósito general, no un conjunto fijo de herramientas. El servidor oficial expone una herramienta que permite al modelo construir llamadas arbitrarias
GET/descubrimiento de esquema contra Microsoft Graph. Eso es flexible para un humano, pero incómodo de poner detrás de una lista de permitidos para un perfil de triaje automatizado. entraadm-mcp expone siete herramientas fijas de solo lectura en su lugar.Sin traducción de AADSTS. Los fallos de inicio de sesión se devuelven como códigos de error sin procesar; el triaje aún necesita una tabla de búsqueda. entraadm-mcp anota cada fallo de inicio de sesión con lo que el código realmente significa.
Sin agregación entre solicitudes. Microsoft Graph en sí no puede filtrar inicios de sesión por
status/errorCodeen el servidor, y no tiene una vista integrada de rociado de contraseñas.signin_failure_statsagrega en el cliente y marca IPs con inicios de sesión fallidos contra muchos usuarios distintos: el patrón que el bloqueo inteligente por cuenta de Entra no detecta por sí solo.
Related MCP server: Microsoft Graph MCP Server
Herramientas
Herramienta | Qué responde |
| ¿Es accesible Graph y puede esta credencial leer los registros de inicio de sesión? |
| ¿Está habilitada esta cuenta, sincronizada desde on-prem, y cuáles son sus licencias? |
| ¿Por qué falló (o tuvo éxito) el inicio de sesión de este usuario, con el código AADSTS traducido? |
| Agregación de fallos a nivel de inquilino: principales códigos de error, usuarios, aplicaciones, IPs de origen y sospechosos de rociado de contraseñas |
| ¿Quién cambió qué en el directorio (bloqueo/desbloqueo, ediciones de atributos) y cuándo? |
| ¿Está realmente registrado MFA para esta cuenta? |
| Resumen de una sola llamada que combina |
Cada herramienta es de solo lectura. Las operaciones de escritura (desbloquear una cuenta, restablecer una contraseña, revocar una sesión) están fuera del alcance de este servidor.
Modelo de autenticación
Dos modos de autenticación, seleccionados por qué variables de entorno están establecidas:
Modo | Cuándo | Variables de entorno |
app-only | Las tres establecidas |
|
azure-cli | Ninguna establecida | (usa la sesión actual de |
Establecer una o dos de las tres variables de solo aplicación es un error de configuración y el servidor se niega a iniciar, en lugar de volver silenciosamente a un modo de autenticación diferente al previsto.
Permisos de Graph requeridos
Herramienta(s) | Permiso | Notas |
|
| |
|
| |
|
| Solo app-only; no disponible bajo autenticación delegada ( |
Un permiso faltante nunca bloquea una herramienta. Degrada esa herramienta (o ese campo) a {"error": "...", "missing_permission": "..."} con una explicación legible de qué rol o permiso se necesita, para que health_check y todas las demás herramientas sigan siendo utilizables incluso antes de que se otorguen los permisos completos.
Instalación
uv tool install entraadm-mcp
# or
pip install entraadm-mcpConfiguración
Establece las tres variables de solo aplicación para uso en producción/desatendido:
export ENTRAADM_TENANT_ID=00000000-0000-0000-0000-000000000000
export ENTRAADM_CLIENT_ID=00000000-0000-0000-0000-000000000000
export ENTRAADM_CLIENT_SECRET=your-client-secretO deja las tres sin establecer y ejecuta az login primero para el desarrollo local.
Opcional:
# Default page cap for the log-scanning tools (1-50, default 5).
export ENTRAADM_MAX_PAGES_DEFAULT=5Uso
Claude Code (plugin)
/plugin marketplace add shigechika/entraadm-mcp
/plugin install entraadm-mcp@entraadm-mcpClaude Code (manual)
Añade a .mcp.json:
{
"mcpServers": {
"entraadm-mcp": {
"type": "stdio",
"command": "uvx",
"args": ["entraadm-mcp"],
"env": {
"ENTRAADM_TENANT_ID": "${ENTRAADM_TENANT_ID:-}",
"ENTRAADM_CLIENT_ID": "${ENTRAADM_CLIENT_ID:-}",
"ENTRAADM_CLIENT_SECRET": "${ENTRAADM_CLIENT_SECRET:-}"
}
}
}
}Ejecución directa
entraadm-mcpOpciones de CLI
Opción | Efecto |
| Imprime la versión y sale |
| Resuelve la autenticación, comprueba la accesibilidad de Graph y el acceso a los registros de inicio de sesión, imprime un informe, sale con 0 (o 1 en error de configuración) |
Notas
Contrato de cobertura. Cada resultado que recorre una colección paginada de Graph lleva un booleano
cappedcuando su ventana no se escaneó por completo: un escaneo parcial nunca se informa como si fuera exhaustivo.found: falseno es un error.get_useryget_user_auth_methodsresponden a una cuenta inexistente con{"found": false, ...}, no con una claveerror: un userPrincipalName mal escrito nunca debería parecer que este servidor está roto.Retención. Entra ID P1 retiene los registros de inicio de sesión y de auditoría de directorio durante 30 días. Una ventana más allá de eso devuelve un resultado vacío, no un error.
Desarrollo
uv sync --dev
uv run pytest -v
uv run ruff check .
uv run ruff format --check .Prueba de humo en vivo
uv run python scripts/smoke_test.pySolo lectura, sin cargas útiles impresas (solo nombres de herramientas/estados/recuentos de filas) y acotado (ventanas explícitas pequeñas/límites de página): nada aquí escribe en el inquilino ni escanea más de un día de registros.
Publicación
Este repositorio utiliza release-please impulsado por Conventional Commits. Fusiona un PR feat:/fix: a main, y release-please abre (o actualiza) un PR de lanzamiento; fusionar ese PR etiqueta un lanzamiento y activa el pipeline de publicación (PyPI, MCP Registry).
Licencia
MIT
Available Tools
17 toolsaudit_log_search_resultA
Status and, once finished, the summarised records of an audit search started by audit_log_search_start.
Reads Graph GET /security/auditLog/queries/{id}. While status is
notStarted or running the answer is the status only (done: false); call again in a minute or two. failed, cancelled and any
status this server does not know are done: true with an error. Once succeeded, the records are paged
(/records) and come back as:
summary:total_records,first_seen/last_seen, counts by operation, service, record type and user, and per client IP the count with first/last seen (top 25 of each list;distincthas the full counts);records: the newesttoprecords, each with time, operation, service, record type, user, client IP, object id and a fewdetailsfromauditData(client IP, user agent, result status, site URL, file name, the names of cmdlet parameters -- never their values), every string cut to 200 characters. The fullauditDatais not returned.
capped=true means the counts are lower bounds: either the page budget or
the deadline ran out before every record was read (call again with a larger
max_pages), or query.record_count_limit_exceeded is true -- Graph
itself stopped collecting at its per-search record limit
(query.record_count_limit), so the search holds only part of the
matching records whatever max_pages is; narrow the window or the
filters and start a new search. records_truncated means more records were read than
top returns (the summary counts them all). An unknown id is found: false: a search exists only in the tenant that created it, so pass the
tenant its start call used. Permissions as audit_log_search_start; a
403 returns missing_permission.
Args:
query_id: The query_id returned by audit_log_search_start (a GUID).
top: Maximum records to return, clamped to [1, 500].
max_pages: Page budget for the records (default: ENTRAADM_MAX_PAGES_DEFAULT).
tenant: Tenant the search was started in: a [tenant.] section name, one of its domains or its
tenant id (default: the default tenant).
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| tenant | No | ||
| query_id | Yes | ||
| max_pages | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden and does so thoroughly: it discloses status states, done/error semantics, paging behavior, capped and records_truncated meanings, Graph record-limit behavior, omitted auditData details, and 403 missing_permission handling.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is long, but the length is earned by the tool's complexity: status polling, paging, truncation, permissions, and four undocumented schema parameters. It is front-loaded with the core purpose and uses bullets to structure the return details cleanly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given no annotations, no output schema, and 0% schema description coverage, the description provides everything an agent needs: return structure, status semantics, error and truncation behavior, tenant scoping, and parameter meanings. Nothing material appears missing.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, but the description compensates by documenting every parameter: query_id as the GUID from audit_log_search_start, top clamped to [1, 500], max_pages as the records page budget with an environment default, and tenant as a section name, domain, or tenant id with default behavior.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific resource and operation: it returns the status and, once finished, summarized records of an audit search started by audit_log_search_start. It explicitly ties itself to the sibling start tool, making its role distinct and immediately clear.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It gives explicit polling guidance: while status is notStarted or running, call again in a minute or two; once succeeded, records are returned. It also explains failure statuses, unknown IDs, tenant scoping, and permission behavior, leaving little ambiguity about when and how to use it.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
audit_log_search_startA
Start a Microsoft Purview audit log search: what was done in OneDrive/SharePoint, Exchange, Entra.
The follow-up to a confirmed takeover: the sign-in log shows which
resources a session obtained tokens for, this shows what it then did (files
opened or downloaded, mailbox rules and cmdlets, directory changes). A
search runs asynchronously in Microsoft 365 and usually takes several
minutes, so this only submits it (Graph POST /security/auditLog/queries)
and returns query_id; call audit_log_search_result with that id (and
the same tenant) until done is true.
The call creates a saved audit search object in the tenant (listed in the
Purview audit search page); it changes no directory, mailbox or file data.
Each call counts against the tenant's audit search limits (searches per
day, searches running at once): a 429 comes back as rate_limited: true
and is not retried. At least one filter besides the window is required, so
a call never searches the whole tenant's log. The filters combine with AND.
Needs the application permission AuditLogsQuery.Read.All, or the
service-scoped AuditLogsQuery-OneDrive.Read.All /
-SharePoint.Read.All / -Exchange.Read.All / -Entra.Read.All
(then set service to match). A 403 returns missing_permission.
created is true, false (nothing was created), or null (the answer was
lost; a search may exist anyway).
Args:
user: Only records of this userPrincipalName.
hours: How far back from end (or now) to search, clamped to [1, 4320] (180 days). Ignored with start.
start: Window start, ISO 8601 with an offset (e.g. 2026-10-21T22:00:00+09:00).
end: Window end, ISO 8601 with an offset (default: now).
record_types: auditLogRecordType values, e.g. ["sharePointFileOperation", "exchangeItem"].
operations: Operation names, e.g. ["FileDownloaded", "New-InboxRule", "MailItemsAccessed"].
ip_addresses: Client IPv4/IPv6 addresses.
keyword: Free text matched against the workload-specific content of each record (auditData), not
against indexed properties such as the operation name; use operations for those (at most 256 characters).
service: One workload, e.g. "Exchange", "SharePoint", "OneDrive", "AzureActiveDirectory".
object_ids: Object ids, e.g. a file URL or a mailbox item id.
tenant: Tenant to search: a [tenant.] section name, one of its domains or its tenant id
(default: the tenant claiming the user's domain, else the default tenant).
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| user | No | ||
| hours | No | ||
| start | No | ||
| tenant | No | ||
| keyword | No | ||
| service | No | ||
| object_ids | No | ||
| operations | No | ||
| ip_addresses | No | ||
| record_types | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations exist, and the description fully carries the burden: it discloses the side effect (a saved audit search object is created in the Purview audit search page, but no directory/mailbox/file data changes), the async multi-minute latency, rate-limit behavior (429 surfaces as rate_limited and is not retried), the required permission plus service-scoped alternatives, 403 as missing_permission, and the tri-state meaning of the created flag including the ambiguous null case.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Front-loaded with purpose and the required follow-up call before diving into side effects and permissions, with an Args block for per-parameter detail. It is long, but nearly every sentence carries information an agent needs given zero schema documentation; the investigative framing in the second paragraph is the only somewhat expendable part.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given 11 parameters, no annotations, no output schema and 0% schema coverage, the definition supplies everything needed to invoke correctly: return value (query_id), polling protocol, error-to-flag mappings, permission requirements, and a filter-combination rule (AND). Nothing material is missing.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate, and it documents all 11 parameters with semantics the names do not convey: hours is clamped to [1, 4320] and ignored when start is set, start/end require ISO 8601 with offset, keyword matches workload content (auditData) rather than indexed properties and caps at 256 chars, tenant falls back to the domain-claiming tenant, and record_types/operations/service come with concrete value examples.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Opens with a specific verb+resource ('Start a Microsoft Purview audit log search') and immediately scopes the workloads (OneDrive/SharePoint, Exchange, Entra). It is clearly separable from siblings like signin_logs and audit_log_search_result, the latter named explicitly as the consumer of this tool's output.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Explicitly states when this applies ('the follow-up to a confirmed takeover: the sign-in log shows which resources a session obtained tokens for, this shows what it then did') and gives the exact follow-up procedure: call audit_log_search_result with the returned query_id and same tenant until done is true. It also states the precondition that at least one filter beyond the window is required, so a whole-tenant sweep is impossible.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
compromise_suspectsA
Accounts that were probably taken over, from one walk of the sign-in log.
The success-side counterpart of signin_failure_stats' spray suspects.
Two findings, both from EXTERNAL source IPs (outside the address ranges
in ENTRAADM_SITES_INI; without that file every IP counts as external):
spray_breaches(severityhigh): an IP with credential failures (wrong password, unknown, locked or disabled account -- not MFA prompts, session interrupts or Conditional Access blocks, which follow a correct password) formin_spray_usersor more distinct accounts in the window AND a successful sign-in as at least one account. Without internal ranges (ENTRAADM_SITES_INI unset or unreadable,internal_ranges_known: false) these aremediumwith anote: the tenant's own NAT egress can look like a spray source. One row per account and IP:failed_distinct_usersfrom that IP, first/last success, client apps, countries,legacy_auth. The strongest signal: a spray that found a working password.foreign_successes: successes from a country outside ENTRAADM_HOME_COUNTRIES (assigned ISO 3166-1 alpha-2 codes, e.g. "JP"; one invalid code disables this list, seehome_countries.error), grouped per account with countries, the most used IPs (10, with counts), client apps, first/last, andhome_success_in_window(the account also signed in from a home country or an internal IP in the window; null when not seen in a capped scan, since the unread part may hold it).highwhen a legacy protocol was used (password only, no MFA), the account is also a highspray_breachesentry, the success came through Azure CLI / Azure PowerShell / Azure AD PowerShell (admin_tools; how stolen passwords are tested and used), or the successes span 3 or more countries within 24 hours (a rotating proxy pool, not a traveller);high_reasonsnames which.mediumotherwise. Unset home countries:home_countries.configuredis false and this list stays empty -- nothing is guessed. A success with no country is never called foreign.microsoft_risky_users: Microsoft's own verdicts from Identity Protection, which needs Entra ID P2 and the optionalIdentityRiskyUser.Read.Allpermission. A cheap probe (cached per tenant) decides: without P2 the section is{"available": false, "reason": "not_licensed" | "hidden" | "no_permission" | "error"}and nothing else changes -- never read it as "no risky users". With P2: open (atRisk / confirmedCompromised)highand, separately,mediumrisky users (50 each,*_capped), each marked when also inspray_breaches/foreign_successes.
counts are distinct accounts over every finding (case-insensitive,
counted before the lists are cut): high is any account high in this
tool's own lists or in Microsoft's high list; medium is any account
medium here or in Microsoft's medium list that is not high. With P2,
microsoft_high / microsoft_medium say how many accounts Microsoft
lists. Lists are capped at 50 (*_capped).
how_to_read says what to act on. Like signin_failure_stats this
walks the interactive sign-in log for the window (every legacy-protocol
authentication is interactive) under ENTRAADM_DEADLINE; capped=true
means the window was not fully read and the findings are a lower bound.
Read-only (AuditLog.Read.All application permission, or -- for azure-cli
auth -- the Reports Reader directory role; IdentityRiskyUser.Read.All,
optional, for microsoft_risky_users).
Args: hours: How far back to look, clamped to [1, 720] (30 days). tenant: Tenant to read: a [tenant.] section name or one of its domains (default: the default tenant). min_spray_users: Distinct failed accounts that make an IP a spray source (default 5, clamped to >= 2). max_pages: Page budget (default: ENTRAADM_MAX_PAGES_DEFAULT).
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | ||
| tenant | No | ||
| max_pages | No | ||
| min_spray_users | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full behavioral burden and does so thoroughly: it declares read-only behavior, required permissions, optional IdentityRiskyUser.Read.All, dependency on ENTRAADM_SITES_INI and ENTRAADM_HOME_COUNTRIES, deadline/capping semantics, and the lower-bound caveat when capped=true. It also explains that unavailable Microsoft risk data must not be read as 'no risky users,' which is exactly the kind of behavioral context an agent needs.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is long, but it is front-loaded and structurally organized around findings, counts, limitations, and Args. Most detail earns its place given the complexity and lack of annotations/output schema, though some explanatory repetition keeps it below maximally concise.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
There is no output schema, yet the description thoroughly explains the return structure: spray_breaches, foreign_successes, microsoft_risky_users, counts, capping flags, severity logic, and availability failure shapes. It also covers permissions, environment dependencies, and scan limitations, leaving little ambiguity for an agent invoking it.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, but the Args section documents all four parameters: hours with clamping range, tenant as section name or domain, min_spray_users with default and minimum, and max_pages with its environment-variable default. This fully compensates for the bare input schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The opening sentence states the specific resource and outcome: accounts probably taken over from one walk of the sign-in log. It also distinguishes itself from the sibling signin_failure_stats as the success-side counterpart, so an agent can route correctly without opening the schema.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description clearly frames the tool as the success-side counterpart to signin_failure_stats and explains the investigative context, including that it walks the interactive sign-in log. It does not explicitly say when not to use it versus signin_success_stats or signin_logs, so it falls short of full when/when-not guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
daily_briefA
One-call morning-patrol summary: M365 service health, sign-in failures, spray suspects, admin actions.
Combines m365_service_health, signin_failure_stats,
directory_audits and compromise_suspects (its counts and the top
5 of each list; summary.compromise_suspects has the high/medium
counts) into one result with a compact summary on top. The failure
stats and the compromise suspects come from one walk of the sign-in log.
The shape matches this fleet's other daily_brief tools. A
permission failure in one section degrades only that section's
contribution to summary -- the other sections still return in full.
Azure VM backup is deliberately not a section here: its ARM fan-out is
the one scan that could exhaust the shared budget, so call
vm_backup_status separately.
With a tenant file (ENTRAADM_CONFIG) it covers every tenant: the
top-level keys stay the DEFAULT tenant's brief, exactly as in a
single-tenant deployment, plus tenant (the default's name) and
tenants ({name: the same brief} for each other tenant). The call
budget (ENTRAADM_DEADLINE) is split: default first, each tenant gets
an even share of what is left, so a busy tenant cannot starve the next
one (a tenant that finishes early leaves its rest to the others). With
ENTRAADM_DEADLINE=0 there is no budget and every tenant is scanned in
full, one after another, which can outlast a client's ~60 s cutoff.
Env-only results carry neither key.
Runs both sections synchronously in one tool call, unlike the sibling
gwsadm-mcp's job+poll daily_brief. If this proves too slow for a
tenant's sign-in volume against the client's tool-call timeout, port
that job+poll pattern here (tracked in this repo's CLAUDE.md Roadmap).
Args: hours: How far back to look, clamped to [1, 720] (30 days). max_pages: Page budget passed to both sections (default: ENTRAADM_MAX_PAGES_DEFAULT). samples: Reserved for a future drill-down sample size; currently unused.
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | ||
| samples | No | ||
| max_pages | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden and does so: it discloses per-section graceful degradation on permission failure, the shared call-budget splitting across tenants, that results are synchronous (unlike the job+poll sibling) with a timeout risk, and what shape the return payload takes. These are non-obvious operational traits an agent could not infer from the schema.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Front-loaded with the one-sentence summary, and nearly every paragraph carries operational value. It is somewhat long and includes repo-internal roadmap/CLAUDE.md references that don't help an agent decide or invoke, which keeps it short of a 5.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a 3-param aggregator with no output schema and no annotations, the description is thorough: it describes the return shape (compact summary plus top-5 lists), the multi-tenant top-level/tenant keys, budget allocation, and failure modes. An agent has everything needed to call it correctly and interpret the result.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 0%, so the description must compensate, and it does for all three params: hours is clamped to [1,720], max_pages is a page budget passed to both sections with a named default, and samples is flagged as currently unused. The only softness is that max_pages' default is given as an env-var name rather than a resolved value, but the semantics are still clear.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Opens with a specific verb+resource framing ('One-call morning-patrol summary') and enumerates exactly which data it aggregates (M365 service health, sign-in failures, spray suspects, admin actions). It explicitly names the four sibling tools it combines, so an agent can distinguish it from calling those tools individually.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Explicitly steers away from the obvious alternative: it says Azure VM backup is deliberately excluded and that the agent should call vm_backup_status separately, with a stated reason (ARM fan-out exhausting the shared budget). It also explains the multi-tenant case and the deadline=0 tradeoff, giving clear when-to-use and when-not-to-use context.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
directory_auditsA
Who did what to the directory, and when -- the operator-side counterpart to signin_logs.
Every admin action against a user object (block/unblock, password reset,
role assignment, attribute edits) appears here, naming the actor
(initiated_by) and the affected object(s) (target_resources).
This is the record a manual "unblock and reset" intervention -- like the
one that closed the 2026-08-21 case this server exists to shorten --
leaves behind; it is how a later triage can tell "already handled by a
human" from "still open".
user, when given, matches audits where that account is either the
initiator or a target resource. Graph's directoryAudits endpoint only
supports server-side $filter on the initiator
(initiatedBy/user/userPrincipalName), not on targetResources, so
this fetches the full time window and matches both sides client-side --
a window with many unrelated admin actions can need a larger
max_pages budget than signin_logs/signin_failure_stats to
find one specific user's audits; capped=true warns when that budget
ran out before the window was fully scanned.
Read-only (AuditLog.Read.All application permission, or -- for azure-cli auth -- the Reports Reader directory role). Entra ID retains directory audit logs for 30 days, same as sign-in logs.
Time-bounded: the scan stops after ENTRAADM_DEADLINE seconds (default 45)
and returns what it has with capped=true. Over several days the log is
dominated by device-registration noise ("Update device"), so pass
category (for example UserManagement, RoleManagement,
GroupManagement, ApplicationManagement) to have Graph filter
server-side; that keeps a multi-day window inside the budget.
Args: category: Only this Graph audit category (letters only; default: all). user: Restrict to audits naming this userPrincipalName as actor or target (default: all). hours: How far back to look, clamped to [1, 720] (30 days). top: Maximum records to return, clamped to [1, 500]. max_pages: Page budget (default: ENTRAADM_MAX_PAGES_DEFAULT). tenant: Tenant to read: a [tenant.] section name or one of its domains (default: the default tenant).
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| user | No | ||
| hours | No | ||
| tenant | No | ||
| category | No | ||
| max_pages | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations present the description carries the full burden and does so thoroughly: read-only, required permission (AuditLog.Read.All or Reports Reader role), 30-day retention, a hard scan deadline (ENTRAADM_DEADLINE, default 45s) that returns partial results with `capped=true`, and the important caveat that Graph only server-filters on the initiator so `user` matching is client-side and can silently miss records if the page budget runs out. This is exactly the behavioral context an agent needs before calling.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The purpose and the key operational caveats are front-loaded, and the Args block is dense and useful. Some narrative framing ('like the one that closed the 2026-08-21 case this server exists to shorten') is atmospheric rather than operational and slightly inflates the length of an otherwise tight definition.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a 6-parameter, zero-annotation, no-output-schema tool, the description covers everything material: what it returns implicitly (audit records with actor and targets), how to know results are truncated, permission and auth prerequisites, retention limits, and the performance trade-off of client-side user matching. Nothing an agent needs to call it correctly is missing.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 0% — the schema only has titles and defaults — so the description must compensate, and the Args block does: it defines clamp ranges for `hours` [1,720] and `top` [1,500], explains that `user` matches either actor or target side, that `category` is letters-only and server-side, and that `tenant` accepts a config section name or a domain. That is substantive meaning beyond the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Opens with a specific verb+resource framing ('Who did what to the directory, and when') and immediately positions itself as 'the operator-side counterpart to signin_logs.' It enumerates the exact event types captured (block/unblock, password reset, role assignment, attribute edits) and the key fields (initiated_by, target_resources), so an agent can distinguish it from every sibling without reading the schema.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Gives concrete selection conditions: pass `category` for multi-day windows to avoid device-registration noise, raise `max_pages` when filtering by `user` because target-side matching is client-side, and use the sibling tools for sign-in rather than admin activity. It never explicitly states a 'do not use this when...' exclusion, which is the only gap.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_userA
One account's identity/lifecycle state -- the first thing to check on any triage report.
account_enabled=false means the account itself is the whole story;
stop there. A stale last_password_change_date_time alongside a fresh
"wrong password" complaint (AADSTS50126 in signin_logs) is the most
common on-the-ground pattern: the password changed or expired somewhere,
and a cached credential on one device is now stale.
on_premises_sync_enabled=true means this account is synced from an
on-premises directory (Entra Connect) -- Entra is a downstream copy of
its password via Password Hash Sync, not the source of truth.
licenses names are resolved from the tenant's SKU catalog
(/subscribedSkus, page budget from ENTRAADM_MAX_PAGES_DEFAULT);
licenses_capped: true appears only when that scan was cut short
before resolving one of this account's own licenses -- when present,
one or more licenses entries is a raw skuId rather than a friendly
name.
sign_in_activity needs an additional Graph read (AuditLog.Read.All
application permission, or -- for azure-cli auth -- the Reports Reader
directory role) beyond what the rest of this tool needs. If that
permission is missing, every other field above still returns and
sign_in_activity alone degrades to {"error": ..., "missing_permission": "AuditLog.Read.All"}.
A nonexistent account is a normal answer, not a tool failure: the result
is {"found": false, "user_principal_name": upn} rather than an
error key, so a typo'd UPN in a triage report cannot be mistaken for
this tool being broken.
Read-only (User.Read.All application permission, or an equivalent delegated read). Requires an exact userPrincipalName, not a display name or partial match.
Args: upn: The account's userPrincipalName, e.g. "user@example.edu". tenant: Search this tenant instead of the one claiming the UPN's domain (section name, domain or tenant id): for a .onmicrosoft.com or #EXT# UPN, or a B2B guest's sign-ins in the host tenant.
| Name | Required | Description | Default |
|---|---|---|---|
| upn | Yes | ||
| tenant | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden and does so well: it declares read-only access, required permissions, partial degradation of sign_in_activity, license-capping behavior, on-premises sync semantics, and how nonexistent accounts return found=false rather than an error.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is long but well front-loaded and organized around the key triage decision points. Some details, such as the SKU page-budget mechanism, are verbose, though they remain relevant because no output schema exists to explain those return fields.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given no annotations, no output schema, and zero schema description coverage, the description supplies the behavioral, permission, and return-shape context an agent needs. It covers the main failure mode, degraded fields, and the exact-match requirement for the primary identifier.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 0%, but the description fully documents both parameters beyond the schema titles. It explains that upn must be an exact userPrincipalName, and it describes tenant's purpose with concrete cases such as onmicrosoft.com, #EXT#, and B2B guest sign-ins.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific resource and scope: an account's identity/lifecycle state, and positions it as the first check in triage. It distinguishes itself from signin_logs by explicitly referencing that sibling for the AADSTS50126 sign-in pattern.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It gives a clear primary use case (first thing to check on triage) and a stopping condition when account_enabled=false, plus a common pattern tying it to signin_logs. However, it does not explicitly name when other sibling tools such as get_user_auth_methods would be preferable.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_user_auth_methodsA
Registered authentication methods for one account -- is MFA actually set up?
mfa_registered answers "would this account survive a password-spray
hit": True iff at least one non-password method is registered
(Authenticator app, phone, FIDO2 security key, Windows Hello, a
temporary access pass, software OATH token, or a platform
credential/passkey). password itself is excluded from that count --
every account has one, so its presence alone says nothing about MFA
coverage.
A nonexistent account is a normal answer, not a tool failure: the result
is {"found": false, "user_principal_name": upn} rather than an
error key, matching get_user's contract.
Read-only (UserAuthenticationMethod.Read.All application permission). This endpoint is app-only only: it is not exposed to delegated (azure-cli) auth under this tenant's current role assignment, so it degrades to a permission error under azure-cli auth even when other tools work.
Args: upn: The account's userPrincipalName. tenant: Search this tenant instead of the one claiming the UPN's domain (section name, domain or tenant id): for a .onmicrosoft.com or #EXT# UPN, or a B2B guest's sign-ins in the host tenant.
| Name | Required | Description | Default |
|---|---|---|---|
| upn | Yes | ||
| tenant | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden and does so: it declares read-only status, the exact permission (UserAuthenticationMethod.Read.All), and a real operational constraint — app-only auth only, degrading to a permission error under azure-cli. It also pre-empts a common failure mode by stating that a nonexistent account returns {found: false} rather than an error, matching get_user's contract.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The key claim (MFA registered or not) is front-loaded in the first two lines, followed by the precise mfa_registered definition, the not-found contract, and the auth caveat. The password-exclusion paragraph is slightly belabored but earns its place by preventing a misread of the count.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
No output schema and no annotations exist, and the description covers the negative case's return shape, the permission model, and the auth-mode limitation. It does not sketch the shape of a successful result (the list of registered methods), which leaves a small gap for a tool whose whole purpose is enumerating them.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 0%, so the description must document both parameters. The tenant argument gets rich treatment — what it overrides (the domain-claiming tenant), accepted forms (section name, domain, tenant id), and the scenarios that require it. The upn argument is only glossed as 'the account's userPrincipalName', which is adequate but adds little.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Opens with a specific verb+resource ('Registered authentication methods for one account') and immediately frames the practical question it answers ('is MFA actually set up?'). This is clearly distinguishable from sibling get_user, which returns account attributes rather than auth method registrations.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The MFA-coverage framing plus the 'password is excluded from the count' note tells an agent exactly what question this tool answers, and the tenant argument is scoped with concrete cases (onmicrosoft.com, #EXT#, B2B guest sign-ins in host tenant). It stops short of naming an alternative tool or an explicit when-not-to-use condition.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
health_checkA
Fleet-standard health probe: service/version/status plus two independent Graph probes.
graph confirms Microsoft Graph is reachable at all (GET /users
with $top=1 -- needs only User.Read.All, the minimum permission
every deployment of this server needs anyway). signin_probe additionally confirms the current
credential can read sign-in logs -- the permission every other tool here
except get_user depends on. Both probes always run, independently of
each other: a tenant that has AuditLog.Read.All but not (yet) the
baseline User.Read.All would otherwise have this report "Graph
unreachable" -- a fabricated diagnosis, since Graph plainly is
reachable if the other probe succeeds. status is derived from the
two outcomes: healthy when both succeed, degraded when exactly
one does (Graph is reachable but some permission is missing), error
only when neither does.
Read-only. Always returns the same keys regardless of outcome (detail
is null on success, a translated message on failure), so a caller never
has to branch on which keys are present.
sites reports the optional ENTRAADM_SITES_INI table
(configured, ranges, error). A configured file that fails to
load is an error here and leaves status no better than
degraded: without it every internal IP would be reported as an
external spray suspect.
With a tenant file (ENTRAADM_CONFIG) every tenant is probed. The
top-level keys stay the DEFAULT tenant's, as in a single-tenant
deployment, plus tenant (the default's name) and tenants:
{name: {default, domains, auth_mode, status, graph, signin_probe}}
for every tenant, the default included. Each tenant's probes run under an
even share of the call budget (ENTRAADM_DEADLINE), so a tenant that
does not answer is an error there instead of stalling the call.
Another tenant that is not
healthy makes the top-level status at most degraded (the
default tenant alone can make it error). arm is the default
tenant's only. Env-only results carry neither key.
identity_protection is the Identity Protection licence probe
(licensed / not_licensed / no_permission / error, cached
per tenant for an hour; see compromise_suspects), per tenant in
tenants too. Informational: not_licensed (no Entra ID P2) and
the rest never change status.
home_countries reports ENTRAADM_HOME_COUNTRIES (configured,
countries, error), which compromise_suspects needs for its
foreign-success finding. Informational: unset or invalid never changes
status.
arm is a third, informational probe (Azure Resource Manager
reachable, and how many subscriptions this credential can see). It
never moves status: Azure RBAC is optional for this server, and a
deployment used only for Entra triage must not sit at degraded
forever because nobody granted it a Reader role. It runs last under its
own short budget (_ARM_PROBE_SECONDS) so an unresponsive ARM cannot
push this whole call past the client's tool-call timeout. The budget
bounds the request, not the first token acquisition (azure-identity is
synchronous; in azure-cli mode it shells out to az), which is the
same limit every tool here has.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden and does so: it states 'Read-only', explains how 'status' is derived from the two probe outcomes, documents the per-tenant call-budget/deadline trade-off, the one-hour Identity Protection cache, and that a configured-but-broken sites file caps status at degraded. It even explains why the ARM probe runs last under its own budget (tool-call timeout avoidance) — behavior an agent cannot infer from schema or annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
It is front-loaded with a clear one-line summary and organized by return key, but at roughly 450 words for a zero-parameter probe it is bloated with design rationale ('a fabricated diagnosis, since Graph plainly *is* reachable', 'azure-identity is synchronous') that does not help an agent decide or call correctly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
No output schema and no annotations exist, so the description must document returns — and it covers status semantics, per-tenant nesting, sites, identity_protection, home_countries and arm in detail. Gaps remain: the contents of the top-level 'service' and 'version' keys, and the shape of 'detail' messages, are never described.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Zero parameters, so the baseline of 4 applies; nothing in the schema needs elaboration beyond the environment variables (ENTRAADM_CONFIG, ENTRAADM_SITES_INI, ENTRAADM_DEADLINE, ENTRAADM_HOME_COUNTRIES) the description helpfully names as implicit inputs.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The first sentence names the specific verb and output ('Fleet-standard health probe: service/version/status plus two independent Graph probes'), so an agent knows exactly what it returns. It does not, however, distinguish itself from the sibling 'm365_service_health', which an agent could easily confuse with this server-side probe.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Usage is only implied: the probe's purpose (confirming Graph reachability, baseline permissions, optional licence/config availability) suggests calling it when diagnosing configuration or permission failures, but there is no explicit 'use this when' statement and no exclusion against m365_service_health or daily_brief.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_subscriptionsA
The Azure subscriptions this credential can see, as ARM lists them.
Azure Resource Manager in the DEFAULT tenant only, also when several tenants are
configured (ENTRAADM_CONFIG).
Read-only (GET /subscriptions; needs no RBAC beyond being able to see a
subscription at all). The discovery anchor for vm_backup_status and
vm_backup_policies: both accept a subscription id or display name from
this list. An empty list with auth working means no Reader role has
been granted anywhere yet. capped marks a listing cut short by the page
budget.
| Name | Required | Description | Default |
|---|---|---|---|
| max_pages | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden and does so: it declares read-only semantics, the underlying call (GET /subscriptions), the RBAC prerequisite (nothing beyond visibility), the tenant boundary (DEFAULT tenant only even with multiple tenants configured), and the meaning of the `capped` signal when results are truncated. That is unusually rich behavioral disclosure.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The core statement and scope constraint come first, followed by a tight sequence of safety, routing, diagnostics, and the `capped` note — every element earns its place. The parenthetical ``ENTRAADM_CONFIG`` aside adds a bit of noise for an agent that cannot set env vars mid-call.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
No annotations and no output schema, so the description must cover behavior and returns; it does cover read-only status, tenant scope, truncation, and the empty-result case. What it omits is the shape of a returned subscription (id vs display name fields), which matters because downstream tools accept either form.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Only one optional parameter exists and the schema documents none of it (0% coverage), so the description must compensate. It does partially by explaining the "page budget" concept behind `capped`, which an agent can connect to `max_pages`, but it never states what `max_pages` does, its default of null, or what value to pass to avoid truncation.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a concrete verb/resource ("The Azure subscriptions this credential can see, as ARM lists them") and scopes it to the default tenant. No sibling in the list enumerates subscriptions, and the description explicitly names the two tools this result feeds, so an agent can place it precisely.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Explicitly frames the tool as "the discovery anchor for vm_backup_status and vm_backup_policies," telling the agent to call this first when those tools need a subscription id or display name. It also supplies interpretation guidance (an empty list with working auth means no Reader role was granted) and the tenant scope caveat, which is exactly the when/when-not context needed.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
m365_service_healthA
Microsoft 365 service status per service, and the open incidents and advisories.
Two Graph reads (ServiceHealth.Read.All): healthOverviews (one row
per service with its current status) and the unresolved
serviceAnnouncement/issues, newest first. A sign-in failure spike reads
very differently while Entra or Exchange has an open incident, which is
why daily_brief carries this section too. Each section degrades on its
own ({"error", "missing_permission"}); summary is computed from
whatever came back. capped means either collection was cut short by
the page budget, so the counts are lower bounds. The message center
(messages) needs a different permission and is not read.
Args: max_pages: Page budget for each collection (default: ENTRAADM_MAX_PAGES_DEFAULT). tenant: Tenant to read: a [tenant.] section name or one of its domains (default: the default tenant).
| Name | Required | Description | Default |
|---|---|---|---|
| tenant | No | ||
| max_pages | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden and does: two Graph reads, required ServiceHealth.Read.All permission, ordering (newest first), independent per-section degradation with an {"error","missing_permission"} shape, summary computed from partial results, and capped as a lower-bound flag. It even discloses that message center is deliberately not read.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Front-loaded with the one-line purpose, then progressively richer detail; every clause (degradation, capped semantics, excluded messages endpoint) adds needed context. Backtick-heavy prose makes it slightly denser than necessary but nothing is filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
No output schema and no annotations, yet the description covers return structure (per-service rows, issues collection, summary, error sections), partial-failure semantics, and count caveats. An agent has everything it needs to call this and interpret the result.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 0%, so the description must compensate, and it does for both parameters: max_pages as a per-collection page budget with its default constant, and tenant as a config section name or one of its domains. The default value referencing an opaque ENTRAADM_MAX_PAGES_DEFAULT symbol is the only minor gap.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The opening sentence names a specific resource (Microsoft 365 service status / open incidents and advisories) and a clear scope. It is unmistakable next to read-only log and audit siblings such as signin_logs or directory_audits, and it explicitly ties its role to daily_brief.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It gives a concrete decision context — a sign-in failure spike reads differently when Entra or Exchange has an open incident — which tells the agent when this matters. It does not state exclusions or an explicit 'use X instead of Y' routing, so it stops short of a 5.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
signin_by_ipA
Every sign-in from one source IP: who got in from it, who was tried, and when.
The follow-up to a spray_suspects or shared_ips hit: Graph can
filter sign-ins on ipAddress server-side, so this is one cheap
query, not a log walk. users summarises the IP per account
(successes, failures, first/last seen, up to 50 accounts) over every row
fetched; events lists the newest top entries that match
result ("all" by default, or "success" / "failure"), each carrying
the account name and the same AADSTS annotation as signin_logs.
capped=true means the page budget or the deadline ran out before the
window was fully read; events_truncated=true means more matching
rows were read than top returns (the users summary still counts
them).
Read-only (AuditLog.Read.All application permission, or -- for azure-cli auth -- the Reports Reader directory role).
Args: ip: The source IPv4 or IPv6 address, exactly as the sign-in log shows it. hours: How far back to look, clamped to [1, 720] (30 days). result: "all" (default), "success", or "failure" -- which events to list. top: Maximum events to return, clamped to [1, 500]. max_pages: Page budget (default: ENTRAADM_MAX_PAGES_DEFAULT). tenant: Tenant to read: a [tenant.] section name or one of its domains (default: the default tenant).
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | ||
| top | No | ||
| hours | No | ||
| result | No | all | |
| tenant | No | ||
| max_pages | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations exist, so the description carries the full burden and does: it declares read-only behavior, names the required permission (AuditLog.Read.All) and the azure-cli alternative (Reports Reader role), and explains capped/events_truncated semantics including that the users summary still counts truncated rows.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Well front-loaded and organized into prose plus an Args block, with no filler sentences. The return-shape paragraph is dense and slightly long, but each clause (users, events, capped, events_truncated) conveys distinct information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
There is no output schema, so the description must explain returns, and it does in detail: per-account summary with success/failure/first/last seen and the 50-account cap, newest top events with AADSTS annotation, plus the two truncation flags. Nothing an agent needs to call or interpret this correctly is missing.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 0%, so the description must compensate, and it does — every parameter is documented with meaning, defaults, and clamping ranges (hours in [1,720], top in [1,500], result enum all/success/failure, tenant as config section or domain, max_pages budget).
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Opens with a specific verb+resource+scope: every sign-in from one source IP, with who succeeded, who was tried, and when. It also distinguishes itself from adjacent tools (spray_suspects, shared_ips, signin_logs) that an agent might otherwise pick.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Explicitly frames itself as the follow-up to a spray_suspects or shared_ips hit and notes it is a single server-side filtered query, not a log walk — strong 'when to use' guidance. It does not explicitly say when to prefer the sibling signin_logs instead, leaving one routing decision to inference.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
signin_failure_statsA
Tenant-wide sign-in failure aggregation -- the Entra ID counterpart to the RADIUS failure patrol.
Time-bounded (ENTRAADM_DEADLINE, default 45 s): on a wide window or a busy day the scan
stops early and capped=true marks the counts as a lower bound; narrow hours for a
full count.
Aggregates failed sign-ins across the whole tenant into four views: top
AADSTS error codes (with the same meaning annotations as
signin_logs), top failing users, top applications, and top source
IPs. spray_suspects flags any IP with failed sign-ins against 5 or
more distinct users -- Entra's smart lockout is per-account, so a
low-and-slow password spray from one IP across many accounts does not
trip it the way a brute force against one account does; this is the
observation a per-account view cannot make on its own. This mirrors the
KeyCloak-side spray detection this fleet already relies on; neither the
official Microsoft MCP Server for Enterprise nor Graph itself offers this
aggregation.
When ENTRAADM_SITES_INI names the tenant's own address ranges, IPs inside
them get site (and site_name) in top_ips, and suspects inside
them move from spray_suspects to internal_spray_suspects: a NAT
egress or a room of shared workstations fails for many users every day,
and would otherwise bury an outside source. Internal suspects are kept,
not dropped, because an internal host can be compromised too. sites
reports whether the file loaded; an invalid CIDR is reported in
sites.error while the valid ranges are still used, and a file that
cannot be read leaves every IP in spray_suspects.
Read-only (AuditLog.Read.All application permission, or -- for azure-cli
auth -- the Reports Reader directory role). Graph cannot filter sign-ins
on status/errorCode server-side, so this walks up to max_pages of the
full sign-in log for the window and aggregates client-side --
capped=true means the page budget ran out before the window was
fully scanned, so the counts below are a sample of the window, not a
census of it.
Args: hours: How far back to look, clamped to [1, 720] (30 days). max_pages: Page budget (default: ENTRAADM_MAX_PAGES_DEFAULT). tenant: Tenant to read: a [tenant.] section name or one of its domains (default: the default tenant).
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | ||
| tenant | No | ||
| max_pages | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden and does so: it discloses the read-only permission model (AuditLog.Read.All or Reports Reader), the ENTRAADM_DEADLINE cap and `capped=true` lower-bound semantics, the page-budget sampling behavior, and the fact that Graph cannot filter on status/errorCode server-side. Failure modes for the sites file (invalid CIDR still uses valid ranges, unreadable file demotes all IPs to `spray_suspects`) are also spelled out.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Purpose and the time-bound caveat are front-loaded, but the text is roughly 400 words for a three-parameter tool. The `capped=true` lower-bound/sample explanation appears twice, and the paragraph about RADIUS/KeyCloak parity and the official Microsoft MCP Server is vendor positioning rather than agent-relevant instruction.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
There is no output schema, yet the description fully describes the returned views (`top_ips`, `spray_suspects`, `internal_spray_suspects`, `sites`/`sites.error`) and what the spray flag means. Combined with permissions, deadline behavior and degradation paths, an agent has everything needed to call and interpret it.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 0%, so the description must compensate and does: `hours` is documented with its [1, 720] clamp, `max_pages` with its environment-variable default, and `tenant` with the accepted forms ([tenant.<name>] section or domain) and the default tenant fallback. Every parameter gains meaning not present in the bare schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Names a specific verb and resource — tenant-wide aggregation of failed sign-ins — and enumerates the four output views (AADSTS codes, failing users, apps, source IPs). Explicitly distinguishes itself from sibling `signin_logs` (which it references for error-code meanings) and from per-account/per-IP views, so an agent can route correctly without opening the schema.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Gives concrete operational guidance — narrow `hours` when the scan caps and you need a census rather than a sample, and the tool is positioned as the failure/spray counterpart to the success statistics and per-IP siblings. It lacks an explicit 'do not use this when…' exclusion (e.g. use `signin_logs` for individual event detail), which keeps it from a 5.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
signin_logsA
One user's recent sign-in events, AADSTS-annotated.
The most direct answer to "why can't this person log in": each entry's
error_code_meaning translates the raw AADSTS code (e.g. 50126 ->
"invalid credentials (wrong password)") so triage rarely needs a second
lookup. result filters client-side after the Graph fetch (Graph
cannot filter sign-ins on status/errorCode server-side): "failure" (the
default) keeps only failed attempts, "success" keeps only clean ones,
"all" keeps everything.
Because the filter is client-side, this walks pages until it has
collected top matching entries or exhausts max_pages -- a mostly-
successful user can otherwise mean paging through hundreds of rows to
find a handful of failures. capped=true means the page budget ran out
(or top was reached) before the whole window was scanned; a low match
count alongside capped=true is evidence of "no more found within the
budget", not "no more exist".
Read-only (AuditLog.Read.All application permission, or -- for azure-cli
auth -- the Reports Reader directory role). Entra ID P1 retains sign-in
logs for 30 days; hours beyond that returns an empty result, not an
error.
Args: user: The account's userPrincipalName. hours: How far back to look, clamped to [1, 720] (30 days). result: "failure" (default), "success", or "all". top: Maximum matching entries to return, clamped to [1, 500]. max_pages: Page budget for the client-side filter walk (default: ENTRAADM_MAX_PAGES_DEFAULT). tenant: Search this tenant instead of the one claiming the UPN's domain (section name, domain or tenant id): for a .onmicrosoft.com or #EXT# UPN, or a B2B guest's sign-ins in the host tenant.
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| user | Yes | ||
| hours | No | ||
| result | No | failure | |
| tenant | No | ||
| max_pages | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden and does so: read-only, required AuditLog.Read.All permission (or Reports Reader role for azure-cli), the 30-day P1 retention limit and the fact that out-of-range `hours` returns empty rather than erroring. It also discloses the non-obvious client-side filtering/paging behavior and the precise meaning of `capped=true` so a low match count isn't misread as 'no failures exist'.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Front-loaded with the diagnostic payoff before any mechanics, and every paragraph adds information an agent needs. Minor redundancy: the client-side filtering rationale is restated twice ('filters client-side after the Graph fetch' then 'Because the filter is client-side'), costing a sentence.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
No output schema exists, yet the description names the returned signals (`error_code_meaning`, `result`, `capped`) and explains each. Combined with permission requirements, retention limits and paging semantics, an agent has everything needed to call this correctly and interpret the response.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the Args section is the only documentation and it covers all six parameters with real meaning: `user` is a UPN, `hours` clamps to [1,720], `result` has three values with client-side filter semantics, `top` clamps to [1,500], `max_pages` defaults to an env var, and `tenant` explains the onmicrosoft.com/#EXT#/B2B-guest cases. This substantially exceeds what the bare schema conveys.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb+resource+scope: 'One user's recent sign-in events, AADSTS-annotated', and frames the diagnostic question it answers ('why can't this person log in'). The explicit 'One user's' scoping separates it from the aggregate siblings signin_failure_stats / signin_success_stats / signin_by_ip without needing to name them.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
'The most direct answer to "why can't this person log in"' gives clear situational context for when to reach for this tool, and the result/top semantics imply the exploratory-vs-targeted use cases. It stops short of naming when NOT to use it (e.g. fleet-wide failure counts belong in signin_failure_stats), so no explicit exclusion.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
signin_success_statsA
Tenant-wide successful sign-in aggregation by source IP -- the view that finds a breach.
signin_failure_stats shows who is being attacked; this shows whether
anyone got in. The breach signature is one source IP signing in
successfully as several different accounts, most often over a legacy
protocol (clientAppUsed such as "Authenticated SMTP" or "IMAP4",
which carry no MFA). shared_ips lists the IPs with successes for
min_distinct_users or more distinct accounts, most-shared first (up
to 50 IPs, shared_ips_capped when more qualified; account names up
to 25 per IP), with the client apps and the countries seen.
legacy_auth_users lists the accounts that succeeded over a legacy
protocol at all, with how many IPs and countries they came from.
A campus NAT, a VDI farm or a shared proxy also puts many accounts
behind one IP, so a shared IP is a lead, not a verdict: the caller
excludes its own egress ranges and reads the client apps and countries
before calling anything a breach. Graph cannot filter sign-ins on
status/errorCode server-side, so like signin_failure_stats this
walks the sign-in log for the window and aggregates client-side. The
walk covers interactive sign-ins only (Graph's default listing): every
legacy-protocol authentication is logged as interactive, so none is
missed, but non-interactive token refreshes are not counted;
capped=true means the page budget or the deadline (ENTRAADM_DEADLINE,
default 45 s) ran out first and the counts are a lower bound -- narrow
hours for a full count.
Read-only (AuditLog.Read.All application permission, or -- for azure-cli auth -- the Reports Reader directory role).
Args:
hours: How far back to look, clamped to [1, 720] (30 days).
max_pages: Page budget (default: ENTRAADM_MAX_PAGES_DEFAULT).
min_distinct_users: Distinct accounts an IP needs to appear in
shared_ips (default 2, clamped to >= 2).
tenant: Tenant to read: a [tenant.] section name or one of its domains (default: the default tenant).
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | ||
| tenant | No | ||
| max_pages | No | ||
| min_distinct_users | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full behavioral burden and does so thoroughly: read-only access, required permissions, client-side aggregation, interactive-only sign-ins, capped results as lower bounds, and deadline/page-budget behavior are all disclosed.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is long but front-loaded and appropriately sized for a complex aggregation tool. Each paragraph adds operational meaning, and the Args section compensates for the schema's lack of descriptions rather than repeating structured data.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
There is no output schema, but the description explains the returned views, caps, account limits, and caveats thoroughly enough for an agent to interpret results. It also covers permissions and aggregation limitations that are critical for correct use.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Although schema description coverage is 0%, the Args section fully explains each parameter: hours is clamped to [1, 720], max_pages uses an environment default, min_distinct_users defaults to 2 and is clamped to >= 2, and tenant accepts a tenant section name or domain.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb and resource: tenant-wide successful sign-in aggregation by source IP. It explicitly distinguishes this tool from its sibling signin_failure_stats, making the intended view clear without opening either schema.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It names the alternative and the condition that selects it: signin_failure_stats shows who is attacked, while this tool shows whether anyone got in. It also warns that shared IPs from NAT, VDI, or proxies are leads rather than verdicts, which is explicit usage guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
vm_activityA
What happened to an Azure VM in a time window: operations people ran, and events Azure raised.
Azure Resource Manager in the DEFAULT tenant only, also when several tenants are
configured (ENTRAADM_CONFIG).
Answers "did someone restart this VM, or did Azure?" from the Azure activity
log of the VM's subscription. Read-only; needs the Reader role on the
subscription. Two reads: the VM's resource group (server-side filter, so a
busy subscription cannot crowd the VM's own events out of the page budget)
feeds health and vm_operations; the whole subscription feeds the rest.
health: Resource Health events of the VM (causePlatformInitiated= Azure, e.g.Redeploying due to host failure;UserInitiated= an operation on the VM, orReboot initiated from inside the machinefor a restart from the guest OS).vm_operations: Administrative events on the VM and its sub-resources (restart, deallocate, redeploy, extension changes), withcaller(a user principal name or an application id). One operation usually logs several events (Started, Accepted, Succeeded) sharing acorrelation_id.other_operations: Administrative events on any other resource of the subscription (countof events,operations= distinct correlation ids,items= the newest 50). Zero here and invm_operationsmeans nobody operated the subscription through Azure Resource Manager in the window; it says nothing about actions inside the guest OS.service_health: Azure incidents and planned maintenance announced to the subscription.other_categories: counts of the remaining categories (Alert, Policy, other resources' health events, ...).
vm is the VM name, matched case-insensitively across the
subscriptions this credential can see; narrow it with subscription
(id or display name from list_subscriptions) or resource_group
when the name is not unique (ambiguous lists the candidates). A
single match found while some subscription could not be listed
completely is not taken as unique: it comes back as candidates with
search_complete: false, to be confirmed by naming its subscription.
Naming the subscription also keeps the search short: without it every
visible subscription is listed, and the search may use at most half of
the call's time budget.
The window is start..end (ISO timestamps with an offset, e.g.
2026-10-21T21:00:00+09:00; seconds may be omitted), or the hours
before end (default 24; end defaults to now); at most 168 hours,
within the 90 days the activity log keeps. Times in the result are UTC as
Azure returns them. capped marks a read cut short by the page or time
budget (capped_reads says which): then an empty section is not proof
that nothing happened.
| Name | Required | Description | Default |
|---|---|---|---|
| vm | Yes | ||
| end | No | ||
| hours | No | ||
| start | No | ||
| max_pages | No | ||
| subscription | No | ||
| resource_group | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden and does so: states it is read-only, requires the Reader role, operates only in the DEFAULT tenant even when several are configured, and explains the dual-read strategy, page/time budgets, the 'capped'/'capped_reads' markers, and the critical caveat that an empty section is not proof nothing happened.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The headline answers are front-loaded and the bulleted breakdown of return sections is easy to scan. It is long and the tenant/search-completeness discussion is dense, but nearly every sentence adds operational value rather than repeating the schema.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
No output schema exists, yet the description documents each returned section (health causes, vm_operations with caller and correlation_id, other_operations counts and truncation to 50, service_health, other_categories) plus the truncation flags. An agent has enough to call the tool and interpret results correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
At 0% schema coverage this description must compensate, and it largely does: explains vm name matching (case-insensitive, ambiguity via 'ambiguous'/'candidates'/'search_complete'), subscription and resource_group narrowing, the start/end/hours relationship with defaults, the 168-hour/90-day limits, and ISO offset format. The one gap is max_pages, which is never named or explained despite the repeated 'page budget' references.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Opens with a specific verb+resource+scope: 'What happened to an Azure VM in a time window: operations people ran, and events Azure raised.' It is clearly distinguishable from siblings like vm_backup_status or health_check, and the 'did someone restart this VM, or did Azure?' line pins the intent down further.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Gives a concrete scenario ('did someone restart this VM, or did Azure?') and tells the agent to use list_subscriptions to source the subscription identifier, plus when to add subscription/resource_group. It does not explicitly say when to prefer a sibling tool instead, which keeps it below a 5.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
vm_backup_policiesA
Schedule and retention of the Azure VM backup policies in each Recovery Services vault.
Azure Resource Manager in the DEFAULT tenant only, also when several tenants are
configured (ENTRAADM_CONFIG).
Read-only; needs the Reader role on the subscription. Per policy:
policy_type (V1 = SimpleSchedulePolicy, V2 =
SimpleSchedulePolicyV2 with an hourly / daily / weekly schedule),
schedule (frequency, run times in UTC, weekdays, or the hourly window),
retention (LongTermRetentionPolicy: daily / weekly / monthly /
yearly blocks with their day selection and duration), instant_rp_days,
timezone and protected_item_count (ARM's own count). A schedule or
retention type this server does not know is returned as
{"type": <name>, "unparsed": true}, never dropped.
subscription is an id or display name from list_subscriptions
(None = every visible subscription); an unknown or ambiguous name
returns found: false. Coverage flags as in vm_backup_status:
skipped_vaults per subscription, skipped subscriptions when the
budget ran out, capped overall.
| Name | Required | Description | Default |
|---|---|---|---|
| max_pages | No | ||
| subscription | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full behavioral burden and does: it declares read-only, names the required Reader role, pins tenant scope, defines failure modes (unknown/ambiguous subscription → `found: false`), and guarantees no policy type is silently dropped (`{"type": <name>, "unparsed": true}`). It also explains the truncation model (skipped_vaults per subscription, skipped subscriptions on budget exhaustion, capped overall), which is exactly the kind of behavior an agent cannot infer elsewhere.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Front-loads purpose, then scope/permissions, then the per-field contract, then parameter and truncation semantics — a sensible reading order. It is dense and somewhat long, and the enumerated field glosses (V1/V2, retention blocks) are heavy, but each earns its place as the only documentation of the return shape given there is no output schema.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
No output schema exists, so the description must define the return payload, and it does at the field level including the unparsed-type fallback and ARM's own protected_item_count. The only real gap is `max_pages`, whose paging behavior is gestured at ('budget', 'capped') rather than stated, which matters for an agent deciding how many calls to make.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 0%, so the description must compensate, and it does for `subscription`: accepted forms, the None default's meaning, and the unknown/ambiguous resolution behavior. `max_pages` is never named directly — its effect is only inferable from the 'budget ran out' / `capped` language, leaving one of two parameters under-specified.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States the resource precisely (Azure VM backup policies per Recovery Services vault) and what it exposes (schedule and retention), and it implicitly distinguishes itself from the sibling vm_backup_status by deferring to it for coverage-flag semantics. It never uses an explicit retrieval verb, but 'Read-only' plus the per-policy field list makes the operation unambiguous.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Gives solid operating context: DEFAULT tenant only even with multiple tenants in ENTRAADM_CONFIG, read-only, Reader role on the subscription, and how to pass `subscription` (id or display name from list_subscriptions, None = all). What's missing is an explicit statement of when to reach for this tool versus vm_backup_status or vm_activity — the routing is only implied by the shared coverage-flag vocabulary.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
vm_backup_statusA
Which Azure VMs are backed up by Azure Backup, and whether the last backup succeeded.
Azure Resource Manager in the DEFAULT tenant only, also when several tenants are
configured (ENTRAADM_CONFIG).
Joins every VM of a subscription (Microsoft.Compute/virtualMachines)
with the Azure-VM protected items of its Recovery Services vaults, on the
VM's ARM id (case-insensitively; ARM casing differs between the two
services). Read-only; needs the Reader role on the subscription.
Per VM:
protected:truewhen a protected item exists withprotectionStateProtectedorIRPending(first backup not done yet,notesays so);falsewhen there is none, or it isProtectionStopped/ProtectionPaused/ProtectionError(data may be retained, backups are not running -- the state is shown);null(unknown) when no item was found but the vault scan was incomplete (capped, a skipped vault, an unreadable or unreached subscription -- in the global join, any subscription's) -- a partial scan never produces a false "unprotected".backup_ok:trueforlastBackupStatusCompleted/CompletedWithWarnings,falseforFailed,nullbefore any backup ran or while one is running (InProgress,Warning, an unknown value). An item whoseprotectionStateis missing isprotected: nullwith a note. When two vaults hold an item for one VM, the one still backing up wins (duplicate_itemscounts them).stale: no recovery point (lastRecoveryPoint, the proof of a successful backup) withinstale_hours. The default 36 h suits daily policies; raise it for weekly ones (policy_nameis in the row).
subscription is an id or display name from list_subscriptions;
None scans every visible subscription and joins globally, so a VM
backed up to a vault in another subscription is matched. With one
subscription named, only its vaults are scanned (coverage says so).
An unknown or ambiguous name returns found: false.
orphans are protected items whose VM no longer exists (backup data
retained for a deleted VM), reported only when that VM's subscription was
listed completely. One subscription's permission error is reported on its
own entry; the others still return. When the wall-clock budget runs out,
the remaining subscriptions are listed under skipped and capped is
set.
| Name | Required | Description | Default |
|---|---|---|---|
| max_pages | No | ||
| stale_hours | No | ||
| subscription | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full disclosure burden and does so: read-only, requires the Reader role on the subscription, DEFAULT tenant even when multiple are configured, and a wall-clock budget that can leave subscriptions in 'skipped' with 'capped' set. It also documents failure semantics that would otherwise cause silent misinterpretation — a partial scan never yields a false 'unprotected', and a permission error on one subscription is reported per-entry while others still return.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The purpose is front-loaded in the first sentence and the remaining text is dense rather than padded — most of it is per-field return semantics that are necessary because no output schema exists. It is nonetheless long for a 3-parameter tool, with deeply nested parentheticals that slow scanning.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given no annotations and no output schema, the description needs to explain both behavior and return shape, and it does: protected/backup_ok/stale semantics, duplicate_items and orphan handling, and partial-coverage signaling. The only meaningful omission is what max_pages controls and how it interacts with the 'capped' outcome.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 0%, so the description must compensate. It fully specifies 'subscription' (id or display name from list_subscriptions; None scans all and joins globally) and 'stale_hours' (default 36h suits daily policies, raise for weekly ones, policy_name is in the row). 'max_pages' is left completely undefined, which is a real gap even though the wall-clock/capped behavior is described.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Opens with a specific verb+resource statement ('Which Azure VMs are backed up by Azure Backup, and whether the last backup succeeded') and immediately scopes it to the default tenant. This is clearly distinguishable from the sibling vm_backup_policies (which would concern policy definitions) without opening either schema.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Gives clear operating conditions: already-backed-up-by-Azure-Backup, DEFAULT tenant only, and points to list_subscriptions as the source of valid subscription values. It explains the None-vs-named-subscription semantics and the unknown/ambiguous-name behavior, but never states when an agent should prefer vm_backup_policies or vm_activity instead.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
2 tool updates
v1.10.1- Added
audit_log_search_result - Added
audit_log_search_start
9 tool updates
v1.8.0- Added
compromise_suspects - Changed
directory_audits1 field changed- added
Input schema / properties / tenantAdded value: +{ + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Tenant" +}
- Changed
get_user1 field changed- added
Input schema / properties / tenantAdded value: +{ + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Tenant" +}
- Changed
get_user_auth_methods1 field changed- added
Input schema / properties / tenantAdded value: +{ + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Tenant" +}
- Changed
m365_service_health1 field changed- added
Input schema / properties / tenantAdded value: +{ + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Tenant" +}
- Changed
signin_by_ip1 field changed- added
Input schema / properties / tenantAdded value: +{ + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Tenant" +}
- Changed
signin_failure_stats1 field changed- added
Input schema / properties / tenantAdded value: +{ + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Tenant" +}
- Changed
signin_logs1 field changed- added
Input schema / properties / tenantAdded value: +{ + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Tenant" +}
- Changed
signin_success_stats1 field changed- added
Input schema / properties / tenantAdded value: +{ + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Tenant" +}
1 tool update
v1.4.0- Added
vm_activity
4 tool updates
v1.3.0- Added
list_subscriptions - Added
m365_service_health - Added
vm_backup_policies - Added
vm_backup_status
3 tool updates
v1.1.0- Changed
directory_audits1 field changed- added
Input schema / properties / categoryAdded value: +{ + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Category" +}
- Added
signin_by_ip - Added
signin_success_stats
7 tool updates
v0.1.0- First observed
daily_brief - First observed
directory_audits - First observed
get_user - First observed
get_user_auth_methods - First observed
health_check - First observed
signin_failure_stats - First observed
signin_logs
TDQS
Scored across 17 tools
Most tools have clearly distinct scopes: per-user (get_user, signin_logs, get_user_auth_methods), tenant-wide aggregation (signin_failure_stats, signin_success_stats), and Azure VM tools (vm_backup_status, vm_backup_policies, vm_activity, list_subscriptions). The soft spots are the derived-signal tools — compromise_suspects overlaps conceptually with signin_failure_stats' spray_suspects and signin_success_stats' shared_ips, and daily_brief re-packages three other tools — but descriptions explicitly cross-reference each other, so an agent can tell them apart.
All names are snake_case and domain-readable, with a coherent resource-oriented vocabulary (signin_*, vm_*, audit_log_*). Minor deviation: some tools use a verb prefix (get_user, list_subscriptions), others are bare nouns (signin_logs, directory_audits, daily_brief), and audit_log_search_start/_result use a suffix-style start/poll pair rather than a verb, so the convention is not uniform.
17 tools for a multi-domain server (Entra sign-in triage, directory audit, user posture, Azure VM backup/activity, M365 health) is reasonable and each surface pulls its weight. It is slightly at the heavy end, and daily_brief is a convenience wrapper over three existing tools, so a small amount of consolidation is possible without losing capability.
Coverage is broad for a read-only triage server: identity/lifecycle, auth-method posture, sign-in success and failure analysis, compromise detection, directory audits, asynchronous Purview audit search with polling, service health, and Azure VM backup/activity with a subscription-discovery anchor. The notable gap is response actions — no tool to revoke sessions, disable an account, or force a password reset — which the descriptions acknowledge as manual interventions, leaving the 'contain' half of the workflow outside the tool surface.
Maintenance
Related MCP Connectors
Read-only access to Auralogs production logs: search logs, inspect errors, review AI analyses.
Read-only access to a Lumin project's logs, metrics, uptime checks, alerts and infrastructure.
Read-only finance and operations controls for AI agents with evidence and safe next actions.
Read-only MCP access to sessions, funnels, campaigns, errors, live visitors, and anomalies.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceProvides secure access to Microsoft Entra ID (Azure AD) resources including users, devices, and applications through Microsoft Graph API. Enables querying organizational data with comprehensive audit logging to Azure Blob Storage.-
- AlicenseNot gradedqualityDmaintenanceProvides read-only access to Microsoft 365 services including SharePoint, OneDrive, Outlook, Teams, and Calendar through the Microsoft Graph API, enabling users to search, browse, and retrieve content across their M365 suite.2MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to query Microsoft Entra data using natural language, converting requests into Microsoft Graph API calls for read-only enterprise IT scenarios.61CC BY-4.0
- AlicenseAqualityDmaintenanceEnables auditing and monitoring of Microsoft Entra ID security posture, Conditional Access policies, and Zero Trust alignment via Microsoft Graph API.5MIT