schema_save
Saves schemas into a project, validating them first and linking them to the project. Returns the saved schemas with their UUIDs; skipped schemas carry the platform's reason.
Input format: flat schema objects in schemas (not wrapped in schema_content); the tool detects the schema type and wraps it.
Required fields: name, namespace, parent_type, attributes. namespace is the app's namespace (e.g. 'shop'); the schema is stored as namespace:name. Required attributes carry "mandatory": true.
Attribute types: 'string' for text, 'float' for decimal numbers (not 'number'), 'integer' for whole numbers, 'boolean' for true/false.
project_uuid defaults to the key's project; a project-scoped key saves only into its own project. A schema skipped for compatibility warnings is applied with force_upload=true.
Example: { "schemas": [{ "name": "product", "namespace": "shop", "description": "Product catalog entry", "parent_type": "tenant", "attributes": [ {"name": "title", "type": "string", "mandatory": true}, {"name": "price", "type": "float"}, {"name": "stock", "type": "integer"} ] }] }
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": {
"schemas": "<schemas>"
},
"name": "schema_save"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schemas | Yes | Array of schema definitions to save. | |
| force_upload | No | Apply changes that only have compatibility WARNINGS (default: false). Breaking changes are still refused. | |
| project_uuid | No | Project to save into (defaults to your key's project; required for a domain-admin key). | |
| skip_existing | No | Skip schemas that already exist (default: true). |