Skip to main content
Glama
midas-civil-mcp

midas-civil-mcp

midas_commit_beam

Write a previously previewed beam MCT file after verifying its SHA-256; require the inspected existing-file hash before overwriting.

Instructions

Write exactly a previously previewed beam MCT file. Requires the matching preview SHA-256; overwrite requires the inspected existing-file SHA-256 too.

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": {
      "file": "<file>",
      "expectedSha256": "<expectedSha256>"
    },
    "name": "midas_commit_beam"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYes
specNo
overwriteNo
expectedSha256Yes
expectedExistingSha256No

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden: it discloses that this is a mutating write, that overwrite is possible and is separately guarded by an inspected existing-file hash, and that a stale/unmatched hash must block the write. It does not state what happens on hash mismatch, whether the write is atomic, whether directories are created, or what the response contains.

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?

Two sentences, zero waste, with the core action front-loaded and the SHA preconditions following immediately. Dense but every clause carries information an agent needs before invoking it.

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 destructive write tool with no annotations and no output schema, the description covers the essential safety contract (preview hash, existing-file hash on overwrite). The remaining gap is the nested spec object and the return value, but the schema's defaults and patterns partially cover the former.

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?

Schema description coverage is 0%, so compensation is required, and the description does add real meaning for the two most confusing params: expectedSha256 must match a prior preview and expectedExistingSha256 is the hash from inspecting the existing file. The nested 'spec' object, 'overwrite', and 'file' are left entirely to the schema, and it is not stated whether spec must equal the previewed geometry.

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?

States a specific verb and resource ('Write ... beam MCT file') plus a scope constraint ('exactly a previously previewed' one), which distinguishes it from midas_preview_beam and midas_ui_stage_mct. It stops short of naming the sibling tools that produce the preview, so the differentiation is inferential rather than explicit.

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

Usage Guidelines3/5

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

Preconditions are given (matching preview SHA-256; inspected existing-file SHA-256 for overwrite), which implies the preview-then-commit and inspect-then-overwrite workflows. It never says which tool to call first, when not to use this tool, or what to do if the SHA does not match.

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