Skip to main content
Glama

Check the session and consent

session_status
Read-onlyIdempotent

Check Microsoft 365 session and consent status for Microsoft Graph. Returns cached account details, token minting status, and live /me reachability to diagnose authentication issues.

Instructions

Unified session and consent probe. Returns cached account (Entra ID, tenant, consented scopes) plus whether the stored session still mints tokens and live GET /me reachability. Call once first; on consent errors sign in again with just the missing scopes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and non-destructive, so the safety profile is covered. The description adds real behavioral context the annotations don't: it reads a cached account, probes whether the stored session still mints tokens, and performs a live GET /me call.

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?

Three tight sentences: identity, return contents, then action guidance, with the most important information front-loaded. No wasted words.

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?

With no output schema, the description correctly carries the burden of describing the return payload and does so concretely. The only gap is that it doesn't clarify its relationship to the sibling login-status/login tools.

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 takes zero parameters and the schema is empty, so there is nothing for the description to disambiguate. Baseline of 4 applies for a parameterless tool.

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?

States a specific verb and resource ('unified session and consent probe') and enumerates what it returns (cached account, token minting, live /me reachability). It does not explicitly distinguish itself from the sibling auth_login_status/auth_begin_login tools, so an agent must infer the boundary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Call once first' gives clear sequencing guidance, and 'on consent errors sign in again with just the missing scopes' gives an explicit remediation path. It still doesn't name the alternative login sibling by name, leaving the routing decision partially implicit.

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