Skip to main content
Glama

moodle_list_sites

Read-only

Lists Moodle sites currently logged in on this computer so you can identify available connections before accessing courses, grades, or assignments.

Instructions

List Moodle sites that are logged in on this computer.

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_list_sites"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds the meaningful constraint that results are limited to sites already authenticated on this machine, which explains why the list may be empty; it does not describe return contents (e.g. whether site URLs or identifiers are included), and the 'on this computer' wording sits slightly at odds with openWorldHint without being a real contradiction.

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?

A single front-loaded sentence with no redundant or filler wording; the scoping constraint that matters most is stated immediately.

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?

For a zero-parameter read-only enumeration tool this is nearly sufficient, but with no output schema the description should hint at what a 'site' entry contains and at the empty-list case, which is the primary failure mode an agent will hit.

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 by rule; the description correctly signals there is no filtering or selector argument, consistent with the empty schema.

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 ('List') plus resource ('Moodle sites') plus a scoping qualifier ('that are logged in on this computer'), which separates it from sibling tools like moodle_list_courses that operate on content within a site. It does not name or contrast with moodle_check_site or moodle_login, so sibling differentiation is only partial.

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 rather than stated: an agent can infer this is a discovery/enumeration step before site-scoped tools. There is no explicit when-to-use, no when-not-to-use, and no reference to the alternative (moodle_check_site or moodle_login) for setting up a session.

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