Skip to main content
Glama

moodle_submit_assignment

Destructive

Submit a saved assignment draft for grading after user confirmation. Show the assignment name and files first; only use this when the user clearly agrees.

Instructions

Hand in a saved draft for grading. Usually it cannot be undone without a teacher, so only call this after showing the user the assignment's name and files and getting a clear yes. Where the assignment has a submission statement, show it: accepting it is the user's own declaration.

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": {
      "assignid": "<assignid>",
      "confirm_name": "<confirm_name>"
    },
    "name": "moodle_submit_assignment"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoSite key or URL. Optional when only one site is logged in.
assignidYesassignid from moodle_assignments.
confirm_nameYesThe assignment's exact name, as the user confirmed it.
accept_submission_statementNoSet only after the user read and accepted the statement.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the description is not needed to establish that this writes. The description still adds important context: the action is usually irreversible without a teacher, and accepting a submission statement makes it the user's own declaration. That is real behavioral context beyond the annotations, though it doesn't describe what happens on failure (for example, a closed assignment or a rejected statement).

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 short sentences, front-loaded with the action and the confirmation requirement. Every sentence carries a distinct rule (what it does, irreversibility, statement handling), with no redundancy.

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 destructive, irreversible submission tool with four fully documented parameters and no output schema, the description covers the essentials: purpose, the confirmation workflow, irreversibility, and statement handling. The only minor gap is what the tool returns after submitting, though no output schema exists to defer to.

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?

Schema coverage is 100%, so the baseline is 3. The description adds an operational constraint that matters beyond the schema: confirm_name must reflect a name the user actually confirmed, and accept_submission_statement should be set only after the user read and accepted the statement. The schema states this too, but the description reinforces it as a gating condition for the call, which goes slightly beyond the schema text.

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?

"Hand in a saved draft for grading" gives a specific verb (hand in/submit) and resource (saved draft for an assignment), which is clear from the first sentence. It doesn't explicitly contrast with moodle_save_assignment_submission, but the word "saved draft" implies the draft already exists, which implicitly differentiates it from a save step.

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

Usage Guidelines4/5

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

The description gives an explicit precondition: only call after showing the user the assignment's name and files and getting a clear yes. It also covers the submission-statement case. It doesn't name a specific alternative tool for saving or checking status, but the when-to-use condition is clear.

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