Skip to main content
Glama
sandervd
by sandervd

apply_changeset

Apply an atomic ordered semantic changeset to a LinkML workspace, validating edits against a base commit and returning a new commit ID. Supports create, delete, rename, and field operations.

Instructions

Apply an atomic ordered semantic changeset to a LinkML workspace. Requires base_commit; validates before and after edits; returns a new commit id. Supported operations include create/delete/rename class, slot, enum, prefix, import, file, plus set_field, unset_field, list_append, list_remove, list_replace, map_set, and map_remove.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
changesYesOrdered semantic operations to apply atomically.
messageNoOptional git commit message.
base_commitYesGit commit id that the new commit should use as its parent.
workspace_idYesWorkspace id returned by init_workspace.
Behavior4/5

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

With no annotations present, the description carries the full burden of disclosing behavior. It does well by mentioning atomicity, ordering, validation before and after, the base_commit requirement, and the return of a new commit id. It stops short of describing failure behavior, rollback, or permission requirements, but the disclosed traits are substantial and not contradicted by any annotation.

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 three sentences with no filler. The main purpose is front-loaded, the critical requirement (base_commit) and core behaviors (validation, return value) are in the second sentence, and the third sentence enumerates supported operations compactly. Every sentence earns its place.

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 a complex mutation tool, the description provides a strong high-level picture: atomic ordered application, validation, commit id return, and the set of supported operations. It does not detail the exact parameters required for each operation type or the response structure beyond a commit id, but the input schema fills most of the gaps. A bit more on error/failure behavior would make it fully complete.

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?

The schema covers all 4 parameters at 100%, so the baseline is 3. The description adds meaningful value by expanding the operation vocabulary (create/delete/rename class, slot, enum, prefix, import, file, plus set_field, unset_field, list_append, list_remove, list_replace, map_set, map_remove) and by clarifying that the changes array is ordered and applied atomically. This goes beyond the schema's single example.

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 begins with a specific verb and resource: 'Apply an atomic ordered semantic changeset to a LinkML workspace.' It clearly distinguishes this tool from the sibling read/init/generate tools by positioning it as the mutation/commit operation, and even enumerates the supported operation families.

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?

The description gives clear context: it requires base_commit, applies changes atomically, and validates before/after. It does not explicitly name alternatives or when-not to use it, but among the sibling tools there is no other changeset-apply tool, so the intended usage is unambiguous.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sandervd/linkml-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server