Skip to main content
Glama
NotHarshhaa

mainframe-mcp-server

by NotHarshhaa

analyze_logrec

Submits an EREP report job against the LOGREC dataset, waits for completion, and summarizes hardware and software error records for mainframe diagnostics.

Instructions

Submit an EREP (IFCEREP) report job against the LOGREC dataset, wait for completion, and summarize hardware/software error records (gated write: submits a batch job).

Input Schema

NameRequiredDescriptionDefault
reportNoEREP report type (default SUMMARY).
environmentNoNamed target environment (see list_environments), e.g. "dev", "prod". Omit to use the server default.
waitSecondsNoHow long to wait for the EREP job (default 60s).
logrecDatasetNoLOGREC dataset (default LOGREC_DATASET, typically SYS1.LOGREC).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A4/5.0
Behavior4/5

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

Adds real context beyond the annotations: the call actually submits a batch job and blocks waiting for it, and the parenthetical 'gated write' warns that write semantics apply even though destructiveHint is false. It does not explain what the gate requires (e.g., approve_write) or what happens if the wait times out, 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.

Conciseness5/5

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

A single front-loaded sentence covering action, resource, wait behavior, and output, with the write caveat tucked in parentheses. Nothing is redundant.

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 4-parameter, zero-required tool with annotations and no output schema, the description covers action, blocking behavior, write gating, and the kind of records returned. What's missing is the approval workflow precondition and timeout/failure behavior, which an agent would need before invoking.

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 (report enum, environment, waitSeconds, logrecDataset) are already documented with defaults and bounds. The description only echoes the LOGREC dataset target and adds no format or interaction details beyond the schema, so the baseline 3 applies.

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?

States a specific verb chain (submit an EREP/IFCEREP report job, wait, summarize) against a named resource (the LOGREC dataset) and names the output domain (hardware/software error records). That is clearly distinct from siblings such as summarize_abends, analyze_job_failure, or read_dataset, which operate on different data sources.

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: the mention of a 'gated write' hints that approval is involved, and 'wait for completion' implies a blocking call, but the description never says when to choose this over analyze_root_cause, summarize_abends, or investigate_incident, nor when not to use it.

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