Skip to main content
Glama

test_microsoft_connection

Read-only

Check what this tenant's Microsoft 365 connection can ACTUALLY do. Not just 'is there a token' — a token arrives even when the app has no permission at all. This makes one real Graph call per right (profile, mail folders, calendars) and puts the result next to what the access token itself says was granted. Where the two disagree is the interesting part: 'granted but the call fails' means licence, mailbox or a withdrawn consent, while 'missing' means the Microsoft tenant admin has to add it and the account must then be RECONNECTED — an added permission does not reach an existing consent. Mail.Send is reported from the token only: it cannot be probed without actually sending a mail.

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": "test_microsoft_connection"
  }
}

Input Schema

NameRequiredDescriptionDefault
email_account_idNoWhich connected Outlook account. Defaults to the tenant's only one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the readOnlyHint/openWorldHint annotations: it discloses that one real Graph call is made per permission, that Mail.Send cannot be probed without sending mail, and that a newly added permission requires the account to be RECONNECTED before an existing consent picks it up. That is exactly the operational context an agent needs before calling.

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?

Front-loaded with the core purpose and dense with actionable detail, with no filler sentences. The emphatic capitalization and conversational aside ('the interesting part') add tone but cost a little crispness.

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 still explains what the result contains (probe outcome alongside the token's granted scopes) and flags the one permission that is token-reported only. It stops short of describing the exact response structure, which is the only remaining gap for a diagnostic tool.

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?

The single parameter is fully documented in the schema (100% coverage), including the default-to-only-account behavior, and the description adds nothing further about it. Baseline 3 applies when the schema carries the parameter burden.

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?

States a specific verb and resource ('Check what this tenant's Microsoft 365 connection can ACTUALLY do') and immediately distinguishes it from a naive token-presence check. The domain (Microsoft Graph permissions: profile, mail folders, calendars) makes it unambiguous among the many test_*_connection siblings.

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?

Gives clear context for when to reach for it: after connecting, to verify real capability rather than mere token existence. It also explains how to interpret the two failure modes. It does not name alternatives or state when not to use it, but the usage context is explicit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.