Skip to main content
Glama
Auto Ontology MCP

Auto Ontology MCP

Save or replace source passages

save_passages
DestructiveIdempotent

Store, update, replace, or delete searchable excerpts and section summaries for a source document, linking them to terms and an Obsidian original for later text search.

Instructions

Store, update, replace, or delete searchable excerpts and section summaries for one source document, linked to Terms and an Obsidian vault original. Use for articles, papers, books, or notes you want searchable via search_text; use add_records for structured facts and save_concept for concept definitions. Identical text from the same source updates in place; replace=true requires source and passages and permanently prunes stale passages; delete_ids permanently removes specified passages. Returns inserted, updated, unchanged, deleted ids, and any stub concepts created.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "save_passages"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceNoWhere this came from: an existing source id, or a new source to register (deduplicated by uri or title).
replaceNoSet true when re-ingesting a revised source: passages becomes the complete set and unmentioned passages of that source are permanently deleted.
passagesNoExcerpts or section summaries to insert or update (up to 200 per call).
delete_idsNoPassage ids to permanently delete (confirm with the user first).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.6.2

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already flag the tool as destructive and non-read-only, and the description adds the exact destructive consequences: replace=true prunes stale passages, delete_ids permanently removes passages, and identical text updates in place. It also states what is returned, including stub concepts created.

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?

The description is dense but well organized: purpose first, then usage and alternatives, then replace/delete behavior, then return values. Every sentence carries useful information and there is no filler.

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 destructive multi-parameter tool with nested source data and an output schema, the description covers the essential purpose, alternatives, replacement/deletion semantics, and return shape. The remaining details, such as individual source fields, are fully covered by the schema.

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, but the description adds useful conditional semantics not fully captured in the schema, notably that replace=true requires source and passages and that identical text from the same source updates in place. It does not add much field-by-field source detail, but it goes beyond merely repeating 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 description states a specific set of actions (store, update, replace, delete) on a specific resource (searchable excerpts and section summaries for one source document). It also distinguishes the tool from add_records and save_concept, so an agent can identify its role without opening sibling schemas.

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 gives explicit usage guidance: use for articles, papers, books, or notes intended to be searchable via search_text, and use add_records for structured facts and save_concept for concept definitions. The replace and delete paths are also clearly described with their operational conditions.

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