Skip to main content
Glama

Sync the ontology from data

ontology_sync
Idempotent

Palantir Foundry style object sync over the model text (ADR 0033). Definitions annotated @ObjectType name the dataset that backs them and its primary key; @DataColumn binds attributes to columns; @LinkType turns a foreign key or a link dataset into connections. Send those datasets' contents (CSV, TSV or JSON; export a spreadsheet to CSV first) under the dataset names the model binds. Records are matched to objects by primary key, so a re-sync updates the objects it made, adds new records and removes ones the data no longer has (remove: false keeps them). Returns the plan (every create, update, removal and link, and each row it could not use) and the new text with the plan applied as one compiler checked batch; text is null when nothing changes. Nothing is saved: show the user the plan, then use the returned text.

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": {
      "text": "<text>",
      "datasets": "<datasets>"
    },
    "name": "ontology_sync"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe complete SysML v2 model text. The server keeps no state: pass the whole current text on every call, and after an edit use the text the edit returned.
removeNoRemove objects and links whose record is gone from the dataset (default true).
datasetsYes
object_typesNoQualified names of the @ObjectType definitions to sync (default all whose dataset is given). Link types between them follow.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior1/5

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

The description richly explains matching by primary key, update/add/remove semantics, the returned plan, and null text when unchanged. However, it states 'Nothing is saved,' which contradicts the readOnlyHint=false annotation: a tool with no persistence is effectively read-only. Per the contradiction rule, this dimension is scored 1.

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?

The description is a single dense paragraph but front-loads purpose before mechanics. Most sentences add necessary detail about binding, matching, and dry-run output; the ADR reference is minor. It is appropriately sized for a complex sync tool.

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?

There is no output schema, and the description compensates by explaining the returned plan, new text, and null-when-unchanged behavior. It covers the core sync mechanics, formats, and no-save workflow, leaving only peripheral details like limits to the schema. Complete for this complexity.

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 75%, so the schema already documents most parameters. The description adds useful meaning: datasets are keyed by exact model dataset names, formats include CSV/TSV/JSON, spreadsheet export caveat, and remove=false retains records. It does not explicitly discuss object_types, but the schema handles that.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb/resource combination ('object sync over the model text') and explains that @ObjectType, @DataColumn, and @LinkType bind datasets to model elements. It is clearly about synchronizing ontology objects from data, though it does not explicitly contrast itself with sibling tools such as import or edit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

It provides a concrete workflow: supply dataset contents under the bound names, inspect the returned plan, then use the returned text. It also explains the remove:false option and the no-save behavior. It does not name alternative tools or when-not-to-use cases.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources