Skip to main content
Glama

azure_enumerate_service_principals

Enumerate Azure service principals with RBAC role assignments to identify privilege escalation risks, orphaned assignments, and credential expiry warnings.

Instructions

ENHANCED v1.14.0 Enumerate service principals with Azure RBAC role assignments (cloud infrastructure focus). Analyzes: role assignments on subscriptions/resource groups, privilege escalation risks (Owner/Contributor roles), multi-subscription access patterns, orphaned role assignments. NEW: Credential hygiene validation (expiry warnings), over-privileged principal detection, cross-subscription access analysis. Returns security findings with risk prioritization.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
subscriptionIdYesAzure subscription ID (used for authentication context)
validateSecretsNoValidate service principal credential expiry (default: true). Note: Requires Application.Read permissions for full validation.
expiryWarningDaysNoDays before expiry to trigger warning (default: 30). Values: 30, 60, 90.
includePrivilegeAnalysisNoAnalyze privilege escalation risks via RBAC role assignments (default: true).
formatNoOutput format: 'markdown' (default, human-readable) or 'json' (machine-readable)
Behavior3/5

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

Annotations are empty, so the description must convey behavior. It mentions 'enumerate' suggesting read-only, and includes a permission requirement for credential validation in parameter descriptions. However, it does not explicitly state that the tool is read-only, nor does it disclose rate limits or API impact. The description is adequate but not thorough.

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 relatively concise, using bullet-style lists for features. It includes a version tag 'ENHANCED v1.14.0' which is unnecessary but not harmful. Each sentence contributes information, though the 'NEW:' prefix is somewhat redundant.

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

Completeness3/5

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

Given the tool has 5 parameters and no output schema, the description gives a good overview of analysis areas and new features. However, it lacks detail on the structure of returned security findings (e.g., fields, risk prioritization format), which is necessary for effective use. Support for the output format parameter (markdown/json) is not explained.

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% with detailed parameter descriptions, giving baseline 3. The description adds context by linking parameters to features like credential hygiene (validateSecrets, expiryWarningDays) and privilege analysis (includePrivilegeAnalysis), enhancing understanding beyond 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 clearly states the tool enumerates service principals with RBAC role assignments for security analysis. It lists specific analysis areas (privilege escalation, multi-subscription access, etc.), distinguishing it from sibling tools like azure_enumerate_rbac_assignments that focus only on role assignments without service principal context.

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

Usage Guidelines3/5

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

The description implies usage for security auditing of service principals but provides no explicit guidance on when to use this tool versus alternatives like azure_enumerate_managed_identities or azure_analyze_rbac_privesc. No exclusions or when-not-to-use information is given.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/h4cd0c/stratos-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server