Skip to main content
Glama
darrenjrobinson

entrapulse-polyarchy

EntraPulse Polyarchy

An interactive Microsoft Entra ID identity relationship visualization, served as an MCP App.

npm npm downloads License: MIT

EntraPulse Polyarchy — live identity relationship graph rendered inside an MCP client

In 2003 Microsoft demoed PolyArchy Server — a web visual over identity data showing intersecting relationship hierarchies, where clicking a datapoint flipped the whole view to that context. It never shipped. This is it, finally real: a live D3 force-graph over your Entra ID tenant that renders inside your MCP client (Claude Desktop, VS Code Copilot, M365 Copilot, ChatGPT, Cursor, Goose, Postman — anything that supports the MCP Apps extension).

Ask your assistant "show me the identity polyarchy around Rebecca" and explore:

  • Org — manager chains and direct reports

  • Groups — memberships, and group fan-out to members

  • Attributes — pivot hubs linking everyone who shares a value: pick from the common defaults (department, office, city…) or type ahead into the full Graph attribute catalog, including nested paths like onPremisesExtensionAttributes/extensionAttribute9

  • Access — directory roles and app assignments

Prefer data over pictures? polyarchy-report returns the same relationships as structured JSON — manager chain, group memberships with type and assigned/dynamic, roles, app assignments — for the assistant to reason over, no UI required.

Exploring

  • Click a node to open its profile panel (photo, attributes, manager chain link).

  • Double-click any node — or use the panel's Set as focus button — to flip the whole context to it: hop distances re-anchor, the view glides to center, and its relationships load. The original PolyArchy interaction.

  • Reset (toolbar) clears the canvas for a fresh lineage without losing anything: everything fetched this session stays cached, so re-exploring the same people, groups or cohorts rebuilds instantly with zero extra Graph calls. The status bar shows when a neighbourhood was served from cache.

  • Expand / Minimise (toolbar) toggles the app between fullscreen and its inline card. The automatic fullscreen claim happens only when a polyarchy opens, so this is the way back to full canvas after minimising in the host. Hidden on hosts without fullscreen support.

  • Legend checkboxes filter relationship kinds and object types in place.

The graph accumulates across dimensions: one intersecting polyarchy, not four separate charts. People are shaded by degrees of separation from the focus (blue ramp); groups, roles, apps and attribute hubs wear the colour of the relationship that connects them — matching their edges — faded with distance so the hop cue survives. Light and dark theme follow your MCP client.

Related MCP server: NetMap — Network Diagram MCP

Install (Claude Desktop example)

{
  "mcpServers": {
    "entrapulse-polyarchy": {
      "command": "npx",
      "args": ["-y", "entrapulse-polyarchy"]
    }
  }
}

That's it for most tenants — no app registration needed. Be aware of what that means: with no configuration the server signs you in through Microsoft's first-party "Microsoft Graph Command Line Tools" public client (client ID 14d82eec-204b-4c2f-b7e8-296a70dab67e) — the same well-known app the Graph PowerShell/CLI tooling uses. It exists in every tenant and already has broad delegated consent in many. Hardened environments commonly block or restrict this app (Conditional Access, consent policies, or app management restrictions) — if that's your tenant, use your own app registration instead; everything else works identically.

Sign-in happens on the first tool call — and then never again:

  • Tokens persist in your OS keychain (DPAPI/Keychain/libsecret).

  • The signed-in account is remembered in ~/.entrapulse-polyarchy/auth-record.json, so freshly spawned server processes sign in silently — MCP clients respawn stdio servers freely, and none of those spawns re-prompt.

  • Token acquisition is single-flighted and cached in-process: a focus flip fires a dozen-plus concurrent Graph calls (expansion + photos), and they all share one token request instead of racing the MSAL cache.

  • Every auth event is mirrored to ~/.entrapulse-polyarchy/auth.log with timings (silent acquisitions are milliseconds; anything interactive is obvious) — the first place to look if you ever see a prompt you didn't expect.

Auth modes

Mode

Configure

Notes

Interactive (default)

nothing — or TENANT_ID + CLIENT_ID to use your own app

System browser sign-in (random loopback port — register http://localhost portless); delegated permissions; /me is the default focus

Device code

USE_DEVICE_CODE=true

Headless/SSH — code printed to the server log

App-only

TENANT_ID + CLIENT_ID + CLIENT_SECRET

Application permissions; no /me, so always pass a person to visualize-identity / polyarchy-report

Client-provided token

USE_CLIENT_TOKEN=true (+ optional ACCESS_TOKEN)

The MCP client supplies/refreshes a Graph bearer token via the set-access-token tool — seamless SSO for hosts like EntraPulse that already hold one

Other env vars: POLYARCHY_DISABLE_TOKEN_CACHE=true disables OS-keychain token persistence; POLYARCHY_AUTH_RECORD=<path> relocates the persisted sign-in record (delete the file to force a fresh sign-in).

Permissions (delegated)

Scope

Used for

User.Read.All

org hierarchy, search, attribute pivots

Group.Read.All

group memberships and members

RoleManagement.Read.Directory

directory roles

Application.Read.All

app assignments

The default first-party client typically has broad delegated consent already. Missing consent shows up as a clear 403 message naming the scope — ask your assistant to run get-auth-status to see exactly which app registration, scopes and account your token contains.

Scopes and directory roles are separate gates: the token must always carry the scopes above (an admin role can't substitute for them), while on the user side plain member default permissions cover everything this app reads — no admin role required. Only tenants that restrict default user read access (or guest users) need a role that includes directory read, for which Directory Readers is the least-privileged fit.

Hardened tenants: bring your own app registration

If the Graph Command Line Tools app is blocked, unconsented, or you simply want an app you control (own Conditional Access targeting, own consent trail), point the server at your own registration — supported in both interactive and device-code modes:

  1. Entra admin center → App registrations → New registration — single tenant is fine.

  2. Authentication → Add a platform → Mobile and desktop applications — add redirect URI http://localhost (no port!), and enable Allow public client flows if you want device-code sign-in. The port matters: interactive sign-in listens on a random loopback port each time (e.g. http://localhost:51106), and Entra only ignores the port when the registered redirect is the portless http://localhost. Registering a fixed port like :3000, or reusing an app that only has web redirects (Graph Explorer, for instance), fails with a reply-URL mismatch.

  3. API permissions → Microsoft Graph → Delegated — add the four scopes from the table above, then Grant admin consent.

  4. Configure the server with your IDs:

{
  "mcpServers": {
    "entrapulse-polyarchy": {
      "command": "npx",
      "args": ["-y", "entrapulse-polyarchy"],
      "env": {
        "TENANT_ID": "<your-tenant-guid>",
        "CLIENT_ID": "<your-app-registration-client-id>"
      }
    }
  }
}

Setting TENANT_ID alone (without CLIENT_ID) is also useful on its own: it pins sign-in to your tenant instead of the common endpoint, which multi-tenant users and guest accounts often want regardless of which client app is used.

Attribute pivots

The Attributes view groups people around shared values. The toolbar picker offers the everyday pivots (Department, Job title, Company, Office, City, State, Employee type), plus Other attributes… which opens a type-ahead over the full Graph user-attribute catalog — all fifteen onPremisesExtensionAttributes, employeeOrgData/costCenter, onPremisesSamAccountName, employeeId and ~50 more. Matching is forgiving (ext9 finds extensionAttribute9), free text is accepted for anything uncatalogued, and attributes you pick join the dropdown for the rest of the session. Nested paths are resolved server-side: the needed property is $selected on demand and cohort filters use Graph advanced queries, with attribute paths validated before they reach an OData filter.

Tools

Tool

Purpose

visualize-identity

Open the polyarchy focused on you, or {search: "name"} / {userId}. Ambiguous names don't guess: the tool returns the candidates (with object ids) so the assistant can ask which one you meant, then re-call with userId. A GUID passed as search is treated as an object id directly

polyarchy-expand

Relationships for one node as a nodes/edges delta (org/groups/access/attributes; group/role members; attribute cohorts — attr accepts nested paths). The full delta — every node with object id, and group type / assigned-vs-dynamic for groups — is returned to the caller; it does not redraw an already-open canvas (the UI fetches its own data on interaction)

polyarchy-search

Find people by name/UPN — returns each match with UPN, title/department and object id

polyarchy-report

Structured JSON report of a user's relationships, no UI needed: full manager chain + direct reports, group memberships (with group type and assigned/dynamic), directory roles, app assignments, core attributes — pick dimensions or take all

set-access-token / get-auth-status

Token passthrough + auth diagnostics

(get-photo and get-manager also exist but are visible only to the app UI, not the model.)

Development

npm install
npm run build        # tsc (server → build/server) + vite single-file (UI → build/ui/mcp-app.html)
npm start            # run the server on stdio

Test interactively with the MCPJam inspector or any MCP Apps-capable host pointed at node build/server/index.js. The UI is one self-contained HTML file (D3 inlined) satisfying the MCP Apps default CSP — the iframe makes zero network calls; all Graph traffic flows through the server via tools/call.

Releasing

npm version patch    # bumps package.json + server.json (synced automatically) and tags
git push --follow-tags

The tag triggers .github/workflows/release.yml, which publishes to npm (Trusted Publishing — OIDC, provenance attested, no tokens) and then to the MCP registry (mcp-publisher login github-oidc). No secrets are stored in the repo or in Actions.

Origin story

Microsoft demoed PolyArchy Server at TechEd 2003 and never shipped it. In 2017 Darren approximated it with MIM + Power BI + Journey Chart (blog post). In 2026, MCP Apps made the real thing possible — an identity polyarchy living inside whatever AI client you already use, part of the EntraPulse family.

MIT licensed.

Available Tools

8 tools
get-auth-statusA

Current auth mode, signed-in account, client app id, decoded token scopes/roles, and token expiry (expiresOn + tokenExpiresInMinutes; renewal is silent) — use to diagnose 401/403s and missing consent.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.4/5.0
Behavior4/5

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

Since no annotations are provided, the description carries the full burden of behavioral disclosure. It goes beyond a simple field list by noting that token renewal is silent, which is a useful behavioral trait. However, it does not explicitly state whether the operation is side-effect-free or describe failure modes, leaving some room for interpretation.

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

Conciseness5/5

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

The description is a single, information-dense sentence that front-loads the returned fields and ends with a specific use case. Every phrase earns its place, with no filler or repetition.

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

Completeness4/5

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

Given the tool has no parameters and no output schema, the description is largely complete by enumerating the returned fields and the diagnostic scenario. It could add detail on data types or the not-authenticated case, but for diagnosing auth failures it is sufficient.

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

Parameters4/5

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

The tool has zero parameters and an empty input schema, so the baseline of 4 applies. The description correctly needs to explain no parameters, and it adds no unrelated parameter information.

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

Purpose5/5

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

The description clearly identifies what the tool returns—auth mode, signed-in account, client app id, decoded token scopes/roles, and token expiry—and ties it to a specific diagnostic purpose. Although it lacks an explicit verb, the tool name 'get-auth-status' plus the detailed field list make the function unmistakable and distinguish it from siblings like set-access-token.

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 states the intended use case: 'use to diagnose 401/403s and missing consent.' It provides clear context for when to use the tool, though it does not mention when not to use it or name alternative tools.

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

get-managerB

A user's manager (core attributes), or null at the top of the chain.

ParametersJSON Schema
NameRequiredDescriptionDefault
userIdYes

TDQS

B3/5.0
Behavior3/5

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

With no annotations, the description must bear the full burden of behavioral disclosure. It adds the useful fact that the result is null at the top of the hierarchy and that only 'core attributes' are returned. However, it does not disclose other potential null cases (e.g., invalid userId), whether the operation is read-only, error behavior, or data sensitivity. Some behavioral context is provided, but significant gaps remain.

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

Conciseness5/5

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

The description is a single, focused sentence that front-loads the key purpose and includes the important null case. Every word 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.

Completeness2/5

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

This is a simple one-parameter tool, but it has no output schema and no annotations, so the description must fully explain behavior and output. It mentions 'core attributes' without specifying them and ignores how errors are handled or what happens for a non-existent user. The description is insufficient for an agent to fully understand the tool's behavior and return format.

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

Parameters2/5

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

The schema has one required parameter, userId, with no description. The description says 'a user's manager' but never explicitly ties this to the userId parameter, nor does it explain the parameter's format, constraints, or meaning beyond the obvious. With schema description coverage at 0%, the description should compensate but does not, leaving the parameter meaning largely implicit from the tool name.

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 defines the resource (a user's manager) and indicates the return value includes core attributes and null at the top of the chain. The verb 'get' is present in the tool name, making the action clear. It is distinct from sibling tools like polyarchy-expand or get-photo, though it lacks an explicit verb in the description itself.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. It does not mention any exclusions, prerequisites, or alternative tools like polyarchy-search or visualize-identity. The context is purely informational about the return value, not about selecting the right tool.

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

get-photoA

Photo for a user as a data: URI (48x48), or null.

ParametersJSON Schema
NameRequiredDescriptionDefault
userIdYes

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations provided, the description carries the burden of behavioral disclosure. It transparently states the return format (data URI, 48x48) and the null behavior when no photo exists. It does not address error cases or side effects, but as a read-only getter, this is reasonably complete.

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

Conciseness5/5

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

The description is a single, concise phrase that conveys the essential information without filler. It is front-loaded with the core purpose and output characteristics, adhering to the principle that every word earns its place.

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

Completeness4/5

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

For a simple one-parameter getter with no output schema, the description covers the key aspects: return type, size, and null case. It could benefit from mentioning the parameter explicitly, but given the tool's low complexity, the description is nearly complete.

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

Parameters2/5

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

The schema has zero description coverage for the single parameter 'userId'. The description only says 'for a user', which hints at the parameter's purpose but does not explain its format, constraints, or relationship to other user identifiers. The description adds minimal value beyond the schema's property name.

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

Purpose5/5

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

The description clearly specifies the tool's function: retrieving a user's photo as a data URI with a fixed size (48x48), and notes the possibility of null. This is a specific resource (photo) with a clear output format, distinguishing it from sibling tools like visualize-identity or get-manager.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives. The description implies a simple photo retrieval, but there is no explicit context, prerequisite, or comparison with sibling tools such as visualize-identity, which could be a potential alternative for user identity information.

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

polyarchy-expandExpand polyarchy nodeA

Fetch one node's relationships from Microsoft Graph as a nodes/edges delta. Dimensions for a user node: org (manager chain + direct reports), groups (memberships), access (directory roles + app assignments), attributes (pivot hub for attr). For nodeType group/role, returns members. For nodeType attribute pass attr+value to load the whole cohort. The delta is returned to the caller only — it does not update an open polyarchy canvas (the UI fetches its own data when the user interacts with it).

ParametersJSON Schema
NameRequiredDescriptionDefault
attrNoAttribute name or nested path, e.g. department or onPremisesExtensionAttributes/extensionAttribute9
valueNoAttribute value (attribute-cohort expansion)
nodeIdNoEntra object id (users, groups, roles); a UPN also works for users
userIdNoAlias for nodeId
nodeTypeYes
dimensionNoorg

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the transparency burden. It discloses the key behavioral trait that the tool does not update an open polyarchy canvas and returns the delta only to the caller. It also explains behavior per nodeType. It does not mention rate limits or auth, but for a fetch operation the critical side-effect nuance is covered.

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 four sentences, each earning its place. It front-loads the core purpose, then breaks down behavior by node type, and ends with the important side-effect note. It is information-dense without being verbose, and well-organized.

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

Completeness4/5

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

Given the tool's moderate complexity (6 params, no output schema, no annotations), the description covers the core behaviors and usage patterns. It explains the node types, dimensions, and the delta concept. It could mention output format or error cases, but for a fetch tool this is adequate.

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

Parameters4/5

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

Schema coverage is 67%, so the description compensates by explaining how parameters combine: 'For nodeType attribute pass attr+value to load the whole cohort' and 'Dimensions for a user node: org, groups, access, attributes.' This adds meaning to nodeType and dimension that the schema doesn't fully describe. However, it doesn't elaborate on every parameter, so not a 5.

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 starts with a specific verb+resource: 'Fetch one node's relationships from Microsoft Graph as a nodes/edges delta.' It clearly distinguishes itself from siblings by describing node types and dimensions, and explicitly notes it does not update a canvas, setting it apart from visualization 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 provides clear context for when to use it: it explains that for group/role nodes it returns members, and for attribute nodes you pass attr+value. It also clarifies that the delta is returned to the caller only and doesn't update the canvas. However, it does not explicitly name alternative tools or state when not to use this tool.

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

polyarchy-reportIdentity relationship reportA

Structured JSON report of one user's identity relationships — no UI needed, works headless. Dimensions: org (full manager chain to the root + direct reports), groups (direct memberships with group type — Security / Microsoft 365 / Distribution list / Mail-enabled security — and assigned vs dynamic membership), roles (directory roles), applications (app assignments), attributes (core profile values), or all (default). Use when the user wants analysis, a summary or the underlying data — after exploring the polyarchy visually, or instead of opening it. With no person argument it reports on the signed-in user (delegated modes only). Ambiguous names return candidates — re-call with userId.

ParametersJSON Schema
NameRequiredDescriptionDefault
searchNoName or UPN to find
userIdNoExact Entra object id
dimensionsNoRelationship categories to include (default: all)

TDQS

A4.7/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden. It discloses default behavior (dimensions default to 'all'), the no-argument behavior (reports on signed-in user, delegated modes only), and the ambiguous-name fallback (returns candidates, re-call with userId). It also details what each dimension returns (e.g., full manager chain, group types, assigned vs dynamic membership). However, it does not mention error handling, pagination, or permission requirements, which would push it to a 5.

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 purpose and constraints. The subsequent sentences efficiently deliver usage context, dimension details, and special-case behavior without redundancy. Every sentence earns its place, and the structure is easy to parse.

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

Completeness4/5

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

Given the lack of an output schema and annotations, the description does a strong job of covering all necessary context: purpose, default behavior, dimension semantics, and special cases. It doesn't describe the exact JSON structure or include examples, which would be needed for a perfect score, but for a reporting tool the level of detail is sufficient 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.

Parameters5/5

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

While the schema provides basic descriptions (100% coverage), the tool description adds substantial meaning beyond the schema. It elaborates on the dimensions enum values, explaining exactly what 'org' includes (full manager chain to the root + direct reports) and what 'groups' includes (group types, assigned vs dynamic). It also clarifies that 'search' may return ambiguous candidates and that 'userId' is the exact identifier for a re-call, which is not in the schema.

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: 'Structured JSON report of one user's identity relationships' — clearly stating the tool's function. It also distinguishes itself from the visual sibling by noting 'no UI needed, works headless' and enumerates the report dimensions (org, groups, roles, etc.), which makes the 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?

Explicitly states when to use the tool: 'Use when the user wants analysis, a summary or the underlying data — after exploring the polyarchy visually, or instead of opening it.' This provides a clear use case and contrasts with the visual exploration alternative. Additionally, it explains when to use the userId parameter ('Ambiguous names return candidates — re-call with userId') and the delegated-modes-only restriction for no person argument.

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

set-access-tokenA

Provide/refresh a Microsoft Graph bearer token when the server runs with USE_CLIENT_TOKEN=true (e.g. EntraPulse passing its own token for seamless SSO). expiresOn is ISO 8601; defaults to the token's exp claim or 1 hour.

ParametersJSON Schema
NameRequiredDescriptionDefault
expiresOnNo
accessTokenYes

TDQS

A4.2/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses that the token is provided/refreshed and explains the expiresOn default behavior (ISO 8601, defaults to exp claim or 1 hour). This is meaningful beyond 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.

Conciseness5/5

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

The description is a single sentence, front-loaded with the key action ('Provide/refresh'), and includes a parenthetical example without waste. Every word earns its place.

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

Completeness4/5

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

Given the tool's simplicity (2 params, no output schema), the description covers purpose, condition, and param semantics. It does not mention return values or error behavior, but those are less critical for a token-setting tool.

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

Parameters3/5

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

Schema coverage is 0%, so the description must compensate. It explains expiresOn semantics in detail (ISO 8601, default behavior). The accessToken parameter is not explicitly described, but its role as the Microsoft Graph bearer token is implied. This partial compensation warrants a mid-range score.

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

Purpose5/5

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

The description clearly states the tool's purpose: to provide or refresh a Microsoft Graph bearer token. It specifies the resource (bearer token) and the action (provide/refresh), and distinguishes itself from sibling tools like get-auth-status and visualize-identity by focusing on setting the token server-side.

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 provides clear context: use when USE_CLIENT_TOKEN=true, with an example (EntraPulse SSO). It does not explicitly mention when not to use it or alternatives, but the condition is stated clearly.

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

visualize-identityEntraPulse PolyarchyA

Open the interactive Identity Polyarchy — a live relationship graph over Microsoft Entra ID (org hierarchy, groups, shared attributes, roles and app assignments). Call when the user asks to visualize, explore or map identity relationships, or says "open the polyarchy" / "show me the polyarchy around ". With no arguments it opens focused on the signed-in user (delegated modes only — in app-only mode pass search or userId). If search matches several people the tool returns the candidates instead of opening — ask the user which one they mean and call again with that userId (or use polyarchy-search first for names you suspect are common). Once opened the UI is interactive; no further action is needed unless the user asks for something new.

ParametersJSON Schema
NameRequiredDescriptionDefault
searchNoName or UPN to find and focus
userIdNoExact Entra object id to focus

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the transparency burden. It discloses several important behaviors: no-argument behavior (signed-in user in delegated mode), mode requirements (app-only needs search or userId), and the disambiguation behavior when search matches multiple people (returns candidates instead of opening). It also sets expectations that no further action is needed after opening. While it doesn't cover error cases like invalid userId, the described behaviors go well beyond a generic 'opens a visualization' statement.

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 a single paragraph of about 100 words, front-loaded with the primary purpose and trigger phrase. Each sentence adds necessary detail: use cases, mode constraints, disambiguation, and post-open behavior. It is slightly longer than ideal but remains efficient given the tool's complexity. Structuring as bullets could improve readability but is not required.

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

Completeness4/5

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

Given the absence of annotations and output schema, the description covers the essential context: what the tool does, how to invoke it (with/without args), mode requirements, ambiguous search behavior, and follow-up expectations. It could mention what happens when a supplied userId does not exist, but for a UI-opening tool, the provided context is sufficiently complete for an agent to decide when and how to call it.

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

Parameters4/5

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

Schema description coverage is 100%, providing baseline meaning for both parameters. The description adds significant semantic context beyond the schema by explaining the no-argument case, when each parameter is appropriate (delegated vs app-only), and how ambiguous search results are handled. This helps the agent understand the practical usage of the parameters, not just their literal meaning.

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

Purpose5/5

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

The description clearly states the tool's purpose with a specific verb and resource: 'Open the interactive Identity Polyarchy — a live relationship graph over Microsoft Entra ID'. It also distinguishes itself from siblings by noting that it opens the visualization, while polyarchy-search is for finding names and polyarchy-expand/report handle other actions. The trigger phrases ('open the polyarchy', 'show me the polyarchy around <name>') further clarify scope.

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?

The description provides explicit when-to-use guidance: 'Call when the user asks to visualize, explore or map identity relationships'. It also gives concrete alternatives: 'use polyarchy-search first for names you suspect are common' and explains when to pass search vs userId. The delegated vs app-only mode distinction offers clear contextual prerequisites.

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. 8 tool updatesv0.1.11
    • First observedget-auth-status
    • First observedget-manager
    • First observedget-photo
    • First observedpolyarchy-expand
    • First observedpolyarchy-report
    • First observedpolyarchy-search
    • First observedset-access-token
    • First observedvisualize-identity

TDQS

A3.9/5.0

Scored across 8 tools

Disambiguation4/5

The core relationship tools (visualize-identity, polyarchy-expand, polyarchy-report) have distinct output modalities (UI, graph delta, structured JSON), but polyarchy-expand and polyarchy-report overlap in that both can retrieve a user's org/groups/roles, creating potential selection ambiguity. Other tools (search, photo, manager, auth) are clearly distinct.

Naming Consistency3/5

Tool names mix conventions: 'visualize-identity' is verb-first, 'polyarchy-expand/search/report' use a noun-prefix + action suffix, and 'get-photo'/'get-manager'/'set-access-token'/'get-auth-status' use get/set verbs. While readable, the lack of a single consistent pattern reduces predictability.

Tool Count5/5

With 8 tools, the server is well-scoped for its purpose of identity relationship visualization and analysis. Each tool serves a clear need without unnecessary bloat, and the count falls comfortably in the ideal range.

Completeness5/5

The server fully covers its stated domain: all identity dimensions (org, groups, roles, app assignments, attributes) are addressed through expand and report, complemented by search, visualization, and auth support. There are no obvious dead ends for read-only exploration.

Maintenance

ActivityMaintained
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
    B
    maintenance
    MCP server for managing Microsoft Intune and Entra ID via the Microsoft Graph API, offering 34 tools for device, app, compliance, security, identity, and reporting operations.
    1
    MIT