Skip to main content
Glama

Save practice results

submit_training_results
Idempotent

Saves the outcomes of practice exercises the learner actually attempted. confirmed records that the learner approved saving each included result, including failures; Polidict does not grade answers and stores the reported rating and whether it came from model assessment or learner self-assessment. Pass the batch's practiceId and a new requestId per submission; identical retries are idempotent. Each result needs the word's latest expectedVersion; a stale version returns WORD_CHANGED without saving. The response's progressSaved=true confirms the save, and updatedItems carries the new versions.

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": {
      "requestId": "<requestId>",
      "practiceId": "<practiceId>",
      "languageCode": "<languageCode>",
      "confirmed": "<confirmed>",
      "results": "<results>"
    },
    "name": "submit_training_results"
  }
}

Input Schema

NameRequiredDescriptionDefault
resultsYes
timezoneNo
confirmedYesTrue when the learner saw each included result and agreed to save it.
requestIdYes
practiceIdYes
languageCodeYesCode of the learning language, for example en-GB or es-ES.

Output Schema

NameRequiredDescriptionDefault
requestIdNo
assessmentNo
practiceIdNo
savedCountNo
updatedItemsNo
progressSavedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Goes well beyond the annotations: it discloses that Polidict does not grade answers, that failures are stored, that the rating may be model- or learner-sourced, that stale versions abort with WORD_CHANGED, and how progressSaved/updatedItems confirm success. It reinforces idempotency already in the annotations rather than adding new retry semantics, and it doesn't state permission or partial-batch failure behavior.

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?

Front-loaded with the purpose, then flows into semantics, versioning, and response confirmation with almost no filler. The confirmed/rating sentence is dense and could be split for scanability, but nothing is redundant.

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 batched mutation with up to 50 nested results, the description covers the risky parts an agent needs: versioning, idempotency, confirmation, and success signaling. Omitted details (batch size ceiling, timezone/language handling, partial-success behavior) are modest given an output schema exists.

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?

With only 33% schema description coverage, the description does real work: it explains confirmed as per-result learner approval, requestId as a per-submission idempotency key, and expectedVersion as a latest-read revision token with a named failure mode. languageCode and timezone get no treatment, which keeps it off a 5.

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 specific verb and resource with a scope qualifier: saving outcomes of practice exercises the learner 'actually attempted.' That is far more precise than the title 'Save practice results' and separates it from word-level siblings like save_word, though it never explicitly names an alternative.

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 context is implied (after a practice session, send the batch with its practiceId and a fresh requestId, retry safely). There is no explicit when-not or alternative-tool guidance, so an agent must infer the boundary between this and save_word on its own.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.