Skip to main content
Glama
Sultan-zd

Entra ID SecOps MCP Server

by Sultan-zd

Entra ID SecOps MCP Server

CI Python MCP Licence

Microsoft Entra ID のセキュリティログを、AIエージェント(Claude Desktop、Cursor、その他のMCPクライアント)が実行可能なツールとして公開する MCP サーバーです。

目的: アナリストが自然言語で質問(「このアカウントがなぜログインできなくなったのか?」)を投げかけ、テナントの実際のデータに基づく回答を数秒で得られるようにすることです。

📖 インストールとテストのガイド — サーバーを起動する3つの方法をステップバイステップで解説。 🔍 技術ブリーフ — 市場調査と安全な公開方法。

設計思想

Microsoft Graph の生のレスポンスには、イベントあたり約60のフィールドが含まれます。このサーバーは積極的な切り詰めを適用し、セキュリティ指標はわずか12個ほどしかモデルに到達しません。これはコスト最適化(トークン数で約35分の1)であると同時に、セキュリティ対策でもあります。リストにないフィールド(攻撃者が制御できるものも含む)は決してコンテキストに入り込まないためです。

集計(失敗回数、異なるIP、疑わしいパターン)はPython で計算され、モデルによる推論ではありません。

Related MCP server: Microsoft MCP Server for Enterprise

ツール

ツール

説明

Graph のアクセス許可

ライセンス

get_user_context

アカウントの情報: 役職、グループ、保有ロール。インシデントの重大度を判定します。

Directory.Read.All

—

get_user_signins

UPN の最近のサインイン。要約と疑わしいパターン付き。

AuditLog.Read.All

P1

get_risky_users

Identity Protection によってリスクありと報告されたアカウント。

IdentityRiskyUser.Read.All

P2

get_risk_detections

個別の検出: アカウントがリスクとされる理由。

IdentityRiskEvent.Read.All

P2

get_directory_audits

管理操作の変更。永続化の痕跡を通知します。

AuditLog.Read.All

—

get_conditional_access_policies

アクティブなポリシーとカバレッジの欠陥。

Policy.Read.All

—

すべてのツールは読み取り専用です。サーバーがテナントを変更することは一切ありません。

推奨調査手順

get_user_context     le compte est-il privilégié ? l'incident est-il grave ?
      ↓
get_user_signins     que s'est-il passé sur l'authentification ?
      ↓
get_risk_detections  qu'a détecté Identity Protection, et pourquoi ?
      ↓
get_directory_audits l'attaquant a-t-il modifié quelque chose une fois entré ?

この一連の流れはサーバーの instructions にも記載されており、MCP クライアントがモデルに渡します。

クイックスタート(Azure テナントなし)

fixture モードはデモ用インシデントを再生するもので、テナント、ライセンス、シークレットは一切不要です。

python -m venv venv
venv/Scripts/activate          # Windows ; sur Linux/macOS : source venv/bin/activate
pip install -e ".[dev]"

cp .env.example .env           # ENTRA_DATA_SOURCE=fixture est déjà la valeur par défaut
python -m entra_secops_mcp

実テナントへの接続

  1. Entra ポータルで アプリの登録 を作成します。

  2. 上記の表のアプリケーション許可を追加し、管理者の同意を付与します。

  3. クライアントシークレットを生成します。

  4. .env を設定します:

AZURE_TENANT_ID=...
AZURE_CLIENT_ID=...
AZURE_CLIENT_SECRET=...
ENTRA_DATA_SOURCE=graph

必要なライセンス。 API経由でサインインログにアクセスするには Entra ID P1 ライセンスが必要で、Identity Protection ツールには P2 が必要です。これらがないと Graph は 403 を返します。他のツールは有料ライセンスなしで動作します。開始前にテナントのライセンスを確認してください。これが数日を無駄にする典型的な障害です。

セキュリティ

  • コードにも Docker イメージにもシークレットは存在しません。起動時に --env-file 経由で注入されます。

  • .env は .gitignore により git の管理外です。リポジトリにプッシュされたシークレットは、ファイルから削除するだけでなく、Azure で失効させなければなりません。

  • ログは stderr に送られます。stdio トランスポートでは、stdout が JSON-RPC プロトコルを運ぶため、余分なバイトは一切許されません。

設定

すべての変数は .env.example に文書化されています。

Docker

docker build -t entra-secops-mcp .
docker run -i --rm --env-file .env entra-secops-mcp

最終イメージ: 277 MB、マルチステージビルド、非 root ユーザー(uid=1000)で実行、レイヤー内にシークレットなし。

-i は標準入力を開いたままにします。MCP プロトコルはここを通ります。-t は付けないでください。疑似端末がカラーコードを注入し、JSON フレームを壊します。

開発

pytest              # 81 tests
ruff check src tests
mypy src            # mode strict
pre-commit install  # contrôles avant chaque commit
python demo.py      # investigation de démonstration

ステータス

ツール

6、すべて読み取り専用

テスト

81、Azure テナント不要

型チェック

mypy --strict 警告なし

MCP プロトコル

2026-07-28 (SDK mcp 2.0)

コンテナ

実 MCP クライアントで検証済み: 起動 2.4 秒、ツール呼び出し ~110 ms

ライセンス

MIT.

Available Tools

6 tools
get_conditional_access_policiesA
Read-onlyIdempotent

Liste les politiques d'accès conditionnel du tenant, avec leur état réel d'application.

À utiliser pour expliquer pourquoi une connexion a été bloquée (code 53003), ou pour repérer une faille de couverture : politique désactivée, politique en mode audit seul, ou exclusion qui permet à un compte de contourner un contrôle.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoNombre maximum de politiques. Défaut 25, borné à 100.

Output Schema

ParametersJSON Schema
NameRequiredDescription
notesNoObservations calculées.
disabledYesPolitiques désactivées.
enforcedYesPolitiques réellement appliquées.
policiesYesPolitiques du tenant.
report_onlyYesPolitiques en mode audit, donc sans effet de blocage.
total_policiesYesNombre de politiques retournées.

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and non-destructive behavior. The description adds useful behavioral context by promising the 'état réel d'application' and listing the specific coverage-failure states it can reveal. No contradiction with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences: the first announces the action and scope, the second gives concrete use cases. No filler or redundant restatement of schema information.

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

Completeness5/5

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

The presence of an output schema covers return structure, the single parameter is fully documented in the schema, and annotations cover behavior. The description supplies the missing contextual layer: why the agent would need this tool and what insights it provides.

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

Parameters3/5

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

Schema description coverage is 100% and the single optional limit parameter already has an explicit description with default and maximum. The tool description adds no new param detail, so the default baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb ('Liste') and resource ('politiques d'accès conditionnel du tenant') and adds a distinguishing property ('état réel d'application'). This clearly separates it from the more user-centric sibling tools such as get_user_signins or get_risk_detections.

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

Usage Guidelines4/5

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

The description explicitly says when to use it: to explain a blocked connection with error code 53003 or to detect coverage gaps caused by disabled policies, audit-only mode, or exclusions. It does not explicitly name alternatives or say when not to use it, but the use cases are strong and concrete.

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

get_directory_auditsA
Read-onlyIdempotent

Récupère les modifications administratives récentes de l'annuaire, afin d'identifier une dérive de configuration ou un changement non autorisé.

Signale automatiquement les opérations à valeur de persistance ou d'élévation de privilèges : attribution de rôle, ajout d'un secret applicatif, enrôlement d'une méthode MFA, modification d'une politique d'accès conditionnel.

À utiliser après avoir constaté une connexion suspecte, pour déterminer ce que l'attaquant a fait une fois entré.

ParametersJSON Schema
NameRequiredDescriptionDefault
hoursNoFenêtre de recherche en heures. Défaut 24, borné à 168.
limitNoNombre maximum d'entrées. Défaut 25, borné à 100.
initiated_byNoUPN de l'auteur des modifications, pour ne retenir que ses actions. Omettre pour balayer toutes les modifications du tenant.

Output Schema

ParametersJSON Schema
NameRequiredDescription
notesNoObservations calculées.
entriesYesEntrées, de la plus récente à la plus ancienne.
failuresYesOpérations en échec.
window_hoursYesFenêtre temporelle appliquée, en heures.
total_entriesYesNombre d'entrées retournées.
sensitive_entriesYesEntrées jugées sensibles du point de vue de la sécurité.
distinct_initiatorsYesAuteurs distincts observés.

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare the tool safe (readOnlyHint, idempotentHint, destructiveHint=false). The description adds meaningful behavioral context—that the tool automatically flags persistence or privilege-escalation operations such as role assignments, app secret additions, MFA enrollment, and conditional access changes. No contradiction with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact and front-loaded: the first sentence states the core action and purpose, the second adds high-value behavioral specifics, and the third gives usage guidance. Every sentence earns its place with no redundancy or filler.

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

Completeness5/5

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

For a tool with only three optional parameters, a rich annotation set, and an output schema, the description is complete. It covers what the tool does, what it highlights, and when to use it. Nothing critical is missing for an agent to select and invoke it correctly.

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

Parameters3/5

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

Schema description coverage is 100%, so the input schema already documents hours, limit, and initiated_by with defaults and bounds. The description does not add further parameter-level meaning, which matches the baseline of 3 for high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Récupère les modifications administratives récentes de l'annuaire'. It also states the investigative purpose (identify configuration drift or unauthorized change), which clearly distinguishes it from sibling tools that focus on user context, sign-ins, or risk detections.

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

Usage Guidelines4/5

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

The final sentence gives an explicit trigger condition: 'À utiliser après avoir constaté une connexion suspecte, pour déterminer ce que l'attaquant a fait une fois entré.' This provides clear context for when to invoke the tool. However, it does not explicitly name alternatives or state when not to use it, 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.

get_risk_detectionsA
Read-onlyIdempotent

Récupère les détections de risque unitaires : identifiants divulgués, IP anonymisée, voyage impossible, pulvérisation de mots de passe.

C'est l'outil qui explique POURQUOI un compte est signalé à risque, là où get_risky_users se contente de dire QUE le compte l'est.

Nécessite une licence Entra ID P2.

ParametersJSON Schema
NameRequiredDescriptionDefault
upnNoUPN à cibler. Omettre pour obtenir les détections de tout le tenant.
hoursNoFenêtre de recherche en heures. Défaut 24, borné à 168.
limitNoNombre maximum de détections. Défaut 25, borné à 100.

Output Schema

ParametersJSON Schema
NameRequiredDescription
notesNoObservations calculées.
detectionsYesDétections, de la plus récente à la plus ancienne.
distinct_typesYesTypes de détection distincts observés.
distinct_usersYesUPN distincts concernés.
total_detectionsYesNombre de détections retournées.

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive behavior, so the bar is lower. The description adds valuable context beyond annotations by listing risk detection categories and the Entra ID P2 license requirement. It does not over-explain but gives meaningful operational context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, each earning its place: what the tool returns, how it differs from the sibling, and a hard prerequisite. The content is front-loaded and there is no filler or redundant restatement of the schema.

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

Completeness5/5

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

Given the rich annotations, full parameter documentation, and output schema, the description covers everything an agent needs: purpose, scope, alternative routing, and licensing. There are no critical gaps for invoking this tool correctly.

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

Parameters3/5

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

Schema description coverage is 100%, with each parameter already having a clear description and defaults. The tool description does not add parameter-level meaning, but it does not need to; the schema carries the full burden. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb ('Récupère') and a precise resource ('détections de risque unitaires'), and lists concrete examples (identifiants divulgués, IP anonymisée, voyage impossible, pulvérisation de mots de passe). It also explicitly differentiates itself from get_risky_users by explaining WHY versus THAT, making the tool's purpose unmistakable.

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

Usage Guidelines5/5

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

It directly positions the tool against get_risky_users: use this one to understand the reason behind a risk flag, while get_risky_users only indicates the flag exists. It also states a key prerequisite, 'Nécessite une licence Entra ID P2', giving the agent an explicit condition for use.

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

get_risky_usersA
Read-onlyIdempotent

Liste les comptes signalés à risque par Entra Identity Protection, du plus risqué au moins risqué.

À utiliser pour obtenir une vue d'ensemble de l'exposition du tenant, ou pour confirmer qu'un compte précis est bien considéré comme compromis.

Nécessite une licence Entra ID P2.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoNombre maximum de comptes retournés. Défaut 25, borné à 100.
only_activeNoSi vrai (défaut), ne retourne que les comptes encore à risque (atRisk, confirmedCompromised) et écarte ceux déjà remédiés ou classés.

Output Schema

ParametersJSON Schema
NameRequiredDescription
notesNoObservations calculées.
usersYesComptes, du plus risqué au moins risqué.
high_riskYesComptes au niveau de risque « high ».
active_riskYesComptes encore à risque (atRisk ou confirmedCompromised).
medium_riskYesComptes au niveau de risque « medium ».
total_usersYesNombre de comptes retournés.

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, and non-destructive behavior. The description adds useful behavioral context: a required Entra ID P2 license, the risk-ordering behavior, and the scope of accounts returned. No contradiction with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact and front-loaded: main action in the first sentence, use cases in the second, and a prerequisite in the third. Every sentence earns its place with no redundancy.

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

Completeness5/5

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

Given the simple two-parameter read-only tool, full schema coverage, and an output schema, the description is complete enough. It covers purpose, ordering, use cases, and licensing without needing to duplicate schema information.

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

Parameters3/5

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

Schema description coverage is 100%; both parameters are already well documented in the schema, including defaults and allowed range. The description does not add additional parameter-level meaning beyond the schema, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool lists accounts flagged as risky by Entra Identity Protection, sorted from most to least risky. It is specific about the resource and action, though it does not explicitly name sibling tools for differentiation.

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

Usage Guidelines4/5

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

The description explicitly says when to use it: to get an overview of tenant exposure or to confirm a specific account is considered compromised. It provides clear usage context, but does not mention exclusions or alternative sibling tools.

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

get_user_contextA
Read-onlyIdempotent

Récupère la fiche d'identité d'un compte : poste, département, état, groupes d'appartenance et rôles d'annuaire détenus.

C'est l'outil qui détermine la GRAVITÉ d'un incident. Une connexion suspecte sur un compte sans privilège et sur un compte administrateur global appellent des réponses très différentes.

À appeler systématiquement avant de conclure sur un incident.

ParametersJSON Schema
NameRequiredDescriptionDefault
upnYesUser Principal Name complet, par exemple « alice@contoso.com ».

Output Schema

ParametersJSON Schema
NameRequiredDescription
notesNoObservations calculées.
groupsNoGroupes d'appartenance.
createdNoDate de création du compte.
job_titleNoIntitulé de poste.
object_idYesIdentifiant d'objet Entra.
user_typeNoMember ou Guest.
departmentNoDépartement.
display_nameNoNom affiché.
is_privilegedYesLe compte détient-il au moins un rôle à privilèges ?
account_enabledNoLe compte est-il actif ?
directory_rolesNoRôles d'annuaire détenus.
privileged_rolesNoSous-ensemble des rôles à privilèges élevés.
user_principal_nameYesUPN du compte.

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint false, so the safety profile is covered. The description adds the context that this tool is authoritative for severity and that it returns identity attributes, but it doesn't disclose additional behavioral details such as staleness, data-source scope, or potential edge cases. With annotations handling the core safety traits, this is adequate but not rich.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the action and resource, then adds two purposeful sentences about severity and systematic use. It is concise and every sentence contributes meaningful guidance. The only minor issue is that the severity phrasing is slightly redundant with the usage instruction, but this is not wasteful.

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

Completeness5/5

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

For a single-parameter tool with a rich output schema and strong annotations, the description is complete: it explains what the tool returns, why it matters, and exactly when to invoke it. Nothing essential is missing for an agent to select and call it correctly.

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

Parameters3/5

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

Schema description coverage is 100%, and the upn parameter already has a clear explanation with an example. The description adds no extra parameter semantics, but the baseline of 3 applies because the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: 'Récupère la fiche d'identité d'un compte' and enumerates the exact fields returned (poste, département, état, groupes, rôles). It also distinguishes itself from siblings by framing the tool as the one that determines incident severity, so an agent can clearly tell it apart from sign-in or risk-detection tools.

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

Usage Guidelines4/5

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

The description gives strong usage direction: it should be called 'systématiquement avant de conclure sur un incident' and explains why severity depends on account privileges. It lacks explicit when-not-to-use guidance or named alternativatives, so it doesn't quite reach a 5, but the context is clear.

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

get_user_signinsA
Read-onlyIdempotent

Récupère les connexions récentes d'un utilisateur pour investiguer un blocage d'authentification, une anomalie géographique ou une compromission.

Retourne les événements réduits à leurs indicateurs de sécurité, plus une synthèse chiffrée (nombre d'échecs, IP distinctes, observations calculées).

Args: upn: User Principal Name complet, par exemple « alice@contoso.com ». hours: Fenêtre de recherche en heures. Défaut 24, maximum 168 (7 jours). limit: Nombre maximum d'événements retournés. Défaut 25, maximum 100.

ParametersJSON Schema
NameRequiredDescriptionDefault
upnYesUser Principal Name complet, par exemple « alice@contoso.com ».
hoursNoFenêtre de recherche en heures. Défaut 24, borné à 168 (7 jours).
limitNoNombre maximum d'événements retournés. Défaut 25, borné à 100.

Output Schema

ParametersJSON Schema
NameRequiredDescription
upnYesUPN interrogé.
notesNoObservations calculées automatiquement, à vérifier par l'analyste.
eventsYesÉvénements, du plus récent au plus ancien.
failuresYesNombre d'échecs.
successesYesNombre de connexions réussies.
total_eventsYesNombre d'événements retournés.
window_hoursYesFenêtre temporelle réellement appliquée, en heures.
distinct_locationsYesGéolocalisations distinctes observées.
distinct_ip_addressesYesAdresses IP source distinctes observées.

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the readOnly/idempotent annotations, the description discloses that events are reduced to security indicators and that a quantitative summary (failure counts, distinct IPs, computed observations) is returned. This is useful behavioral context, though it does not discuss rate limits or response edge cases.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and output behavior are front-loaded and each substantive sentence earns its place. The Args block is somewhat redundant with the input schema, but it is compact and does not make the description overly long.

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

Completeness4/5

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

With a rich output schema and annotations, the description provides enough context for correct selection and invocation: purpose, use cases, output shape, and parameter defaults. It could be slightly more complete by pointing to a sibling tool for related risk data, but this is not essential.

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

Parameters3/5

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

The schema already documents all three parameters, including defaults and bounds, so coverage is 100%. The description largely repeats this information (upn example, hours default/max, limit default/max) and adds no new parameter semantics beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool retrieves recent user sign-ins ('Récupère les connexions récentes d'un utilisateur') for authentication-block, geographic-anomaly, or compromise investigations. It uses a specific verb+resource, but does not explicitly contrast itself with siblings such as get_risk_detections or get_user_context.

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

Usage Guidelines4/5

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

It gives concrete investigative scenarios: 'pour investiguer un blocage d'authentification, une anomalie géographique ou une compromission'. There is no explicit when-not-to-use guidance or named alternative, 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.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 6 tool updatesv1.0.0
    • First observedget_conditional_access_policies
    • First observedget_directory_audits
    • First observedget_risk_detections
    • First observedget_risky_users
    • First observedget_user_context
    • First observedget_user_signins

TDQS

A4.4/5.0

Scored across 6 tools

Disambiguation5/5

Each tool targets a distinct data source: user identity context, sign-in events, risky user aggregates, individual risk detections, directory audit logs, and conditional access policies. The closely related risky-user and risk-detection tools are explicitly differentiated by scope, so an agent can reliably pick the right one.

Naming Consistency5/5

All tool names follow a consistent get_<resource> pattern using snake_case: get_user_context, get_user_signins, get_risky_users, get_risk_detections, get_directory_audits, get_conditional_access_policies. The naming convention is uniform and predictable.

Tool Count5/5

Six tools is a tightly scoped set for an Entra ID SecOps investigation server. Each tool covers a necessary aspect of incident investigation without redundancy or bloat.

Completeness5/5

The tool surface covers the main investigative workflow: identify the user's privilege level, inspect sign-ins, review identity risk, understand specific risk detections, check for malicious directory changes, and evaluate conditional access impacts. No significant operational gap is apparent for the stated SecOps purpose.

Maintenance

ActivitySlowing
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • -
    license
    Not graded
    quality
    Not graded
    maintenance
    Provides 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.
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables security investigation and threat hunting through Microsoft Defender and Entra ID, with 31 tools for KQL queries, alerts, threat intelligence, identity investigation, and advanced threat hunting.
    MIT