Skip to main content
Glama
DynamicEndpoints

BOD-25-01-CSA-Microsoft-Policy-MCP

enforce_cloud_accounts

Enforce cloud-only accounts for privileged users to meet BOD 25-01 compliance requirements in Microsoft 365 environments.

Instructions

Enforce cloud-only accounts for privileged users (MS.AAD.7.3v1)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that implements the tool logic by patching the identitySecurityDefaultsEnforcementPolicy to require cloud-only privileged accounts.
    private async enforceCloudAccounts() {
      try {
        // Configure account settings using Microsoft Graph API
        await this.graphClient
          .api('/policies/identitySecurityDefaultsEnforcementPolicy')
          .patch({
            requireCloudOnlyPrivilegedAccounts: true,
          });
    
        return {
          content: [
            {
              type: 'text',
              text: 'Cloud-only accounts enforced for privileged users successfully',
            },
          ],
        };
      } catch (error: unknown) {
        throw new McpError(
          ErrorCode.InternalError,
          `Failed to enforce cloud accounts: ${error instanceof Error ? error.message : 'Unknown error'}`
        );
      }
    }
  • Registration in the CallToolRequestSchema handler switch statement that dispatches to the enforceCloudAccounts method.
    case 'enforce_cloud_accounts':
      return await this.enforceCloudAccounts();
  • Tool schema definition including name, description, and empty input schema (no parameters required).
    {
      name: 'enforce_cloud_accounts',
      description: 'Enforce cloud-only accounts for privileged users (MS.AAD.7.3v1)',
      inputSchema: {
        type: 'object',
        properties: {},
      },
    },
  • Overall tool registration in ListToolsRequestSchema handler where the tool list including enforce_cloud_accounts is returned.
    this.server.setRequestHandler(ListToolsRequestSchema, async () => ({
      tools: [
        {
          name: 'block_legacy_auth',
          description: 'Block legacy authentication (MS.AAD.1.1v1)',
          inputSchema: {
            type: 'object',
            properties: {},
          },
        },
        {
          name: 'block_high_risk_users',
          description: 'Block users detected as high risk (MS.AAD.2.1v1)',
          inputSchema: {
            type: 'object',
            properties: {},
          },
        },
        {
          name: 'block_high_risk_signins',
          description: 'Block sign-ins detected as high risk (MS.AAD.2.3v1)',
          inputSchema: {
            type: 'object',
            properties: {},
          },
        },
        {
          name: 'enforce_phishing_resistant_mfa',
          description: 'Enforce phishing-resistant MFA for all users (MS.AAD.3.1v1)',
          inputSchema: {
            type: 'object',
            properties: {},
          },
        },
        {
          name: 'enforce_alternative_mfa',
          description: 'Enforce alternative MFA method if phishing-resistant MFA not enforced (MS.AAD.3.2v1)',
          inputSchema: {
            type: 'object',
            properties: {},
          },
        },
        {
          name: 'configure_authenticator_context',
          description: 'Configure Microsoft Authenticator to show login context (MS.AAD.3.3v1)',
          inputSchema: {
            type: 'object',
            properties: {},
          },
        },
        {
          name: 'complete_auth_methods_migration',
          description: 'Set Authentication Methods Manage Migration to Complete (MS.AAD.3.4v1)',
          inputSchema: {
            type: 'object',
            properties: {},
          },
        },
        {
          name: 'enforce_privileged_mfa',
          description: 'Enforce phishing-resistant MFA for privileged roles (MS.AAD.3.6v1)',
          inputSchema: {
            type: 'object',
            properties: {},
          },
        },
        {
          name: 'restrict_app_registration',
          description: 'Allow only administrators to register applications (MS.AAD.5.1v1)',
          inputSchema: {
            type: 'object',
            properties: {},
          },
        },
        {
          name: 'restrict_app_consent',
          description: 'Allow only administrators to consent to applications (MS.AAD.5.2v1)',
          inputSchema: {
            type: 'object',
            properties: {},
          },
        },
        {
          name: 'configure_admin_consent',
          description: 'Configure admin consent workflow for applications (MS.AAD.5.3v1)',
          inputSchema: {
            type: 'object',
            properties: {},
          },
        },
        {
          name: 'restrict_group_consent',
          description: 'Prevent group owners from consenting to applications (MS.AAD.5.4v1)',
          inputSchema: {
            type: 'object',
            properties: {},
          },
        },
        {
          name: 'disable_password_expiry',
          description: 'Disable password expiration (MS.AAD.6.1v1)',
          inputSchema: {
            type: 'object',
            properties: {},
          },
        },
        {
          name: 'configure_global_admins',
          description: 'Configure Global Administrator role assignments (MS.AAD.7.1v1)',
          inputSchema: {
            type: 'object',
            properties: {
              userIds: {
                type: 'array',
                items: {
                  type: 'string',
                },
                minItems: 2,
                maxItems: 8,
                description: 'List of user IDs to assign Global Administrator role',
              },
            },
            required: ['userIds'],
          },
        },
        {
          name: 'enforce_granular_roles',
          description: 'Enforce use of granular roles instead of Global Administrator (MS.AAD.7.2v1)',
          inputSchema: {
            type: 'object',
            properties: {},
          },
        },
        {
          name: 'enforce_cloud_accounts',
          description: 'Enforce cloud-only accounts for privileged users (MS.AAD.7.3v1)',
          inputSchema: {
            type: 'object',
            properties: {},
          },
        },
        {
          name: 'enforce_pam',
          description: 'Enforce PAM system for privileged role assignments (MS.AAD.7.5v1)',
          inputSchema: {
            type: 'object',
            properties: {},
          },
        },
        {
          name: 'configure_global_admin_approval',
          description: 'Configure approval requirement for Global Administrator activation (MS.AAD.7.6v1)',
          inputSchema: {
            type: 'object',
            properties: {},
          },
        },
        {
          name: 'configure_role_alerts',
          description: 'Configure alerts for privileged role assignments (MS.AAD.7.7v1)',
          inputSchema: {
            type: 'object',
            properties: {
              notificationEmails: {
                type: 'array',
                items: {
                  type: 'string',
                },
                description: 'Email addresses to notify on role assignments',
              },
            },
            required: ['notificationEmails'],
          },
        },
        {
          name: 'configure_admin_alerts',
          description: 'Configure alerts for Global Administrator activation (MS.AAD.7.8v1)',
          inputSchema: {
            type: 'object',
            properties: {
              notificationEmails: {
                type: 'array',
                items: {
                  type: 'string',
                },
                description: 'Email addresses to notify on role activation',
              },
            },
            required: ['notificationEmails'],
          },
        },
        {
          name: 'get_policy_status',
          description: 'Get current status of all CISA M365 security policies',
          inputSchema: {
            type: 'object',
            properties: {},
          },
        },
      ],
    }));
Behavior2/5

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

With no annotations provided, the description carries full burden but lacks behavioral details. 'Enforce' implies a write/mutation operation, but it doesn't disclose required permissions, whether changes are reversible, potential side effects, or rate limits. The MS.AAD reference hints at a compliance standard but doesn't clarify implementation behavior.

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, efficient sentence that directly states the tool's purpose with no wasted words. It's appropriately sized and front-loaded, making it easy to parse quickly.

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?

Given the complexity implied by 'enforce' (a mutation operation) and the lack of annotations or output schema, the description is incomplete. It doesn't explain what 'enforce' entails operationally, what success/failure looks like, or how it interacts with the broader security framework, leaving significant gaps for an AI agent.

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 0 parameters with 100% schema description coverage, so no parameter documentation is needed. The description appropriately focuses on the tool's purpose without redundant parameter details, meeting the baseline for parameter-less tools.

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 action ('enforce') and target ('cloud-only accounts for privileged users'), with a specific compliance reference (MS.AAD.7.3v1) adding precision. However, it doesn't explicitly differentiate from sibling tools like 'enforce_privileged_mfa' or 'enforce_alternative_mfa', which target different security controls.

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 mentions 'privileged users' but doesn't specify prerequisites, timing, or exclusions compared to similar enforcement tools in the sibling list.

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/DynamicEndpoints/Automated-BOD-25-01-CISA-Microsoft-Policies-MCP'

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