Skip to main content
Glama

submit_form_answer

Formular-Antwort SPEICHERN oder ABSENDEN. form_udid aus list_formdefs, answer_udid aus prepare_form_answer. OHNE answer_udid wird eine NEUE Antwort angelegt. 'values' = {feld-key: wert}, Keys aus show_formdef, Werte muessen die Feldregeln erfuellen (Select: nur erlaubte Optionswerte). SUBFORM/EINZELPOSTEN: ein Subform-Feld bekommt eine LISTE von Zeilen-Objekten, z.B. {"materialverbraucht": [{"material": "Bettlaken", "quantity": "1", "unit": "Stk"}, {...}]} — die Feld-Keys der Zeilen stehen im subform.fields der formdef (show_formdef). Skalare Felder bleiben einfach. 'status': 'draft' (speichern) oder 'sent' (absenden; committet in den target_scope der Action). VERHALTEN DER VALIDIERUNG: jeder Regelverstoss bricht mit HTTP 400 ab und liefert die Fehler je Feld ({errors:[{key,msg}]}) - es wird dann NICHTS gespeichert. Genau damit testest du ein Formular fachlich durch: gueltige Werte senden und pruefen, ob sie ankommen; ungueltige Werte senden und pruefen, ob die Regeln greifen. Eine einmal mit 'sent' abgesendete Antwort ist gesperrt (erneutes Absenden legt eine neue Antwort an).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionNoWICHTIG BEIM ABSENDEN: waehlt den konfigurierten Button der formdef. Format 'button:<index>' — der Index zeigt in formdef.buttons[] (Reihenfolge wie in show_formdef, erster Button = 0). NUR ein Button vom Typ 'send' loest den Mailversand (inkl. PDF-Anhang) aus; ein Button vom Typ 'saveandgoto' leitet auf eine feste URL weiter. Ohne 'action' wird nur gespeichert — dann geht KEINE Mail raus, auch wenn status='sent' gesetzt ist. Empfaenger/Betreff stehen in der formdef (Config), NICHT hier — sie sind bewusst nicht per Request aenderbar.
statusNo'draft' (speichern) oder 'sent' (absenden)
valuesNo{feld-key: wert}, Keys aus show_formdef. Subform-Felder: Liste von Zeilen-Objekten [{feld: wert, ...}] (Feld-Keys aus subform.fields der formdef).
form_udidYesFormdef-udid (32-hex) aus list_formdefs
answer_udidNoAntwort-udid aus prepare_form_answer

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare non-readonly, non-idempotent, non-destructive behavior, and the description goes well beyond them: a rule violation aborts with HTTP 400 and returns per-field errors while saving NOTHING, a 'sent' answer becomes locked and resubmitting creates a new answer, and no mail goes out without an 'action' button. These are precisely the behavioral traits an agent needs for a mutation tool.

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?

The description is long but front-loaded with the core action and every sentence carries operational information (button semantics, validation contract, locking). Some clauses are dense and could be trimmed, but there is no filler or repetition.

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 complex mutation tool with nested objects and no output schema, the description covers the full lifecycle: input sources, save-vs-send, action/button routing, validation failure format, and post-send immutability. An agent has everything needed to call it correctly and to interpret failures.

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 already 100%, so the baseline is 3, but the description adds real meaning on top: the subform representation (a field receiving a list of row objects, with a concrete JSON example and where the row keys come from) and the nuance that recipients/subject are deliberately not request-settable. It clarifies the interplay of status and action beyond the schema text.

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?

The opening states a specific verb+resource ('Formular-Antwort SPEICHERN oder ABSENDEN') and immediately distinguishes the create-vs-update path ('OHNE answer_udid wird eine NEUE Antwort angelegt'). It also maps each input to its source tool (form_udid from list_formdefs, answer_udid from prepare_form_answer), so an agent can place it in the workflow without opening the 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?

It states the prerequisites and the alternatives clearly: save with 'draft', commit with 'sent', and a new answer is created when no answer_udid is supplied. The validation-testing use case ('Genau damit testest du ein Formular fachlich durch') gives explicit when-to-use context, though it does not name conditions under which another tool should be preferred.

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.