Skip to main content
Glama
roycedamien

Microsoft 365 Core MCP Server

by roycedamien

manage_named_locations

Destructive

Create, update, delete, or list IP ranges and country locations for Conditional Access policies to control access based on geographic or network criteria.

Instructions

Manage Conditional Access named locations including IP address ranges and country/region locations for location-based access control.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesAction to perform on named locations
locationIdNoNamed location ID for specific operations
displayNameNoDisplay name for the location
locationTypeNoType of named location
isTrustedNoWhether to mark IP ranges as trusted
ipRangesNoIP ranges for IP-based named location
countriesAndRegionsNoISO 3166-1 alpha-2 country codes (e.g., ["US", "CA"])
includeUnknownCountriesAndRegionsNoInclude unknown countries/regions
Behavior4/5

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

The description adds valuable context beyond the annotations. While annotations indicate this is a non-readOnly, non-idempotent, destructive tool, the description clarifies the specific domain (Conditional Access) and resource types (IP ranges, country/region locations) being managed. This helps the agent understand what kind of destructive operations might occur (e.g., modifying access control configurations). No contradiction with annotations exists.

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, well-structured sentence that efficiently conveys the tool's scope and purpose without unnecessary words. It's front-loaded with the core functionality and includes specific examples that add value. Every element earns its place, making it highly concise yet informative.

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's complexity (8 parameters, destructive operations) and lack of output schema, the description is adequate but has gaps. It clearly defines what the tool manages but doesn't address behavioral aspects like error conditions, permissions required, or what the tool returns. With annotations covering safety profile and schema covering parameters, the description provides a solid foundation but could better prepare the agent for invocation.

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?

With 100% schema description coverage, the schema already documents all 8 parameters thoroughly. The description doesn't add any parameter-specific information beyond what's in the schema. However, it does provide high-level context about what 'named locations' encompass, which helps frame the parameter usage. Baseline 3 is appropriate when schema coverage is complete.

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 specific verbs ('manage') and resources ('Conditional Access named locations'), including concrete examples ('IP address ranges and country/region locations') and the functional context ('location-based access control'). It effectively distinguishes this tool from its many siblings by focusing specifically on named locations rather than other Conditional Access or security management aspects.

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. While it mentions 'Conditional Access named locations,' it doesn't clarify whether this is the primary tool for this function or how it relates to sibling tools like 'manage_conditional_access_policies' or other security management tools. There are no explicit when/when-not instructions or named alternatives.

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/roycedamien/m365-core-mcp'

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