Define, alter, or delete a knowledge entity
define_entityCreate, extend, or delete table-backed entities with typed columns in a personal knowledge store for countable or filterable facts; add columns without changing existing types.
Instructions
Create, extend, or delete a table-backed entity in the personal knowledge store (a Term with typed columns). Use for countable or filterable facts; search first with search_ontology or list_terms to reuse existing entities. Use save_concept for prose definitions and save_table_terms for external SQL databases. Adds new columns without altering existing column types; keys enable upsert in add_records. Pass delete=true to drop the entity (requires force=true if rows exist, permanently deleting all records). Returns the entity schema and table metadata.
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>"
},
"name": "define_entity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | No | Natural-key column names (e.g. ['isbn']) used to upsert matching rows in add_records. | |
| name | Yes | Singular entity (Term) name, e.g. 'Receipt', 'Book', or '운동 기록'. | |
| force | No | Set true with delete=true to permanently delete the entity and all of its records. | |
| table | No | snake_case SQLite table name; required when name is not English. | |
| delete | No | Set true to drop the entity (fails while rows exist unless force=true). | |
| columns | No | Columns to create or append; existing column types cannot be changed. | |
| synonyms | No | Alternate names or translations for this entity. | |
| description | No | One-sentence definition of what one record represents. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||