Skip to main content
Glama

get-current-user

Read-only

Retrieve current user details from Microsoft 365, including properties, relationships, and custom extension data for account management.

Instructions

Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ConsistencyLevelNoIndicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries
selectNoSelect properties to be returned
expandNoExpand related entities
fetchAllPagesNoAutomatically fetch all pages of results
includeHeadersNoInclude response headers (including ETag) in the response metadata
excludeResponseNoExclude the full response body and only return success or failure indication

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0-development

TDQS

A3.6/5.0
Behavior4/5

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

Annotations indicate readOnlyHint=true and destructiveHint=false, covering safety aspects. The description adds valuable context beyond this: it specifies that only a subset of properties is returned by default, explains how to retrieve additional properties via $select, and mentions support for extensions and Microsoft Entra ID customers. This enriches behavioral understanding without contradicting annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is moderately concise but could be more front-loaded; it starts with the core purpose but includes detailed operational notes that might be better structured. Sentences earn their place by explaining defaults, customization, and customer use, but it feels slightly verbose for a simple retrieval tool, reducing efficiency.

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

Completeness4/5

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

Given the tool's moderate complexity (6 parameters, no output schema), the description is fairly complete. It covers purpose, behavioral nuances like default properties and extensions, and usage hints. With annotations providing safety info and schema covering parameters, the description adds sufficient context, though it could benefit from more explicit guidance on parameter interactions.

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?

Schema description coverage is 100%, so the schema fully documents all 6 parameters. The description adds some semantic context by mentioning $select for retrieving non-default properties, which relates to the 'select' parameter, but doesn't elaborate on other parameters like 'ConsistencyLevel' or 'expand'. This meets the baseline of 3 since the schema does the heavy lifting.

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 tool retrieves properties and relationships of the user object, specifying it returns a default subset of properties. It distinguishes itself from siblings by focusing on the current user rather than listing or searching for users. However, it doesn't explicitly contrast with sibling tools like 'list-accounts' or 'search-query' for user retrieval, keeping it at a 4 instead of a 5.

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 by mentioning how to get non-default properties via $select and extensions, but it doesn't explicitly state when to use this tool versus alternatives like 'list-accounts' or general search tools. It provides some context on customization options but lacks clear when/when-not guidance or named alternatives, resulting in an implied usage score.

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

Deploy Server

Other Tools