/inforcer:api-patternsfrom inforcer
Documents Inforcer MCP API patterns: authentication headers (X-Inforcer-Region, X-Inforcer-Api-Key), region-based base URLs, /beta/ route prefix, response envelope, continuationToken pagination, and tenant ID types.
Ships in inforcer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The Inforcer MCP server exposes a read-only Microsoft 365 security baseline governance surface for MSPs — managed tenants, baseline templates, alignment/drift, secure scores, identity inventory, and audit events — plus exactly one write action: triggering an assessment run. Read this skill first; the other Inforcer skills build on the connection, envelope, and tenant-id conventions described here.
Community-sourced API caveat. Inforcer publishes no official public API documentation. The API surface modelled here is community-sourced from the
royklo/InforcerCommunityproject. Endpoint paths, field names, and behaviour may change without notice. Tool names below are illustrative of the MCP surface, not a guaranteed contract.
Conduit authenticates to Inforcer using two credentials stored on
the Inforcer connection. It injects each on its own X- header when it
calls the MCP server; nothing is set on the client:
| Conduit field | Header sent to the MCP server | Value |
|---|---|---|
| Region | X-Inforcer-Region | One of us, uk, eu, anz (required) |
| API Key | X-Inforcer-Api-Key | Your raw Inforcer API key |
The gateway-facing X- headers are not what Inforcer's own API
expects. The MCP server translates them:
X-Inforcer-Region selects the regional
host. The upstream base URL is
https://api-{region}.inforcer.com/api, e.g.
https://api-us.inforcer.com/api. Region is required — there is
no default host.X-Inforcer-Api-Key is forwarded
upstream as the custom Inf-Api-Key header that Inforcer's API
actually reads.You never set Inf-Api-Key or the base URL yourself — the MCP server
handles both. You only need the two X- headers (via the env vars).
Many Inforcer routes live under a /beta/ path prefix (the beta
API), e.g. https://api-{region}.inforcer.com/api/beta/.... The MCP
server builds these paths for you, but be aware that the surface is a
beta API and may evolve.
Inforcer responses are wrapped in a consistent envelope:
{
"success": true,
"message": "OK",
"errors": [],
"data": [ ... ]
}
| Field | Meaning |
|---|---|
success | Boolean — whether the call succeeded |
message | Human-readable status string |
errors | Array of error detail (empty on success) |
data | The actual payload (object or array) |
Always read from data. Treat success: false (or a non-empty
errors) as a failure even if an HTTP 200 came back.
List endpoints paginate with a continuationToken:
continuationToken. Pass it back on the next
request to fetch the following page.continuationToken means you are on the last page.Loop until no continuationToken is returned before claiming a result
set is complete — especially for portfolio-wide reports where a partial
page silently understates drift or inventory.
Tenant-scoped Inforcer paths take an integer Client Tenant ID — not the Azure AD tenant GUID and not the tenant domain.
| Identifier | Works in the path? |
|---|---|
Integer Client Tenant ID (e.g. 1423) | Yes — this is what the path expects |
Azure AD tenant GUID (00000000-…) | No — must be resolved to the integer id |
Tenant domain (contoso.onmicrosoft.com) | No — must be resolved to the integer id |
Friendly display name (Contoso) | No — must be resolved to the integer id |
The MCP server resolves friendly names, DNS domains, and Azure AD
GUIDs to the integer Client Tenant ID for you, so you can refer to a
tenant naturally. But the underlying API path is the integer id. If a
tenant-scoped call returns nothing, the most common cause is that a
GUID or domain reached the path without being resolved to the integer
Client Tenant ID — re-resolve via inforcer_tenants_list (see
tenant-management).
| Status | Meaning | Action |
|---|---|---|
| 400 | Bad request — often a malformed tenant id (GUID/domain where an integer is expected) | Resolve to the integer Client Tenant ID and retry |
| 401 | Missing or invalid API key | Re-check INFORCER_API_KEY → X-Inforcer-Api-Key (forwarded as Inf-Api-Key) |
| 403 | Key valid but not authorized for this resource/region | Check the key's scope and that INFORCER_REGION matches the key's region |
| 404 | Unknown tenant / baseline / assessment id | Re-list to confirm the id exists; check you used the integer Client Tenant ID |
| 429 | Rate limit | Back off and retry |
success: false in a 200 body | Application-level failure | Read message and errors; do not trust data |
inforcer_assessments_run — flag it explicitly before
invoking (see assessments).INFORCER_REGION is set and matches the key's region —
a missing or wrong region points the MCP server at the wrong host.continuationToken before reporting totals.royklo/InforcerCommunity
project rather than assuming a stable contract.What SKILL.md sets; muted values are Claude Code's defaults
When authenticating to or calling Inforcer through the MCP tools, or diagnosing a failed Inforcer request. Use when: inforcer api, inforcer authentication, inforcer region, inforcer pagination, inforcer mcp, inforcer api key, client tenant id, or inf-api-key.
Three short reads, in order
npx claudepluginhub wyre-ai/msp-claude-plugins --plugin inforcer7 skills in this plugin
/assessmentsInforcer AssessmentsInforcer assessments: listing a tenant's assessments (read-only) and triggering an assessment run — the one mutating action in the entire Inforcer surface. Covers what a run refreshes (the data behind alignment, secure score, and drift), its tenant-scoping, and the confirmation discipline it requires.
/audit-eventsInforcer Audit EventsInforcer's read-only record of changes and activity: searching and filtering auditEvents by type and date window (the search is account-wide — there is no tenant filter), enumerating the event-type catalog to build valid filters, and the continuationToken paging audit searches require.
/baseline-alignmentInforcer Baseline AlignmentInforcer's core drift-detection surface: baseline templates, tenant alignment scores, alignment details (the per-policy breakdown of a tenant against its assigned baseline), and reading deployed tenant policy state. Read-only.
/compliance-reportingInforcer Compliance ReportingInforcer compliance and posture reporting: per-tenant Microsoft 365 secure scores, combining them with alignment scores, and the alignedThreshold / semiAlignedThreshold settings that classify each tenant or policy as aligned, semi-aligned, or drifted. Covers portfolio posture roll-ups across the MSP's managed tenants.
/identity-governanceInforcer Identity GovernanceInforcer's read-only identity inventory for a managed Microsoft 365 tenant: users, groups, and role assignments. Answers "who and what exists" for governance and review rather than performing user administration. Covers the integer Client Tenant ID scoping every identity call requires.
/tenant-managementInforcer Tenant ManagementInforcer's managed Microsoft 365 tenant list and the resolution step that turns a friendly name, DNS domain, or Azure AD GUID into the integer Client Tenant ID. The starting point for almost every Inforcer workflow, since alignment, secure score, identity, and audit calls are all tenant-scoped.
Other plugins' skills for the same job