Skip to main content
Glama

Opsphere — DevOps & SRE Intelligence

Azure User Session Revoke

azure_user_session_revoke
Destructive

Revokes Azure session(s) for the current user. If azure_tenant_id is given, revokes only that tenant session; otherwise revokes all.

Input Schema

NameRequiredDescriptionDefault
context_idNoOptional explicit Connection Hub work context (ctx_*). Omit to use the conversation's active workspace; global Hub tools ignore it.
azure_tenant_idNoAzure tenant ID to revoke (omit to revoke all)

Output Schema

NameRequiredDescriptionDefault
okYes
dataYes
contractVersionYes
dataSchemaVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • addedOutput schema / properties / data / properties / authenticated
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / data / properties / expiresAt
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / data / properties / format
      Removed value: -{
      -  "enum": [
      -    "plain",
      -    "markdown",
      -    "json"
      -  ],
      -  "type": "string"
      -}
    • addedOutput schema / properties / data / properties / message
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / properties / subscriptionId
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / properties / tenantId
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / data / properties / text
      Removed value: -{
      -  "type": "string"
      -}
    • changedOutput schema / properties / data / required
      Previous value: -[
      -  "text"
      -]New value: +[
      +  "authenticated"
      +]
    • addedOutput schema / properties / dataSchemaVersion
      Added value: +{
      +  "const": 2,
      +  "type": "number"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "contractVersion",
      -  "ok",
      -  "data"
      -]New value: +[
      +  "contractVersion",
      +  "dataSchemaVersion",
      +  "ok",
      +  "data"
      +]
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, so the safety profile is covered. The description earns credit for clarifying the blast radius of the default path (omitting azure_tenant_id revokes all sessions), which is the single most important behavioral fact for this destructive call. It stops short of saying whether revocation is reversible or whether refresh tokens/other devices are affected.

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?

Two short sentences, zero filler, with the destructive default scope stated up front right after the core action.

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

Completeness3/5

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

An output schema exists, so return values need no explanation, and annotations carry the safety profile. However, for a destructive auth operation the description omits what exactly is destroyed (device sessions, tokens), any prerequisite that the user must be signed in, and whether the action can be undone — gaps an agent would want before invoking it.

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%, so both parameters are already documented, including 'omit to revoke all' which the description merely restates. The description adds the useful framing that the target is the current user's sessions, but supplies no extra detail on context_id handling or tenant ID format.

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 (revoke Azure session(s)) plus the scope qualifier 'for the current user'. It is distinguishable from the read-only sibling azure_user_session_status, though it never names any sibling explicitly.

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 conditional sentence tells the agent what happens when azure_tenant_id is supplied vs omitted, which implies usage but does not say when to prefer this tool over alternatives such as azure_user_session_status (check first) or azure_user_login_start (re-authenticate). No prerequisites or exclusions are stated.

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.

Resources