Skip to main content
Glama
Auto Ontology MCP

Auto Ontology MCP

Define, alter, or delete a knowledge entity

define_entity
DestructiveIdempotent

Create, 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

NameRequiredDescriptionDefault
keysNoNatural-key column names (e.g. ['isbn']) used to upsert matching rows in add_records.
nameYesSingular entity (Term) name, e.g. 'Receipt', 'Book', or '운동 기록'.
forceNoSet true with delete=true to permanently delete the entity and all of its records.
tableNosnake_case SQLite table name; required when name is not English.
deleteNoSet true to drop the entity (fails while rows exist unless force=true).
columnsNoColumns to create or append; existing column types cannot be changed.
synonymsNoAlternate names or translations for this entity.
descriptionNoOne-sentence definition of what one record represents.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.6.2
    • changedInput schema / properties / columns / description
      Previous value: -"Columns to create or add. Existing columns keep their type."New value: +"Columns to create or append; existing column types cannot be changed."
    • changedInput schema / properties / delete / description
      Previous value: -"Delete the entity (and, with force, its records)."New value: +"Set true to drop the entity (fails while rows exist unless force=true)."
    • changedInput schema / properties / description / description
      Previous value: -"What one record is."New value: +"One-sentence definition of what one record represents."
    • changedInput schema / properties / force / description
      Previous value: -"Allow deleting an entity that still has records."New value: +"Set true with delete=true to permanently delete the entity and all of its records."
    • changedInput schema / properties / keys / description
      Previous value: -"Columns that identify a record (e.g. ['isbn']); re-adding updates it."New value: +"Natural-key column names (e.g. ['isbn']) used to upsert matching rows in add_records."
    • changedInput schema / properties / name / description
      Previous value: -"Entity (Term) name, singular, e.g. 'Receipt', 'Book', '운동 기록'."New value: +"Singular entity (Term) name, e.g. 'Receipt', 'Book', or '운동 기록'."
    • changedInput schema / properties / synonyms / description
      Previous value: -"Other names, e.g. the user's language."New value: +"Alternate names or translations for this entity."
    • changedInput schema / properties / table / description
      Previous value: -"snake_case table name; required when the name is not English."New value: +"snake_case SQLite table name; required when name is not English."
  2. First observedv0.3.0

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the destructiveHint/idempotentHint annotations, it discloses the mutation shape (columns are additive only, existing column types cannot be changed), the upsert contract via keys plus add_records, and the escalation rule that delete=true with existing rows requires force=true and permanently destroys all records. It does not mention permissions or reversibility of a drop, leaving a small gap for a destructive operation.

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?

Five short clauses, front-loaded with the definition and immediately followed by the alternatives and the destructive-path warning. Nearly every sentence earns its place; a slight density cost comes from packing alternatives, mutation rules, and return info into one paragraph.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter destructive tool it covers the decision context, the additive-column rule, and the delete/force safety path, and an output schema exists so return details need not be expanded. The only missing piece is what a successful non-delete call implies about existing rows or schema conflicts.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so each parameter including keys, delete, force, table, and column types is already documented in the schema. The description's parameter-related statements largely restate those descriptions, adding only the cross-tool note that keys drive upsert in add_records. Baseline 3 is appropriate where the schema carries the detail.

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 description names a precise verb set (create, extend, delete) and a precise resource ('table-backed entity in the personal knowledge store (a Term with typed columns)'), which immediately separates it from prose-oriented siblings. An agent can tell what it produces 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the selection criterion ('countable or filterable facts'), mandates a prior search step with search_ontology or list_terms, and explicitly routes two competing cases away: save_concept for prose and save_table_terms for external SQL databases. Both when-to-use and when-not-to-use are covered.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.