create_form
Generates a JSON form schema with fields like text, number, select, date, etc. for rendering interactive UIs in MCP clients.
Instructions
Generiert eine JSON-Formular-Definition mit verschiedenen Feld-Typen.
Erstellt ein strukturiertes Formular-Schema, das MCP-Clients als interaktives UI rendern können.
Unterstützte Feld-Typen: text, number, select, checkbox, date, email, password, textarea, radio, range.
Jedes Feld braucht mindestens: {"label": "Name", "type": "text"} Optional: id, required, placeholder, default, validation, options (für select/radio), min/max/step (für number/range), rows (für textarea).
Args: title: Formular-Titel fields: Liste von Feld-Definitionen (dicts mit type, label, etc.) description: Optionale Beschreibung über dem Formular submit_label: Text des Submit-Buttons layout: "vertical" oder "horizontal" Feld-Anordnung
Returns: JSON-String mit dem Formular-Schema
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": {
"title": "<title>",
"fields": "<fields>"
},
"name": "create_form"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| fields | Yes | ||
| description | No | ||
| submit_label | No | Submit | |
| layout | No | vertical |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |