Skip to main content
Glama

moodle_browser_action

Destructive

Perform requested Moodle browser actions—click, fill, select, check, or press via Playwright selectors—for quiz answers, navigation, summaries, and final submission without entering passwords.

Instructions

Interact with a Moodle page, including quiz answers, next page, summary and final submission. Use only for actions the user requested. Starting a quiz can start a timer; final submission can be irreversible. Use Playwright selectors from the snapshot, e.g. role=button[name="Next page"]. Never type passwords through this tool.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>",
      "selector": "<selector>"
    },
    "name": "moodle_browser_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueNo
actionYes
selectorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, so the safety profile is partly declared. The description nonetheless adds genuine context the annotations do not: starting a quiz can start a timer, final submission can be irreversible, and passwords must never be typed. It still omits what a failed action returns or whether state changes are confirmed, so it is useful but incomplete.

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?

Four short sentences, front-loaded with purpose, then constraints and risk warnings, with no filler. The clause 'including quiz answers, next page, summary and final submission' is slightly listy but each item maps to a real Moodle flow an agent must drive.

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 generic, destructive, open-world browser action tool with no output schema and zero schema coverage, the description covers selector format, risk, and a hard prohibition (passwords). It is still silent on how 'value' interacts with each action (e.g. required for fill/select but not click) and on what the tool returns after an action, leaving a meaningful gap.

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 0% schema description coverage, the description carries the full burden and does substantial work: it specifies that 'selector' must be a Playwright selector taken from the snapshot and gives a concrete format example (role=button[name="Next page"]). The 'action' enum values are self-descriptive verbs, and the example clarifies the most error-prone parameter.

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?

States a concrete verb and resource ('Interact with a Moodle page') and enumerates the action categories it covers: quiz answers, next page, summary, final submission. This distinguishes it from read-only siblings like moodle_browser_snapshot and moodle_browser_screenshot, though 'interact' alone is generic and the enumerated list is what actually conveys the purpose.

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?

The instruction 'Use only for actions the user requested' sets a real, usable constraint on when to call it. However, it never routes the agent to the purpose-built siblings (moodle_quiz_save_answers, moodle_quiz_submit_attempt, moodle_browser_navigate) that would be preferable for saving answers or submitting a quiz, so the choice between this generic action tool and those specialized tools is left to inference.

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