Skip to main content
Glama

submit_text

Destructive

Submit a text exercise for the signed-in student using a two-phase preview-and-confirm flow; preview shows exercise name, due date, and text length before explicit approval.

Instructions

Submit a text exercise for the signed-in student. Two-phase: without confirmationToken this returns a preview with the exercise name, due date, and text length, and does not submit. Show the preview to the user and send the token only after they explicitly approve. Refuses programming, modeling, and exam exercises, and refuses a closed submission window.

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": {
      "exerciseId": "<exerciseId>",
      "text": "<text>"
    },
    "name": "submit_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
languageNo
exerciseIdYes
confirmationTokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations declare destructiveHint=true, idempotentHint=false, and readOnlyHint=false, and the description reconciles this by explaining the first call is a non-submitting preview and only the token-bearing call commits. It adds context the annotations cannot express: what the preview contains, the explicit user-approval gate, and the refusal conditions for exercise type and submission window.

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 the core action, then the two-phase protocol, then the refusal conditions. No restated annotations, no filler, and the most consequential instruction (show preview, await approval) is prominent.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, non-idempotent write with no output schema, the definition covers the safety-critical loop (preview → approval → commit), the preview payload, and the refusal cases. The only real omission is the language parameter, which is minor relative to the destructive-action risk it correctly addresses.

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 description coverage is 0%, so the description must carry the load; it explains confirmationToken semantics well (preview vs. commit) and implies text and exerciseId from 'exercise name, due date, and text length.' The 'language' parameter (ENGLISH/GERMAN enum) is never mentioned, leaving one of four parameters with no semantic guidance beyond its bare enum.

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 ('Submit a text exercise') plus the actor ('signed-in student'), and the word 'text' plus the explicit refusal of programming/modeling/exam exercises narrows it against submit_file and submit_quiz. An agent can tell which submission tool applies without opening any schema.

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?

Gives a clear procedural rule: call without confirmationToken for a preview, show it to the user, and send the token only after explicit approval. It also states exclusions (programming, modeling, exam exercises, closed window), though it never names the companion tool an agent should use for those refused cases.

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