Skip to main content
Glama
WYRE-AI

cipp-mcp

by WYRE-AI

cipp_list_user_signin_logs

Read-only

Lists one user's recent Entra ID sign-ins to diagnose failed logins, unexpected locations, and whether MFA or Conditional Access applied. Returns time, app, IP, status, error, and device details.

Instructions

List one user's most recent interactive Entra ID sign-ins, newest first. Each row gives the time, app and resource, IP address, location, success/failure with the error code and failure reason, client app, Conditional Access status and the policies that evaluated, authentication requirement (whether MFA was required) and the authentication methods/steps Graph recorded, first factor included, device, and risk when flagged — plus a summary of failures, distinct IPs and countries. Answers "why can't this user sign in", "was this account used from somewhere unexpected", and "did MFA/CA apply". Accepts a UPN or Entra object id; a UPN is resolved to the object id first, because the upstream filter matches object ids only. One tenant and one user per call. Requires Entra ID P1/P2 in the tenant. For tenant-wide sign-ins this is the wrong tool — use CIPP's Sign-Ins report (ListSignIns).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topNoNumber of most recent sign-ins to return (default 50, maximum 1000). A result that fills the limit carries a warning that older sign-ins may exist.
userIdYesThe user's Entra object ID or User Principal Name (e.g. alice@contoso.com).
tenantFilterYesTenant domain name or ID that owns the user. 'allTenants' is not supported — the upstream endpoint reads one tenant.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.9.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already establish readOnly/non-destructive, so the description's added context is what counts: one tenant and one user per call, the UPN→object-id resolution the upstream filter requires, and the license prerequisite. It also enumerates the returned fields and a summary block, which is valuable for a no-output-schema tool. Minor gap: no pagination/rate-limit behavior beyond the schema's top limit.

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?

Front-loaded with purpose and followed by return-content, identity handling, scope, license, and the alternative-tool routing. It is dense and the long field enumeration could be trimmed, but every clause carries information and nothing is buried.

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?

With no output schema, the description compensates by describing the row content (time, app/resource, IP, location, result and error reason, CA policies, MFA requirement and auth steps, device, risk) plus a failure/IP/country summary. Combined with the tenant scope and license requirement, 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.

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, but the description adds meaning the schema does not: a UPN is resolved to an object id first because the upstream filter matches object ids only, and 'allTenants' is effectively unusable. That explains the behavioral cost of passing a UPN rather than a raw id.

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?

States a specific verb and resource ('List one user's most recent interactive Entra ID sign-ins'), scopes the subject to a single user, and explicitly routes the tenant-wide case to a named alternative (ListSignIns). An agent can distinguish it from siblings like cipp_list_audit_logs or cipp_list_logs without opening schemas.

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?

Gives concrete selection conditions ('why can't this user sign in', 'was this account used from somewhere unexpected', 'did MFA/CA apply') plus an explicit exclusion for tenant-wide queries with the named sibling to use instead. It also surfaces the prerequisite (Entra ID P1/P2) which gates whether the tool is usable at all.

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