Skip to main content
Glama

Sign in to Moodle

moodle_login

Opens a browser window to the Moodle login page so you can sign in with reCAPTCHA and save the session for later calls, blocking until login completes or times out.

Instructions

Opens a browser window on the Moodle login page; the user signs in (reCAPTCHA) and the session is saved for the next calls. Normally not needed: the server opens the login window by itself when the session is missing or expired. Blocks until the login completes or times 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": "moodle_login"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that it spawns an out-of-band browser window, that a human must solve a reCAPTCHA, that it blocks until completion or timeout, and that the session persists for subsequent calls. These are exactly the behavioral traits an agent needs before invoking an interactive, blocking tool.

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?

Three sentences, each earning its place: what it does, why you usually don't need it, and how it blocks. The key caveat (normally not needed) is front-loaded right after the purpose.

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?

Covers the interactive and blocking nature, the human-verification requirement, and session persistence, which is sufficient for a zero-parameter tool with no output schema. The only gap is what the caller observes on a timeout (error vs. silent failure).

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 there is nothing for the description to disambiguate; baseline 4 applies. The description correctly implies no input is required.

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 ('Opens a browser window on the Moodle login page') plus the resulting effect ('the session is saved for the next calls'). No sibling tool in the catalog does authentication, and the description makes that scope unambiguous without needing to name an alternative.

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 an explicit when-NOT-to-use rule: 'Normally not needed: the server opens the login window by itself when the session is missing or expired.' What is missing is the positive trigger case (e.g. call this only if the automatic login fails or you need to switch accounts), leaving the agent to infer the fallback condition.

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