Skip to main content
Glama

teams_whoami

Read-only

Get the Microsoft Teams identity for an account—name, email, Teams user ID, tenant, and region. Use it to verify which account and tenant your request will use.

Instructions

Your Teams identity for an account: name, email, MRI (Teams user id), tenant, region.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "teams_whoami"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountNoAccount alias (see teams_accounts). Defaults to the default account.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds value beyond them by disclosing the returned payload (name, email, MRI, tenant, region), which matters because there is no output schema. It does not mention authentication requirements or failure behavior for an unknown account, leaving a small gap.

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?

A single compact sentence with the key concept front-loaded and the returned fields following as a scannable list; nothing is redundant. The colon-separated field list is slightly telegraphic but costs no clarity.

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?

For a one-optional-parameter read tool with full schema coverage and annotations, the definition covers what is needed: what identity is returned and for which account scope. Minor omissions are error behavior for an invalid alias and any note that it reflects the authenticated session's identity.

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 coverage is 100% and the schema already explains that 'account' is an alias referencing teams_accounts and defaults to the default account. The description only echoes "for an account" without adding format, resolution, or fallback semantics beyond what the schema states. Baseline 3 applies when the schema carries the parameter documentation.

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 names the resource precisely — the authenticated user's Teams identity — and enumerates the fields returned (name, email, MRI, tenant, region), which is specific enough to separate it from account-listing or contact-lookup siblings. It lacks an explicit verb ("get"/"returns") but the intent is unambiguous.

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?

Usage is only implied: a "whoami"-style identity lookup is self-evidently for resolving the caller's own user id, tenant, and region. There is no explicit when-to-use guidance and no mention of teams_accounts as the way to discover valid account aliases, even though the parameter references it.

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