Skip to main content
Glama

Sign in to Moodle

login
Idempotent

Authenticate to KNTU Moodle using credentials stored in secrets.yaml so Claude acts as a signed-in student. Takes no arguments and never exposes the password.

Instructions

Sign the user in to the KNTU Moodle with the credentials stored in secrets.yaml (read by the server; the password never appears in arguments or output). Takes no arguments: never pass or ask for a password. Errors: CREDENTIALS_MISSING (secrets.yaml not set up), INVALID_LOGIN (wrong credentials, do not retry).

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
methodYes
fullnameNo
signedInYes
usernameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that credentials come from server-side secrets.yaml, that the password never appears in arguments or output, and it enumerates two named error codes with their meanings and a do-not-retry policy. That is precisely the context the readOnlyHint/idempotentHint flags cannot convey.

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, front-loaded with purpose, then the parameter constraint, then the error contract. Every clause carries new information; nothing repeats the title or schema.

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?

An output schema exists, so return values need no explanation, and credential handling plus failure modes are covered. The only gap is whether login establishes a session that subsequent tools depend on, and what a second login does to an existing session.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With zero parameters the schema already shows an empty properties object, yet the description adds the crucial negative guidance 'Takes no arguments: never pass or ask for a password', pre-empting the most likely agent failure mode of soliciting credentials from the user.

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 ('Sign the user in to the KNTU Moodle') plus the mechanism ('credentials stored in secrets.yaml'), which is exactly what an agent needs to know before calling. It also implicitly separates itself from any credential-taking sibling by declaring 'Takes no arguments'.

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?

Gives strong invocation guidance ('never pass or ask for a password') and a retry rule ('INVALID_LOGIN ... do not retry'), but never says when to call this versus the sibling auth_status. An agent must infer that login is for establishing a session and auth_status is for checking one.

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