Skip to main content
Glama
semantic-rails

Semantic Rails MCP Server

Official

upsert_model

DestructiveIdempotent

Atomically upsert a model and its aligned graph entity, or preview changes before applying to ensure consistency.

Instructions

Preview or atomically upsert a model and aligned graph entity.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
groupNocore
joinsNo
timesNo
dry_runNo
measuresNo
model_idYes
relationYes
dimensionsNo
entity_keyYes
descriptionNo
primary_keyYes
project_pathYes
idempotency_keyYes
expected_revisionYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
errorNo
parseNo
errorsNo
statusYes
changesYes
dry_runYes
revisionYes
project_pathYes
base_revisionYes
changed_filesYes
workspace_rootNo
idempotency_keyYes
current_revisionYes
expected_revisionYes
idempotent_replayYes
proposed_revisionYes
Behavior4/5

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

Annotations already indicate idempotent and destructive hints. The description adds behavioral context beyond annotations by mentioning 'Preview' (dry run) and 'atomic' operation, which are not in annotations.

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

Conciseness3/5

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

The description is a single sentence, making it very concise. However, it lacks sufficient detail for such a complex tool, so brevity comes at the cost of completeness.

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

Completeness2/5

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

Given the high parameter count (14 required, 7 required) and low schema coverage, the description is too minimal. It does not explain key concepts like 'model' or 'aligned graph entity', nor does it clarify the dry_run parameter or idempotency_key usage.

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

Parameters1/5

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

Schema description coverage is 0%, and the description does not explain any of the 14 parameters. It fails to add meaning beyond the parameter names and types.

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 clearly states the tool's purpose: to preview or atomically upsert a model and aligned graph entity. The verb 'upsert' and resource 'model' differentiate it from sibling tools like upsert_metric and upsert_segment.

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

Usage Guidelines2/5

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

No usage guidelines are provided. The description does not specify when to use this tool over alternatives, nor does it mention prerequisites or conditions like idempotency or destructive behavior.

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/semantic-rails/semantic-rails'

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