Skip to main content
Glama
NotHarshhaa

mainframe-mcp-server

by NotHarshhaa

list_jobs

Read-onlyIdempotent

Lists z/OS batch jobs filtered by owner, job name prefix, status, or return code, with result capping to control output.

Instructions

List z/OS batch jobs filtered by owner, name prefix, status, or return code. Supports result capping.

Input Schema

NameRequiredDescriptionDefault
ownerNoOwner (user id) filter (max 8 chars). Use "*" for all. Defaults to "*".
prefixNoJob name prefix filter, wildcards allowed (e.g. "PAY*"). Defaults to "*".
statusNoOptional lifecycle status filter applied after retrieval.
maxResultsNoMaximum number of jobs to return (default: server configured maxJobListResults).
returnCodeNoOptional return-code prefix filter (case-insensitive), e.g. "ABEND", "JCL ERROR", "CC 00".
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.2/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, so the safety profile is covered. The description adds the fact that results can be capped, but says nothing about what happens when the cap is hit (silent truncation vs. a truncation notice), result ordering, or whether filtering is server-side versus applied client-side after retrieval.

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 short sentences, zero preamble, purpose front-loaded before the cap note. Slightly thin rather than bloated; the only weak element is the unqualified "supports result capping" phrase, which could be replaced with something load-bearing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Six optional parameters at full schema coverage and no output schema means the definition is minimally sufficient to invoke. But for a listing tool it omits things an agent needs to reason about results: default cap value, result ordering, and truncation behavior, which the sibling-heavy context makes more consequential.

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 every parameter including the environment pointer and returnCode formats is already documented in the schema. The description's filter list duplicates that rather than adding semantics (e.g., how filters combine, whether status filtering is post-retrieval). Baseline 3 applies.

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 ("List z/OS batch jobs") and enumerates the filter axes, which maps cleanly to the schema. It does not, however, distinguish itself from close siblings like find_failed_jobs or get_user_jobs_summary, which an agent would plausibly confuse it with.

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?

There is no when-to-use / when-not-to-use guidance and no named alternative, despite the sibling set containing several overlapping job-listing tools (find_failed_jobs, get_user_jobs_summary, scheduler_job_status). "Supports result capping" is a capability note, not usage guidance.

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