Skip to main content
Glama

Current Moodle user

whoami
Read-onlyIdempotent

Retrieves the signed-in student's Moodle profile and site details, including name, username, user ID, site name, language, release, and token web-service function count.

Instructions

Get the signed-in student's profile and site details: full name, username, user id, site name, language, Moodle release, and how many web-service functions the token may call.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
langYes
useridYes
releaseNo
siteurlYes
fullnameYes
sitenameYes
timezoneNo
usernameYes
functionCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint, so the safety profile is covered. The description adds useful context about the token's scope (how many web-service functions the token may call), but says nothing about behavior on an unauthenticated or expired token, which is the main failure mode here.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler, and the key noun (profile and site details) arrives before the field list. The field enumeration slightly duplicates the output schema, but it is compact and readable.

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, read-only identity tool with an output schema and full annotation coverage, the description is nearly complete. The one gap is the absence of any statement about authentication prerequisites or what happens when no user is signed in.

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 no parameter semantics to explain and the baseline of 4 applies. The description correctly spends no words on inputs and instead describes the output surface.

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?

The description uses a specific verb ("Get") and a well-defined resource ("the signed-in student's profile and site details"), then enumerates the exact fields returned, so an agent knows precisely what it yields. It does not explicitly differentiate itself from the sibling auth_status, which plausibly overlaps in the authentication/identity space.

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 only implied: the phrase "signed-in" suggests it presupposes an authenticated session, but the description never says when to call this versus auth_status or what to do if no session exists. No exclusions or alternatives are named.

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