Skip to main content
Glama

viva_disconnect

DestructiveIdempotent

Disconnect a customer tenant from Microsoft Viva Learning: deletes our courses from the customer's Viva Learning at once and returns a sign-in link with which a customer admin removes the provider itself (Microsoft only allows that with an admin sign-in). Only tenant admins; called by an agent, it is parked for human approval.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "connection_id": "<connection_id>"
    },
    "name": "viva_disconnect"
  }
}

Input Schema

NameRequiredDescriptionDefault
connection_idYesconnection id from viva_connection_list / viva_connection_start

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations (destructive, openWorld, idempotent) by explaining exactly what is destroyed ('deletes our courses ... at once'), what is not destroyed by the tool and must be done manually by a customer admin via a returned sign-in link, and why ('Microsoft only allows that with an admin sign-in'). It also discloses the human-approval gate, which the annotations do not convey.

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 action and the destructive effect, then the admin follow-up. It is one long sentence with parenthetical asides, which slightly reduces scannability, but no clause is wasted.

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

Completeness5/5

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

With one fully documented parameter and no output schema, the description covers everything needed: side effects, the returned sign-in link, authorization preconditions, and the approval flow. Nothing material is missing for correct invocation.

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 single parameter already documents its own provenance ('connection id from viva_connection_list / viva_connection_start'), so the description adds no further meaning about the parameter. Baseline 3 applies when the schema does the heavy lifting.

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 ('Disconnect a customer tenant from Microsoft Viva Learning') and immediately explains the two-part mechanic: it deletes our courses and returns an admin sign-in link for removing the provider. This is clearly distinct from the sibling connection setup tools (viva_connection_list / viva_connection_start) referenced in the parameter docs.

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 concrete usage conditions: only tenant admins, and when invoked by an agent the call is parked for human approval. It does not explicitly say when not to disconnect or name an alternative teardown path, so it falls short of full routing guidance, but the prerequisites are clear.

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.