Skip to main content
Glama
railyard-sh

Railyard MCP Server

by railyard-sh

Replace shared device-type library (DESTRUCTIVE)

set_org_catalog
DestructiveIdempotent

Replace an organization's device-type library with a full new array. This destructive write removes types not in the catalogue, and uses a revision to prevent overwriting concurrent changes.

Instructions

Replace an organisation's shared device-type library with the given array. DESTRUCTIVE: this is a whole-library write, not a merge — types absent from catalogue are removed. Read the current library with get_org_catalog and send it back with your additions plus its revision. The write fails rather than overwriting a concurrent change. Requires an editor/owner role.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
orgNoOrganisation to target: an org id (org_…), slug, or name. Defaults to RAILYARD_ORG, or to your first (personal) org if that is unset. Use list_orgs to see the options.
revisionYesThe quoted numeric ETag returned by the matching read tool, for example "7".
catalogueYesThe complete new library: a JSON array of device types, in the shape get_org_catalog returns.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A4.5/5.0
Behavior5/5

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

It clearly discloses the destructive semantics: types absent from catalogue are removed, this is a whole-library write, concurrent changes are protected by revision checking, and an editor/owner role is required. This goes well beyond the annotations, which only flag destructiveHint and readOnlyHint.

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 focused sentences with the most important information front-loaded: destructive, whole-library write, not a merge. Every sentence contributes either behavioral context, workflow guidance, or role requirements.

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 write tool with no output schema, the description covers the operation's effect, the required read-before-write sequence, concurrency behavior, and authorization requirements. An agent has enough context to call it safely and correctly.

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

Parameters3/5

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

The input schema already documents all three parameters with 100% coverage. The description adds helpful workflow context by tying revision to get_org_catalog, but it does not add substantial meaning beyond the schema definitions for catalogue, revision, and org.

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 opens with 'Replace an organisation's shared device-type library with the given array', a specific verb and resource. It also explicitly distinguishes this as a destructive whole-library write rather than a merge, so it cannot be confused with read or update tools.

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 a clear workflow: read the current library with get_org_catalog, add your changes, and send back the revision. It also states the write fails rather than overwriting concurrent changes and requires an editor/owner role, but it does not explicitly enumerate when-not-to-use cases beyond noting it is not a merge.

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