Skip to main content
Glama
railyard-sh

Railyard MCP Server

by railyard-sh

Update / overwrite project (DESTRUCTIVE)

update_project
Destructive

Update an existing Railyard project by merging top-level fields or replacing the full document, with revision checks to prevent overwriting concurrent changes.

Instructions

Save changes to an existing project via a full-document PUT. DESTRUCTIVE: the saved document REPLACES the stored one. By default (merge=true) the given project fields are shallow-merged over the current document (only the top-level keys you supply are replaced, e.g. pass just {racks:[…]} to swap the racks) — recommended. With merge=false, project is taken as the entire new document and must be a complete, valid project. The project's real id is always preserved. Concurrent browser or MCP saves are guarded by revision checks: a stale update is refused instead of overwriting newer work.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe project's id (prj_…) or slug identifying which project to update.
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.
mergeNotrue (default): shallow-merge over the current doc. false: replace the whole document.
projectYesProject fields. With merge=true, a partial set of top-level keys to overwrite (e.g. {name, racks, catalogue}). With merge=false, the complete project document.
revisionNoRevision returned by get_project. When present, the update is refused if the project changed since that read. When omitted, update_project safely reads the latest revision immediately before saving.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A4.7/5.0
Behavior5/5

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

The description goes well beyond the destructiveHint annotation by explaining exactly what is destroyed: the stored document is REPLACED, and with merge=false the supplied `project` becomes the entire new document. It also discloses that the real id is preserved and that revision checks refuse stale updates, adding valuable behavioral context about concurrency and safety.

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 dense but every sentence earns its place: it front-loads the destructive warning, explains both merge modes with a concrete example, and ends with the concurrency safeguard. The structure moves from the most critical safety information to supporting parameter behavior.

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, 5-parameter tool with no output schema, the description is remarkably complete. It covers default org behavior indirectly via the schema, explains merge modes, revision safety, id preservation, and the full-document PUT semantics. An agent has everything needed to invoke the tool correctly without consulting additional documentation.

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 already documents all five parameters at 100% coverage, so the baseline is 3. The description adds meaning beyond the schema by calling shallow-merge "recommended," explaining that merge=false requires a complete valid project, and noting that the project's real id is always preserved. This extra context helps the agent choose parameter values correctly.

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 states a specific action and resource: "Save changes to an existing project via a full-document PUT" and immediately clarifies the destructive semantics. It clearly distinguishes itself from sibling tools like create_project, rename_project, and delete_project by targeting existing projects and overwriting their content.

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 tool gives clear context for when it applies: updating an existing project rather than creating or deleting one. It also provides guidance on choosing merge=true vs merge=false, recommending the shallow-merge mode. It does not explicitly name alternative tools or state when not to use it, but the existing-project framing is strong enough.

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