Skip to main content
Glama

moodle_whoami

Read-only

Identify the signed-in Moodle user and show the site's Moodle version for a specified site key or URL, or the only logged-in site.

Instructions

Show the signed-in user and the site's Moodle version.

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

Input Schema

NameRequiredDescriptionDefault
siteNoSite key or URL. Optional when only one site is logged in.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

B3.4/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 that the result includes both the current user identity and the site's Moodle version, which is useful since there is no output schema, but it stays silent on auth failures, multi-site ambiguity, and how site selection affects the answer.

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?

One short sentence, front-loaded with the verb and the two returned facts, with no redundant or filler wording.

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 one-optional-parameter read tool with annotations covering safety and no output schema, stating both returned values gives an agent nearly everything needed. Only edge-case behavior (not logged in, multiple sites) is left unaddressed.

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% for the single optional site parameter, so the schema already explains the "site key or URL" semantics and the single-site default. The description's phrase "the site's Moodle version" loosely ties the parameter to the result but adds no format or disambiguation detail beyond the 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?

"Show the signed-in user and the site's Moodle version" gives a concrete verb plus two specific resources, so an agent knows exactly what it retrieves. It does not explicitly contrast itself with similar siblings such as moodle_check_site or moodle_list_sites, which keeps it short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no stated when-to-use, no prerequisites, and no named alternative. The diagnostic intent (checking who is logged in) is only implied by the phrase "signed-in user," leaving the agent to infer when this beats moodle_check_site or moodle_list_sites.

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