Skip to main content
Glama
littlebigbrains

@littlebigbrain/mcp

lbb_configure

Manage native schema metadata: define or evolve ontologies, apply starters, publish SHACL shapes, and configure question-to-SPARQL rewrite examples.

Instructions

Manage native schema metadata. Actions: define_ontology (friendly spec with super_types), evolve_ontology (ordered edits including add_super_types), list_starters (the base ontologies crm, documents and work, each with its status on the graph: absent, partial or applied, what applying adds, and conflicts), apply_starter (add what the graph lacks of a starter in one ontology version; a relation the graph has is widened; refused with starter_conflict when the graph holds a term differently; dry_run previews), publish_schema (SHACL activation), suggest_ontology_change (file a change for a person to review instead of applying it; prefer it when the graph's owner reviews ontology changes, and list the result with lbb_inspect action=ontology_suggestions), get_rewrite_profile and set_rewrite_profile (the graph's notes and up to 20 worked question-to-SPARQL examples that lbb_query mode=question reads for every question; pass the version you read as expected_version). define, evolve, publish and set_rewrite_profile support dry_run previews. Definition/import here extracts native metadata; it does NOT store the complete RDF/OWL document as queryable graph facts. Use lbb_rdf import for full OWL and lbb_rdf update for additive INSERT DATA revisions; RDF deletions are unsupported. Publish_schema accepts unchanged ontology plus shapes; use define/evolve for native ontology changes. Publication enqueues durable conformance; a preview does not validate the whole graph.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyNoIdempotency key ([A-Za-z0-9-_.:/]); filing again with the same key revises the suggestion
opsNoOntology changes to apply in order (additive, in-place edits, or subtractive)
agentNoYour name as the producer, shown to reviewers
graphNoGraph to create or redefine
notesNoWhat the data means for questions: which property holds the current state, what 'me' or 'my' means, which records to leave out. At most 8,000 characters
titleNoShort imperative text, e.g. 'Add class Contractor'
actionYesSelects the variant (one of: define_ontology, publish_schema, evolve_ontology, list_starters, apply_starter, suggest_ontology_change, get_rewrite_profile, set_rewrite_profile).
anchorNoThe class, property or relation the change is about
changeNoThe ontology operations a person applies by accepting, in order (same shapes as evolve_ontology ops)
formatNo
shapesNo
sourceNo
dry_runNoPreview the exact definition without creating a graph or writing metadata.
starterNoStarter id: crm, documents or work (list_starters names them)
evidenceNoWhat you saw: record count, fields, up to 20 sample records
examplesNoUp to 20 worked examples: a question and the query that answers it on this graph
ontologyNo
rationaleNoWhy the ontology needs the change; cite what you saw
relationsNo
desired_modeNo
entity_typesNo
merge_defaultNo
expected_versionNoThe version get_rewrite_profile returned (0 for none): another stored version answers 409 conflict and stores nothing
confirm_restrictiveNo
allow_data_conflictsNoDeprecated compatibility flag; does not bypass conflicts. Preview subtractive changes with dry_run=true, repair the reported conflicts, then apply.
expected_ontology_versionNoRefuse when the graph's ontology version differs

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.9.0
    • changedInput schema / properties / action / description
      Previous value: -"Selects the variant (one of: define_ontology, publish_schema, evolve_ontology, list_starters, apply_starter, suggest_ontology_change)."New value: +"Selects the variant (one of: define_ontology, publish_schema, evolve_ontology, list_starters, apply_starter, suggest_ontology_change, get_rewrite_profile, set_rewrite_profile)."
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "define_ontology",
      -  "publish_schema",
      -  "evolve_ontology",
      -  "list_starters",
      -  "apply_starter",
      -  "suggest_ontology_change"
      -]New value: +[
      +  "define_ontology",
      +  "publish_schema",
      +  "evolve_ontology",
      +  "list_starters",
      +  "apply_starter",
      +  "suggest_ontology_change",
      +  "get_rewrite_profile",
      +  "set_rewrite_profile"
      +]
    • addedInput schema / properties / examples
      Added value: +{
      +  "description": "Up to 20 worked examples: a question and the query that answers it on this graph",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "note": {
      +        "maxLength": 1000,
      +        "type": "string"
      +      },
      +      "question": {
      +        "maxLength": 1000,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "sparql": {
      +        "description": "A SELECT or ASK query with its PREFIX lines; the server parses it",
      +        "maxLength": 4000,
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "question",
      +      "sparql"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 20,
      +  "type": "array"
      +}
    • addedInput schema / properties / expected_version
      Added value: +{
      +  "description": "The version get_rewrite_profile returned (0 for none): another stored version answers 409 conflict and stores nothing",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / notes
      Added value: +{
      +  "description": "What the data means for questions: which property holds the current state, what 'me' or 'my' means, which records to leave out. At most 8,000 characters",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
  2. Changed11 schema fields changedv0.8.1
    • changedInput schema / properties / action / description
      Previous value: -"Selects the variant (one of: define_ontology, publish_schema, evolve_ontology)."New value: +"Selects the variant (one of: define_ontology, publish_schema, evolve_ontology, list_starters, apply_starter, suggest_ontology_change)."
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "define_ontology",
      -  "publish_schema",
      -  "evolve_ontology"
      -]New value: +[
      +  "define_ontology",
      +  "publish_schema",
      +  "evolve_ontology",
      +  "list_starters",
      +  "apply_starter",
      +  "suggest_ontology_change"
      +]
    • addedInput schema / properties / agent
      Added value: +{
      +  "description": "Your name as the producer, shown to reviewers",
      +  "maxLength": 200,
      +  "type": "string"
      +}
    • addedInput schema / properties / anchor
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "The class, property or relation the change is about",
      +  "properties": {
      +    "kind": {
      +      "enum": [
      +        "ontology",
      +        "class",
      +        "property",
      +        "relation"
      +      ],
      +      "type": "string"
      +    },
      +    "name": {
      +      "maxLength": 200,
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "kind"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / change
      Added value: +{
      +  "description": "The ontology operations a person applies by accepting, in order (same shapes as evolve_ontology ops)",
      +  "items": {
      +    "$ref": "#/properties/ops/items"
      +  },
      +  "maxItems": 128,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedInput schema / properties / evidence
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "What you saw: record count, fields, up to 20 sample records",
      +  "properties": {
      +    "records": {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "samples": {
      +      "items": {
      +        "$ref": "#/properties/entity_types/items/anyOf/1"
      +      },
      +      "maxItems": 20,
      +      "type": "array"
      +    },
      +    "source_fields": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "maxItems": 200,
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / expected_ontology_version
      Added value: +{
      +  "description": "Refuse when the graph's ontology version differs",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / key
      Added value: +{
      +  "description": "Idempotency key ([A-Za-z0-9-_.:/]); filing again with the same key revises the suggestion",
      +  "maxLength": 255,
      +  "type": "string"
      +}
    • addedInput schema / properties / rationale
      Added value: +{
      +  "description": "Why the ontology needs the change; cite what you saw",
      +  "maxLength": 4000,
      +  "type": "string"
      +}
    • addedInput schema / properties / starter
      Added value: +{
      +  "description": "Starter id: crm, documents or work (list_starters names them)",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / title
      Added value: +{
      +  "description": "Short imperative text, e.g. 'Add class Contractor'",
      +  "maxLength": 200,
      +  "minLength": 1,
      +  "type": "string"
      +}
  3. Changed1 schema field changedv0.5.2
    • removedInput schema / properties / branch
      Removed value: -{
      -  "description": "Branch to target; defaults to the connection's branch",
      -  "type": "string"
      -}
  4. Changed9 schema fields changedv0.5.1
    • changedInput schema / properties / allow_data_conflicts / description
      Previous value: -"Apply subtractive ops (narrow/remove) even when current data conflicts; affected records are kept and begin to warn. Default false rejects a conflicting subtractive request and reports the conflicts."New value: +"Deprecated compatibility flag; does not bypass conflicts. Preview subtractive changes with dry_run=true, repair the reported conflicts, then apply."
    • addedInput schema / properties / dry_run
      Added value: +{
      +  "description": "Preview the exact definition without creating a graph or writing metadata.",
      +  "type": "boolean"
      +}
    • removedInput schema / properties / entity_types / items / additionalProperties
      Removed value: -{}
    • addedInput schema / properties / entity_types / items / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "additionalProperties": {},
      +    "type": "object"
      +  }
      +]
    • removedInput schema / properties / entity_types / items / type
      Removed value: -"object"
    • changedInput schema / properties / ops / items / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "add_domain": {
      -        "description": "Entity-type names to add to the relation's domain (source types)",
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "add_range": {
      -        "description": "Entity-type names to add to the relation's range (target types)",
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "op": {
      -        "const": "widen_relation",
      -        "type": "string"
      -      },
      -      "relation": {
      -        "description": "Relation to widen, by name (case-insensitive)",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "relation"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "name": {
      -        "description": "Display name of the new entity type (idempotent if it exists)",
      -        "type": "string"
      -      },
      -      "op": {
      -        "const": "add_entity_type",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "name"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "cardinality": {
      -        "description": "Defaults to many_to_many",
      -        "enum": [
      -          "one_to_one",
      -          "one_to_many",
      -          "many_to_one",
      -          "many_to_many"
      -        ],
      -        "type": "string"
      -      },
      -      "domain": {
      -        "description": "Entity-type names allowed as the source (domain); must already exist",
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "inverse_name": {
      -        "description": "Optional inverse-relation display name, e.g. PHASE_OF (enables one-hop reverse traversal)",
      -        "type": "string"
      -      },
      -      "name": {
      -        "description": "Display name of the new relation, e.g. HAS_PHASE",
      -        "type": "string"
      -      },
      -      "op": {
      -        "const": "add_relation",
      -        "type": "string"
      -      },
      -      "range": {
      -        "description": "Entity-type names allowed as the target (range); must already exist",
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "reducer": {
      -        "description": "State-reducer token, e.g. append_only (default), latest_wins",
      -        "type": "string"
      -      },
      -      "symmetric": {
      -        "type": "boolean"
      -      },
      -      "temporal_semantics": {
      -        "description": "Defaults to bitemporal",
      -        "enum": [
      -          "atemporal",
      -          "valid_time",
      -          "commit_time",
      -          "bitemporal"
      -        ],
      -        "type": "string"
      -      },
      -      "transitive": {
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "name"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "name": {
      -        "description": "Display name of the new scalar property field, e.g. status (idempotent if it exists)",
      -        "type": "string"
      -      },
      -      "op": {
      -        "const": "add_property",
      -        "type": "string"
      -      },
      -      "required": {
      -        "description": "Advisory required flag (not enforced on commit)",
      -        "type": "boolean"
      -      },
      -      "value_type": {
      -        "description": "Scalar type; defaults to text. Lets a later lbb_commit set entity_properties[].field",
      -        "enum": [
      -          "bool",
      -          "i64",
      -          "f64",
      -          "date_time",
      -          "keyword",
      -          "text",
      -          "bytes"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "name"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "from": {
      -        "description": "Current entity-type name",
      -        "type": "string"
      -      },
      -      "op": {
      -        "const": "rename_entity_type",
      -        "type": "string"
      -      },
      -      "to": {
      -        "description": "New display name (stable id stays frozen; records keep resolving)",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "from",
      -      "to"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "from": {
      -        "description": "Current relation name",
      -        "type": "string"
      -      },
      -      "op": {
      -        "const": "rename_relation",
      -        "type": "string"
      -      },
      -      "to": {
      -        "description": "New display name (stable id stays frozen; edges keep resolving)",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "from",
      -      "to"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "inverse_name": {
      -        "description": "Inverse-relation display name, e.g. PHASE_OF (enables one-hop reverse traversal)",
      -        "type": "string"
      -      },
      -      "op": {
      -        "const": "set_relation_inverse",
      -        "type": "string"
      -      },
      -      "relation": {
      -        "description": "Relation to set the inverse on, by name",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "relation",
      -      "inverse_name"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "cardinality": {
      -        "enum": [
      -          "one_to_one",
      -          "one_to_many",
      -          "many_to_one",
      -          "many_to_many"
      -        ],
      -        "type": "string"
      -      },
      -      "op": {
      -        "const": "set_relation_cardinality",
      -        "type": "string"
      -      },
      -      "relation": {
      -        "description": "Relation to change, by name",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "relation",
      -      "cardinality"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "op": {
      -        "const": "narrow_relation",
      -        "type": "string"
      -      },
      -      "relation": {
      -        "description": "Relation to narrow, by name",
      -        "type": "string"
      -      },
      -      "remove_domain": {
      -        "description": "Entity-type names to remove from the relation's domain (subtractive)",
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "remove_range": {
      -        "description": "Entity-type names to remove from the relation's range (subtractive)",
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "relation"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "name": {
      -        "description": "Entity type to tombstone — kept readable for old records, rejected for new commits",
      -        "type": "string"
      -      },
      -      "op": {
      -        "const": "remove_entity_type",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "name"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "name": {
      -        "description": "Relation to tombstone — old edges stay readable, rejected for new commits",
      -        "type": "string"
      -      },
      -      "op": {
      -        "const": "remove_relation",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "name"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "entity_type": {
      +        "type": "string"
      +      },
      +      "op": {
      +        "const": "add_super_types",
      +        "type": "string"
      +      },
      +      "super_types": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "op",
      +      "entity_type",
      +      "super_types"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "add_domain": {
      +        "description": "Entity-type names to add to the relation's domain (source types)",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "add_range": {
      +        "description": "Entity-type names to add to the relation's range (target types)",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "op": {
      +        "const": "widen_relation",
      +        "type": "string"
      +      },
      +      "relation": {
      +        "description": "Relation to widen, by name (case-insensitive)",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "op",
      +      "relation"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "name": {
      +        "description": "Display name of the new entity type (idempotent if it exists)",
      +        "type": "string"
      +      },
      +      "op": {
      +        "const": "add_entity_type",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "op",
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "cardinality": {
      +        "description": "Defaults to many_to_many",
      +        "enum": [
      +          "one_to_one",
      +          "one_to_many",
      +          "many_to_one",
      +          "many_to_many"
      +        ],
      +        "type": "string"
      +      },
      +      "domain": {
      +        "description": "Entity-type names allowed as the source (domain); must already exist",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "inverse_name": {
      +        "description": "Optional inverse-relation display name, e.g. PHASE_OF (enables one-hop reverse traversal)",
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "Display name of the new relation, e.g. HAS_PHASE",
      +        "type": "string"
      +      },
      +      "op": {
      +        "const": "add_relation",
      +        "type": "string"
      +      },
      +      "range": {
      +        "description": "Entity-type names allowed as the target (range); must already exist",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "reducer": {
      +        "description": "State-reducer token, e.g. append_only (default), latest_wins",
      +        "type": "string"
      +      },
      +      "symmetric": {
      +        "type": "boolean"
      +      },
      +      "temporal_semantics": {
      +        "description": "Defaults to bitemporal",
      +        "enum": [
      +          "atemporal",
      +          "valid_time",
      +          "commit_time",
      +          "bitemporal"
      +        ],
      +        "type": "string"
      +      },
      +      "transitive": {
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "op",
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "name": {
      +        "description": "Display name of the new scalar property field, e.g. status (idempotent if it exists)",
      +        "type": "string"
      +      },
      +      "op": {
      +        "const": "add_property",
      +        "type": "string"
      +      },
      +      "required": {
      +        "description": "Advisory required flag (not enforced on commit)",
      +        "type": "boolean"
      +      },
      +      "value_type": {
      +        "description": "Scalar type; defaults to text. Lets a later lbb_commit set entity_properties[].field",
      +        "enum": [
      +          "bool",
      +          "i64",
      +          "f64",
      +          "date_time",
      +          "keyword",
      +          "text",
      +          "bytes"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "op",
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "from": {
      +        "description": "Current entity-type name",
      +        "type": "string"
      +      },
      +      "op": {
      +        "const": "rename_entity_type",
      +        "type": "string"
      +      },
      +      "to": {
      +        "description": "New display name (stable id stays frozen; records keep resolving)",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "op",
      +      "from",
      +      "to"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "from": {
      +        "description": "Current relation name",
      +        "type": "string"
      +      },
      +      "op": {
      +        "const": "rename_relation",
      +        "type": "string"
      +      },
      +      "to": {
      +        "description": "New display name (stable id stays frozen; edges keep resolving)",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "op",
      +      "from",
      +      "to"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "inverse_name": {
      +        "description": "Inverse-relation display name, e.g. PHASE_OF (enables one-hop reverse traversal)",
      +        "type": "string"
      +      },
      +      "op": {
      +        "const": "set_relation_inverse",
      +        "type": "string"
      +      },
      +      "relation": {
      +        "description": "Relation to set the inverse on, by name",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "op",
      +      "relation",
      +      "inverse_name"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "cardinality": {
      +        "enum": [
      +          "one_to_one",
      +          "one_to_many",
      +          "many_to_one",
      +          "many_to_many"
      +        ],
      +        "type": "string"
      +      },
      +      "op": {
      +        "const": "set_relation_cardinality",
      +        "type": "string"
      +      },
      +      "relation": {
      +        "description": "Relation to change, by name",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "op",
      +      "relation",
      +      "cardinality"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "op": {
      +        "const": "narrow_relation",
      +        "type": "string"
      +      },
      +      "relation": {
      +        "description": "Relation to narrow, by name",
      +        "type": "string"
      +      },
      +      "remove_domain": {
      +        "description": "Entity-type names to remove from the relation's domain (subtractive)",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "remove_range": {
      +        "description": "Entity-type names to remove from the relation's range (subtractive)",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "op",
      +      "relation"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "name": {
      +        "description": "Entity type to tombstone — kept readable for old records, rejected for new commits",
      +        "type": "string"
      +      },
      +      "op": {
      +        "const": "remove_entity_type",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "op",
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "name": {
      +        "description": "Relation to tombstone — old edges stay readable, rejected for new commits",
      +        "type": "string"
      +      },
      +      "op": {
      +        "const": "remove_relation",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "op",
      +      "name"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedInput schema / properties / relations / $ref
      Removed value: -"#/properties/entity_types"
    • addedInput schema / properties / relations / items
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "$ref": "#/properties/entity_types/items/anyOf/1"
      +    }
      +  ]
      +}
    • addedInput schema / properties / relations / type
      Added value: +"array"
  5. Changed6 schema fields changedv0.2.7
    • changedInput schema / properties / action / description
      Previous value: -"Selects the variant (one of: define_ontology, define_rules, publish_schema, evolve_ontology)."New value: +"Selects the variant (one of: define_ontology, publish_schema, evolve_ontology)."
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "define_ontology",
      -  "define_rules",
      -  "publish_schema",
      -  "evolve_ontology"
      -]New value: +[
      +  "define_ontology",
      +  "publish_schema",
      +  "evolve_ontology"
      +]
    • removedInput schema / properties / confirm_empty
      Removed value: -{
      -  "type": "boolean"
      -}
    • changedInput schema / properties / desired_mode / enum
      Previous value: -[
      -  "warn",
      -  "reject"
      -]New value: +[
      +  "off",
      +  "warn",
      +  "reject"
      +]
    • removedInput schema / properties / preview_digest
      Removed value: -{
      -  "type": "string"
      -}
    • removedInput schema / properties / rules
      Removed value: -{
      -  "items": {
      -    "additionalProperties": true,
      -    "properties": {
      -      "body": {
      -        "description": "The condition: a basic graph pattern over current edges (asserted + already-derived), joined on shared variables. Terms may be variables or fixed entities.",
      -        "items": {
      -          "additionalProperties": true,
      -          "properties": {
      -            "object": {
      -              "$ref": "#/properties/rules/items/properties/body/items/properties/subject",
      -              "description": "A rule term: { \"var\": \"x\" } (a variable) or { \"entity\": { \"entity_type\": \"DeliveryStatus\", \"name\": \"Complete\" } } (a fixed entity used as a constant in the body or head)"
      -            },
      -            "predicate": {
      -              "description": "Relation name. In a rule body, the reserved \"rdf:type\" makes a type-membership constraint: the object names a class ({ entity: { entity_type: \"Contact\" } }, no name) and matches every entity of that class and its subtypes (rdfs:subClassOf closure), so one rule keyed on a supertype fires for all subtypes. Not allowed in a head or an exists/not_exists filter.",
      -              "type": "string"
      -            },
      -            "subject": {
      -              "anyOf": [
      -                {
      -                  "additionalProperties": true,
      -                  "properties": {
      -                    "var": {
      -                      "description": "A variable, joined across patterns by name",
      -                      "type": "string"
      -                    }
      -                  },
      -                  "required": [
      -                    "var"
      -                  ],
      -                  "type": "object"
      -                },
      -                {
      -                  "additionalProperties": true,
      -                  "properties": {
      -                    "entity": {
      -                      "additionalProperties": true,
      -                      "properties": {
      -                        "entity_id": {
      -                          "description": "Entity id (hex), as an alternative to type+name",
      -                          "type": "string"
      -                        },
      -                        "entity_type": {
      -                          "description": "Entity type name (with `name`, names a fixed entity)",
      -                          "type": "string"
      -                        },
      -                        "name": {
      -                          "description": "Entity name (paired with `entity_type`)",
      -                          "type": "string"
      -                        }
      -                      },
      -                      "type": "object"
      -                    }
      -                  },
      -                  "required": [
      -                    "entity"
      -                  ],
      -                  "type": "object"
      -                }
      -              ],
      -              "description": "A rule term: { \"var\": \"x\" } (a variable) or { \"entity\": { \"entity_type\": \"DeliveryStatus\", \"name\": \"Complete\" } } (a fixed entity used as a constant in the body or head)"
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "combinators": {
      -        "description": "exists/not_exists filters folded over the body. not_exists is stratified negation — it lets a rule express a universal condition, e.g. derive \"phase complete\" only when not_exists an incomplete deliverable. A negation cycle is rejected.",
      -        "items": {
      -          "anyOf": [
      -            {
      -              "additionalProperties": true,
      -              "properties": {
      -                "exists": {
      -                  "items": {
      -                    "$ref": "#/properties/rules/items/properties/body/items"
      -                  },
      -                  "type": "array"
      -                }
      -              },
      -              "required": [
      -                "exists"
      -              ],
      -              "type": "object"
      -            },
      -            {
      -              "additionalProperties": true,
      -              "properties": {
      -                "not_exists": {
      -                  "items": {
      -                    "$ref": "#/properties/rules/items/properties/body/items"
      -                  },
      -                  "type": "array"
      -                }
      -              },
      -              "required": [
      -                "not_exists"
      -              ],
      -              "type": "object"
      -            }
      -          ],
      -          "description": "An existence filter over the body solutions: { exists: [...] } (semijoin — keep rows with a compatible match) or { not_exists: [...] } (negation/antijoin — keep rows with none)"
      -        },
      -        "type": "array"
      -      },
      -      "head": {
      -        "$ref": "#/properties/rules/items/properties/body/items",
      -        "description": "The triple derived once per body solution. Every head variable must be bound by the body; a fixed-entity object derives a constant (e.g. set the rolled-up status to the Complete entity)."
      -      },
      -      "name": {
      -        "type": "string"
      -      },
      -      "order": {
      -        "description": "Run order, low to high (a determinism hint)",
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "name"
      -    ],
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
  6. First observedv0.2.1

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations: dry_run previews on define/evolve/publish/set_rewrite_profile, starter_conflict refusal semantics, widening vs. refusing on apply_starter, and 'publication enqueues durable conformance; a preview does not validate the whole graph.' It also discloses a key negative behavior — that definition/import does NOT store the full RDF/OWL document as queryable facts.

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?

Purpose is front-loaded and every clause carries information, but the action list is delivered as one very dense, parenthetical-laden block that is hard to scan for a single action. For an eight-action, 26-parameter tool the length is defensible, yet some sentences (e.g., the apply_starter clause) are run-ons.

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 eight actions and 26 parameters with no output schema, the description covers behavior, routing, safety and dry-run semantics well. It is less complete on define_ontology's own parameter surface (entity_types, relations, merge_default, confirm_restrictive, desired_mode), which the agent must learn from the schema alone.

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?

With 65% schema description coverage, the schema carries much of the load, but the description adds real meaning for several parameters: it tells the agent to pass the version read from get_rewrite_profile as expected_version, that starter accepts only crm/documents/work, and what the rewrite-profile notes/examples are for. Many parameters (ops, change, anchor, merge_default, desired_mode) remain schema-only, so it does not fully compensate.

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?

Opens with a specific verb+resource ('Manage native schema metadata') and then enumerates all eight actions with what each does, including distinct scope for list_starters, apply_starter and suggest_ontology_change. It explicitly distinguishes itself from siblings lbb_rdf and lbb_inspect, so an agent can route correctly without opening a 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?

Explicit routing guidance: 'Use lbb_rdf import for full OWL and lbb_rdf update for additive INSERT DATA revisions; RDF deletions are unsupported,' and 'prefer it [suggest_ontology_change] when the graph's owner reviews ontology changes.' It also states when define/evolve should be used instead of publish_schema. Alternatives and conditions are named, not inferred.

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