Skip to main content
Glama
Auto Ontology MCP

Auto Ontology MCP

Create or update a knowledge concept

save_concept
Idempotent

Create or update concept terms with definitions, markdown bodies, typed relations, and source provenance; use it to capture ideas, frameworks, or document existing entities in the ontology.

Instructions

Create or update a concept Term with a one-sentence definition, markdown wiki body, typed relations, and source provenance. Use for ideas, frameworks, or documenting existing entity Terms; use define_entity and add_records for countable facts, save_passages for document excerpts, and update_term(delete=true) to delete a Term. body replaces existing prose while append_body adds to it; missing relation targets are created as empty stub concepts. Editing a certified concept resets its status to draft.

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": "save_concept"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoMarkdown wiki body replacing the current body: overview, mechanics, examples, open questions.
nameYesConcept (Term) name in any language, e.g. 'Spaced Repetition'.
sourceNoWhere this came from: an existing source id, or a new source to register (deduplicated by uri or title).
statusNoSet 'certified' only when the user explicitly confirms.
locatorNoLocation in the source (page, chapter, heading, or timestamp).
evidenceNoSupporting quote from the source.
synonymsNoAdditional synonyms to append to this concept.
relationsNoTyped directed links from this concept to other Terms.
datasourceNoTarget datasource; defaults to 'knowledge', or pass a database datasource to document its Terms.
append_bodyNoMarkdown section appended to the current body without replacing existing text.
descriptionNoOne-sentence business or conceptual definition.
remove_relationsNoExisting typed links to unlink from this concept.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields changedv0.6.2
    • changedInput schema / properties / append_body / description
      Previous value: -"Markdown appended to the current body (new notes, a new source's view)."New value: +"Markdown section appended to the current body without replacing existing text."
    • changedInput schema / properties / body / description
      Previous value: -"Markdown page that replaces the current body: what it is, how it works, examples, open questions."New value: +"Markdown wiki body replacing the current body: overview, mechanics, examples, open questions."
    • changedInput schema / properties / datasource / description
      Previous value: -"Defaults to the knowledge store; pass another datasource to document its Terms."New value: +"Target datasource; defaults to 'knowledge', or pass a database datasource to document its Terms."
    • changedInput schema / properties / description / description
      Previous value: -"One-sentence definition."New value: +"One-sentence business or conceptual definition."
    • changedInput schema / properties / evidence / description
      Previous value: -"Supporting quote."New value: +"Supporting quote from the source."
    • changedInput schema / properties / locator / description
      Previous value: -"Where in the source (page, chapter, timestamp)."New value: +"Location in the source (page, chapter, heading, or timestamp)."
    • changedInput schema / properties / name / description
      Previous value: -"Concept (Term) name, e.g. 'Spaced Repetition'. Any language."New value: +"Concept (Term) name in any language, e.g. 'Spaced Repetition'."
    • changedInput schema / properties / relations / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "properties": {
      -        "description": {
      -          "anyOf": [
      -            {
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "default": null
      -        },
      -        "evidence": {
      -          "anyOf": [
      -            {
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "default": null,
      -          "description": "Quote that supports the link."
      -        },
      -        "relation": {
      -          "description": "snake_case verb: is_a, part_of, has_part, instance_of, related_to, depends_on, causes, used_for, contrasts_with, same_as, example_of, ...",
      -          "type": "string"
      -        },
      -        "target": {
      -          "description": "Target Term name; created as an empty concept if it does not exist yet.",
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "relation",
      -        "target"
      -      ],
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "properties": {
      +        "description": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null,
      +          "description": "Optional brief explanation of how the source Term relates to the target Term."
      +        },
      +        "evidence": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null,
      +          "description": "Quote that supports the link."
      +        },
      +        "relation": {
      +          "description": "snake_case verb: is_a, part_of, has_part, instance_of, related_to, depends_on, causes, used_for, contrasts_with, same_as, example_of, ...",
      +          "type": "string"
      +        },
      +        "target": {
      +          "description": "Target Term name; created as an empty concept if it does not exist yet.",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "relation",
      +        "target"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / relations / description
      Previous value: -"Typed links to other Terms."New value: +"Typed directed links from this concept to other Terms."
    • changedInput schema / properties / remove_relations / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "properties": {
      -        "relation": {
      -          "type": "string"
      -        },
      -        "target": {
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "relation",
      -        "target"
      -      ],
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "properties": {
      +        "relation": {
      +          "description": "Exact snake_case relation verb to remove, e.g. 'related_to'.",
      +          "type": "string"
      +        },
      +        "target": {
      +          "description": "Exact target Term name whose link should be removed.",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "relation",
      +        "target"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / remove_relations / description
      Previous value: -"Links to remove."New value: +"Existing typed links to unlink from this concept."
    • changedInput schema / properties / source / anyOf
      Previous value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "properties": {
      -      "author": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null
      -      },
      -      "content": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Transcribed text or the relevant excerpt."
      -      },
      -      "id": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Existing source id; omit to register a new source."
      -      },
      -      "kind": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "pdf, image, web, note, conversation, email, book, ..."
      -      },
      -      "published_on": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "YYYY-MM-DD"
      -      },
      -      "summary": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "What the source is about, in a sentence or two."
      -      },
      -      "title": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "File name, page title or a short label, e.g. 'IMG_2041.jpg'."
      -      },
      -      "uri": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Path or URL of the original, when known."
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "properties": {
      +      "author": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Author, organization, or speaker who created the source."
      +      },
      +      "content": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "A short excerpt; save longer parts as passages and keep the full text as the original."
      +      },
      +      "id": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Existing source id; omit to register a new source."
      +      },
      +      "kind": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Source format such as pdf, image, web, note, conversation, email, or book."
      +      },
      +      "original": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Path of the original that is already in the Obsidian vault, relative to the vault, e.g. 'Clippings/Article.md'."
      +      },
      +      "original_file": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Absolute path of a local file (PDF, image, document) to copy into the vault as the original; changed files are copied beside the old one."
      +      },
      +      "original_text": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Full markdown text saved as a new note in the vault's originals folder; passing updated text creates a new note and keeps the old one."
      +      },
      +      "published_on": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Publication or capture date in YYYY-MM-DD format."
      +      },
      +      "summary": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "What the source is about, in a sentence or two."
      +      },
      +      "title": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "File name, page title or a short label, e.g. 'IMG_2041.jpg'."
      +      },
      +      "uri": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Path or URL of the original, when known."
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / status / description
      Previous value: -"Certify only when the user confirms."New value: +"Set 'certified' only when the user explicitly confirms."
    • changedInput schema / properties / synonyms / description
      Previous value: -"Other names to add."New value: +"Additional synonyms to append to this concept."
  2. First observedv0.3.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only declare the safety profile (writable, idempotent, non-destructive), and the description adds real behavior beyond that: body overwrites prose while append_body appends, missing relation targets are auto-created as empty stubs, and editing a certified concept silently resets status to draft. The stub-creation and status-reset side effects are exactly the non-obvious consequences an agent needs before calling.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Five sentences, each doing distinct work: capability, routing, content semantics, side effects. The overwrite/append distinction and the certification caveat are both front-loaded rather than buried, and no sentence restates the title or the schema.

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

Completeness5/5

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

For a 12-parameter write tool with an output schema already supplied, the description covers the decisions that actually go wrong: which tool to use, replace-vs-append, implicit stub creation, and status demotion. Combined with the full schema coverage, an agent has enough to invoke this correctly.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description earns an increment by disambiguating the body vs append_body pair and by warning that relation targets are materialized if absent. It adds little about source registration or datasource, but those are already well documented in the schema.

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 opening sentence names a specific verb pair (create or update) and the exact resource (a concept Term), then enumerates what the write carries: definition, markdown body, typed relations, provenance. It is immediately distinguishable from siblings because it names define_entity, add_records, save_passages and update_term as the other routes.

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?

Explicit routing is given for both positive and negative cases: use here for ideas, frameworks, or documenting existing entity Terms; use define_entity/add_records for countable facts, save_passages for document excerpts, update_term(delete=true) for deletion. There is nothing left to infer about when to pick this tool.

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