Skip to main content
Glama
midas-civil-mcp

midas-civil-mcp

midas_validate_mct

Validates MCT text fail-closed against a safe beam-frame command subset to catch errors before writing or executing, with optional version and shell-mode checks.

Instructions

Fail-closed validation of MCT text using a safe beam-frame command subset. Does not write or execute anything.

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": {
      "content": "<content>"
    },
    "name": "midas_validate_mct"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYes
requireVersionNo
commandShellModeNoWhen true, *ENDDATA is not required.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

B3.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose the important traits: validation is fail-closed, restricted to a safe beam-frame command subset, and has no write or execute side effects. It omits whether a running MIDAS/NX session or installation context is required and how failures are surfaced, which keeps it below 5.

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

Conciseness4/5

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

Two tight sentences with the core contract front-loaded and no filler. The brevity is appropriate stylistically, though it comes at the cost of the missing parameter and result detail noted elsewhere.

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?

For a three-parameter validator with no annotations and no output schema, the description should say what a validation result contains (pass/fail, offending line, error list) and what the content parameter expects. Neither is present, so an agent cannot predict the return shape or call the tool unambiguously.

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

Parameters2/5

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

Schema coverage is only 33% — content and requireVersion are undocumented in the schema — and the description adds nothing about any parameter. In particular it never clarifies whether content is raw MCT text or a file path, nor what requireVersion enforces, nor that commandShellMode relaxes the *ENDDATA requirement.

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?

"Fail-closed validation of MCT text" gives a specific verb and resource, and "safe beam-frame command subset" bounds the scope, which distinguishes it from the commit/run siblings without naming them. It stops short of naming an alternative tool, so a 4 rather than a 5.

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?

The description never states when to call this versus midas_prepare_command_shell, midas_ui_stage_mct, or midas_ui_run_staged. "Does not write or execute anything" hints that this is the safe pre-flight check, but the agent must infer the workflow ordering itself, and no exclusions or prerequisites are given.

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