Skip to main content
Glama
midas-civil-mcp

midas-civil-mcp

midas_read_file

Read a permitted text file from the controlled MIDAS workspace and return its SHA-256 hash for integrity verification before validation or commit.

Instructions

Read one allowed text file from the controlled MIDAS workspace and return its SHA-256.

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>"
    },
    "name": "midas_read_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYes

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 and does add real context: reads are sandboxed to a 'controlled' workspace, only 'text' files qualify, and a SHA-256 is produced. It omits what happens on a disallowed or binary file, whether content itself is returned alongside the hash, size/encoding limits, and any auth or permission requirements.

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?

One sentence, front-loaded with the action and scope, with no filler. The return value is stated at the end where it belongs and nothing is repeated from the schema.

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 single-parameter, no-output-schema read tool this is close to sufficient: scope, file type, and the returned digest are all covered. The main residual gap is the ambiguity over whether the file contents are returned or only the hash, plus unspecified error behavior for disallowed files.

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 coverage is 0% for the single 'file' parameter, so the description must compensate. It adds that the value refers to a file inside the controlled workspace (implying a workspace-scoped reference rather than an arbitrary OS path), but does not say whether it is a relative path, absolute path, or an identifier from midas_list_files.

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?

The description gives a specific verb (read), a bounded resource (one allowed text file in the controlled MIDAS workspace) and a stated return (SHA-256). It is clearly distinguishable from the listing sibling midas_list_files by the 'read one' framing, though it never names an alternative explicitly.

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?

Usage is only implied through the phrase 'one allowed text file from the controlled MIDAS workspace', which signals a restricted set but never defines what 'allowed' means or how a caller knows. There is no explicit when-to-use, when-not, or pointer to a sibling for listing or opening files.

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