Skip to main content
Glama

Sign out of Moodle

logout
Idempotent

Remove the stored Moodle token from this computer and disable automatic re-login until sign-in is requested again. Use only when the user asks to sign out.

Instructions

Forget the stored Moodle token on this computer and stop automatic re-login until login is called again. Only use when the user asks to sign out.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
removedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.4/5.0
Behavior4/5

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

The annotations declare readOnlyHint=false, destructiveHint=false, and idempotentHint=true, and the description adds real context beyond them: the token is local ("on this computer"), automatic re-login is suppressed, and the state persists until `login` is called again. This usefully implies the effect is scoped to local credential storage rather than a server-side session revocation, though it does not state that consequence explicitly.

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 sentences, zero waste. The mechanism (forget the stored token) and the effect (stop automatic re-login) come first, and the usage restriction follows, so the key information is front-loaded.

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?

For a zero-parameter tool with an output schema and annotations, the description covers what an agent needs to select and invoke it safely. The only gap is whether the server-side session is also invalidated or just the local token, a distinction that matters for a user asking a security-relevant question.

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, so the baseline is 4 and there is no parameter meaning to add or omit. The description correctly implies no arguments are needed.

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?

The description states a specific verb and object ("Forget the stored Moodle token on this computer") plus the consequence ("stop automatic re-login"), and explicitly names the sibling `login` as the counterpart action. An agent can distinguish this from `auth_status` or `whoami` because it is clearly a mutation of stored credentials rather than a read of auth state.

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?

It gives an explicit usage condition and a negative constraint: "Only use when the user asks to sign out." That keeps the agent from calling it during, for example, a token-refresh check. It does not name the sibling alternatives (auth_status, whoami) that a session-inspection request should route to, so the routing guidance is clear but not exhaustive.

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

Deploy Server

Other Tools