Save schema
save_schemaSave a directly authored schema and return its ID and link. Mostly for a document that starts from a schema Entity Enricher generated — read with get_schema, revised, saved as a new schema or variant — or one the user already holds (an import). Not for creating a schema from scratch: to derive one from samples or data, call create_schema_from_sample instead of writing the document yourself. Its staged steps judge one question at a time (which nested objects are entities, what identifies each, expertise domains, flags, closed vocabularies), the code keeps only types that hold for every observed value, and the run is recorded with the schema, where the user watches it on the Monitor and reviews each judgement. A document written in one go skips those checks and leaves no trace of how it was decided; generation runs on your own model by default, so saving directly spares no credits. Requires editor; no LLM call. schema_content is a JSON Schema 2020-12 document in Entity Enricher's supported dialect: title, type='object', properties, optional $defs and x-* extension sections. The server validates it and makes colliding names unique. Entity definitions, enum vocabularies and localized fields have different projection rules. Unknown keywords are dropped, not rejected: read ignored_keywords (path, keyword, hint) and applied_repairs in the result — a property flag such as semantic_id placed on a $defs entity object lands there, with the level it is read at. This always creates a schema: to change one in place use update_schema or the property tools. A minimal valid example and supported annotations are in enricher://docs/schema-reference.
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": {
"name": "<name>",
"schema_content": "<schema_content>"
},
"name": "save_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| tags | No | Optional tags. | |
| is_pinned | No | Pin it to the top of listings. | |
| schema_content | Yes | Full schema document: title, type=object, properties and optional $defs/x-* sections. See enricher://docs/schema-reference for a minimal example. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||