Skip to main content
Glama
NotHarshhaa

mainframe-mcp-server

by NotHarshhaa

submit_jcl

Destructive

Submits inline JCL to JES for execution with pre-flight validation, optional dry-run, change-ticket checks, and approval safeguards.

Instructions

Submit inline JCL to JES for execution. Governed: pre-flight scan, change ticket, change window, optional dry-run and human approval (SECURITY_* settings).

Input Schema

NameRequiredDescriptionDefault
jclYesThe complete inline JCL to submit (including the //JOB card).
waitNoWhether to wait for the job to complete execution before returning.
dryRunNoValidate and report without submitting. Runs the same structure checks, JCL scan, and governance report as a real submission.
notifyNoOverride the NOTIFY= parameter on the JOB card (TSO user id, max 8 chars).
timeoutNoMaximum time to wait in seconds (defaults to 30, max 300). Only used when wait=true.
jobClassNoOverride the CLASS= parameter on the JOB card (single char, A-Z or 0-9).
environmentNoNamed target environment (see list_environments), e.g. "dev", "prod". Omit to use the server default.
changeTicketNoChange/ticket ID for governed writes. Required when SECURITY_CHANGE_TICKET_PATTERN is configured.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, openWorldHint=true and non-idempotent, so the risk class is known. The description goes beyond that by disclosing the governance gates a call passes through (pre-flight scan, change ticket, change window, optional human approval governed by SECURITY_* settings), which materially affects whether a call will be blocked or held. It stops short of explaining failure modes or what a call returns.

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 sentences, no filler, with the verb and resource front-loaded before the governance caveat. The parenthetical "(SECURITY_* settings)" is terse to the point of being cryptic, slightly reducing clarity in exchange for brevity.

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?

For an 8-parameter mutation tool with no output schema, the description covers preconditions but says nothing about the return value (job ID, submission status, wait/timeout behavior) or what happens when governance rejects the submission. Annotations carry the risk profile, which keeps this at minimum-viable rather than inadequate.

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 jcl, wait, dryRun, timeout and changeTicket is already documented in the schema, and the description adds no syntax or format detail beyond it. The mention of "dry-run" echoes the schema's dryRun rather than extending it, so the 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?

The first sentence gives a specific verb and resource ("Submit inline JCL to JES for execution"), which clearly separates it from read-oriented siblings such as get_job_jcl or get_job_status. It does not explicitly name the sibling a caller should prefer for adjacent operations, but the action is unambiguous.

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?

"Governed: pre-flight scan, change ticket, change window, optional dry-run and human approval" signals the prerequisites and the existence of a safe non-submitting mode, which is real usage context. However, it never states when to choose this over alternatives (e.g. dryRun before a real submit, or list_environments to pick a target) and no when-not guidance is given.

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