Skip to main content
Glama
NotHarshhaa

mainframe-mcp-server

by NotHarshhaa

read_uss_file

Read-onlyIdempotent

Read the contents of a USS file, optionally limit returned lines, and filter lines by case-insensitive text to find relevant log or configuration entries.

Instructions

Read the contents of a USS file. Supports custom line limits and text grep filtering.

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute USS file path, e.g. "/u/payroll/run.log".
maxLinesNoMaximum lines to return (caps at server configuration maximum).
searchTextNoReturn only lines containing this text (case-insensitive). Applied before line capping.
environmentNoNamed target environment (see list_environments), e.g. "dev", "prod". Omit to use the server default.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=true, covering the safety profile. The description adds that custom line limits and text grep filtering are supported, but does not discuss errors, truncation behavior, or output format. This is adequate but not rich given the annotations already present.

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 two short sentences, front-loaded with the core action and followed by capability details. Every sentence carries useful information with no waste.

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 simple read-only file-reading tool with complete schema descriptions and annotations covering safety, the description is nearly sufficient. It could say more about binary files, encoding, or truncation handling, but no output schema exists and the essential behavior is conveyed.

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 100%, so all four parameters are fully documented in the input schema. The description mentions line limits and grep filtering at a high level, which maps to maxLines and searchText, but adds no syntax or behavioral detail beyond the schema. The baseline of 3 is appropriate.

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 uses a specific verb and resource: 'Read the contents of a USS file.' It is clear what the tool does, but it does not explicitly distinguish itself from sibling tools like search_uss_files or list_uss_directory.

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 gives no explicit guidance on when to use this tool versus alternatives. It mentions line limits and grep filtering but does not say when to choose read_uss_file over search_uss_files, list_uss_directory, or similar tools.

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