Skip to main content
Glama
dstreefkerk

ms-sentinel-mcp-server

by dstreefkerk

entra_id_get_group

Retrieve a specific Entra ID (Azure AD) group using its object ID to manage access controls and security policies within Microsoft Sentinel.

Instructions

Get a group from Entra ID (Azure AD) by object ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kwargsYes

Implementation Reference

  • The EntraIDGetGroupTool class defines the core handler logic for the 'entra_id_get_group' tool. It checks Graph API permissions, extracts the group_id parameter, constructs the Microsoft Graph API URL, fetches the group data asynchronously, and handles errors including permission denials.
    class EntraIDGetGroupTool(EntraIDToolBase):
        """
        Tool to get a group by object ID from Entra ID (Azure AD).
        """
    
        name = "entra_id_get_group"
        description = "Get a group from Entra ID (Azure AD) by object ID."
    
        async def run(self, ctx: Context, **kwargs):
            self.check_graph_permissions()
            group_id = self._extract_param(kwargs, "group_id")
            if not group_id:
                raise Exception("Missing required parameter: group_id")
            client = GraphApiClient()
            url = f"{GRAPH_API_BASE}/groups/{group_id}"
            try:
    
                def fetch():
                    for page in client.call_azure_rest_api("GET", url):
                        return page
    
                return await run_in_thread(fetch, name="entra_id_get_group")
            except requests.HTTPError as e:
                if e.response.status_code == 403:
                    raise Exception("Permission denied: Group.Read.All is required.") from e
                raise
  • The register_tools function registers the EntraIDGetGroupTool (along with other Entra ID tools) with the MCP server instance using the register method inherited from the base class.
    def register_tools(mcp):
        """
        Register all Entra ID tools with the MCP server instance.
    
        Args:
            mcp: The MCP server instance.
        """
        EntraIDListUsersTool.register(mcp)
        EntraIDGetUserTool.register(mcp)
        EntraIDListGroupsTool.register(mcp)
        EntraIDGetGroupTool.register(mcp)
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. It doesn't disclose whether this is a read-only operation, potential error conditions (e.g., invalid object ID), rate limits, or authentication needs. The description is minimal and doesn't add meaningful context beyond the basic purpose.

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 with no wasted words, clearly front-loading the core purpose. It's appropriately sized for a simple retrieval tool, though this conciseness comes at the cost of missing details.

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?

For a tool with no annotations, 0% schema coverage, and no output schema, the description is incomplete. It doesn't explain what information is returned about the group, error handling, or how to structure the parameter. Given the complexity of interacting with Entra ID/Azure AD, more context is needed for effective use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

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

Schema description coverage is 0%, and the description doesn't explain the single parameter 'kwargs'. It mentions 'by object ID' but doesn't clarify how to provide this in 'kwargs' (e.g., format, required fields). The description fails to compensate for the lack of schema documentation, leaving parameter usage ambiguous.

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 ('Get') and resource ('a group from Entra ID (Azure AD)'), specifying retrieval by object ID. It distinguishes from sibling 'entra_id_list_groups' by focusing on single-group lookup rather than listing, though it doesn't explicitly mention this distinction.

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 like 'entra_id_list_groups' or 'entra_id_get_user', nor any prerequisites such as authentication requirements or access permissions. The description only states what it does without contextual usage advice.

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/dstreefkerk/ms-sentinel-mcp-server'

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