Skip to main content
Glama

moodle_logout

Destructive

Log out of a Moodle site by clearing its stored access token or browser session on this computer, ending the active site session.

Instructions

Forget the stored access token or browser session for a site on this computer. A browser session stays active on the site until the user logs out there.

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": {
      "site": "<site>"
    },
    "name": "moodle_logout"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYesSite key or URL.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=false, so the safety profile is covered. The description adds real context beyond them: what is destroyed is the locally stored token/session, and critically that the server-side browser session is not terminated — a caveat an agent would otherwise get wrong. It does not say whether re-authentication is then required.

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 with no waste: the action and its local scope first, then the non-obvious caveat. Nothing redundant, and the important constraint is front-loaded.

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?

For a single-parameter destructive tool with no output schema, the description covers what is removed, where (this computer), and the key limitation (site session persists). That is enough for correct invocation; remaining detail like return values is unnecessary.

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?

Only one parameter (site) with 100% schema description coverage ('Site key or URL.'), so the schema carries the load. The description's 'for a site on this computer' only echoes the parameter without adding format or key-vs-URL resolution detail. Baseline 3 applies.

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?

Specific verb+resource: 'Forget the stored access token or browser session for a site on this computer.' An agent can tell this clears local credentials for one site, distinct from moodle_login. It does not name a sibling, so it stops short of 5.

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 implied by the verb 'forget' — use it to drop stored credentials for a site. The second sentence supplies a useful precondition/caveat (the site-side session persists until logged out there), but no explicit when-to-use vs. when-not guidance against moodle_login or moodle_browser_close.

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