Zcrafter Bridge
v0.4.0IBM z/OS mainframe tools for AI agents.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
start_request Start Request
Begin a new mainframe request. Phase starts at CLARIFYING.
| Parameter | Type | Description |
|---|---|---|
raw_request * | string |
record_clarification Record Clarification
Log one clarifying question/answer pair against an active request.
| Parameter | Type | Description |
|---|---|---|
answer * | string | |
question * | string | |
request_id * | string |
draft_spec Draft Spec
Write a new spec revision. Editing an already-approved spec un-approves it (and any approved plan).
| Parameter | Type | Description |
|---|---|---|
content * | string | |
request_id * | string |
approve_spec Approve Spec
Ask the person to approve the latest spec revision. The server shows them the spec and waits for their answer; this call cannot approve anything by itself. If it returns WAITING_FOR_PERSON, tell the person an approval is waiting and call it again.
| Parameter | Type | Description |
|---|---|---|
request_id * | string |
draft_plan Draft Plan
Write a new plan revision. Requires an approved spec. Editing an approved plan un-approves it. `steps` lists every change the plan makes, one object per mutating tool call: {"tool": "member.write", "args": {"dataset": "HLQ.SRC", "member": "PAYCALC"}}. Each step must name its target (dataset, member, path, command, job id). Include content, unifiedDiff or jcl when you know the exact text: the person then approves exactly that, and the call must send exactly that. Add "times": N when one step has to run more than once. After approval only calls that match a step run; anything else is refused, s…
| Parameter | Type | Description |
|---|---|---|
content * | string | |
request_id * | string | |
steps |
approve_plan Approve Plan
Ask the person to approve the latest plan revision and its steps. The server shows them the plan and waits for their answer; this call cannot approve anything by itself. Once approved, the mutating tools run for this request, but only the steps the plan lists. If it returns WAITING_FOR_PERSON, tell the person an approval is waiting and call it again.
| Parameter | Type | Description |
|---|---|---|
request_id * | string |
cancel_request Cancel Request
Abandon an active request from any phase. Fails if the request is already ABANDONED or COMPLETED.
| Parameter | Type | Description |
|---|---|---|
reason * | string | |
request_id * | string |
complete_request Complete Request
Mark a request completed once its work is done. Requires an approved plan.
| Parameter | Type | Description |
|---|---|---|
request_id * | string |
get_request_status Get Request Status
Return full detail for a request: phase, status, clarifications, spec/plan text, the plan's steps and which are left, approvals, recent actions.
| Parameter | Type | Description |
|---|---|---|
request_id * | string |
list_requests List Requests
List requests filtered by status (default ACTIVE).
| Parameter | Type | Description |
|---|---|---|
status | string |
profile.list Profile.List
List the z/OSMF profile this server uses. You do not need to pass profileName.
| Parameter | Type | Description |
|---|---|---|
profileName |
connection.verify Connection.Verify
Check z/OSMF reachability and authentication.
| Parameter | Type | Description |
|---|---|---|
profileName |
dataset.list Dataset.List
List datasets matching a pattern.
| Parameter | Type | Description |
|---|---|---|
pattern * | string | |
limit | ||
profileName |
dataset.info Dataset.Info
Attributes of one dataset without reading it: organization, record format and length, block size, volume, whether it is migrated.
| Parameter | Type | Description |
|---|---|---|
dataset * | string | |
profileName |
dataset.read Dataset.Read
Read a sequential dataset's contents.
| Parameter | Type | Description |
|---|---|---|
dataset * | string | |
caseSensitive | ||
contextLines | ||
endLine | ||
maxLines | ||
profileName | ||
regex | ||
searchText | ||
startLine |
member.read Member.Read
Read one PDS member.
| Parameter | Type | Description |
|---|---|---|
dataset * | string | |
member * | string | |
caseSensitive | ||
contextLines | ||
endLine | ||
maxLines | ||
profileName | ||
regex | ||
searchText | ||
startLine |
member.list Member.List
List members of a PDS.
| Parameter | Type | Description |
|---|---|---|
dataset * | string | |
limit | ||
pattern | ||
profileName |
member.search Member.Search
Search every member of a PDS for a string. Returns the matching lines with member and line number.
| Parameter | Type | Description |
|---|---|---|
dataset * | string | |
searchString * | string | |
caseSensitive | ||
limit | ||
pattern | ||
profileName | ||
regex |
member.preview Member.Preview
Dry run of a write or a patch: changes nothing. Give the whole new content, or a unifiedDiff, and it returns the diff against what is there now, whether a diff applies, and what would go wrong: lines longer than the record length, tabs, characters the mainframe cannot store, COBOL or JCL past its last column. Use it before asking a person to approve an edit.
| Parameter | Type | Description |
|---|---|---|
dataset * | string | |
content | ||
maxLines | ||
member | ||
profileName | ||
unifiedDiff |
jcl.analyze Jcl.Analyze
Read JCL without submitting it: the job card, each step and its program or procedure, every DD and the dataset it reads, creates, updates or deletes, and syntax problems by line. Use it to see what a job touches, and to check JCL before job.run.
| Parameter | Type | Description |
|---|---|---|
dataset | ||
jcl | ||
member | ||
profileName |
job.list Job.List
List jobs by owner, prefix or status.
| Parameter | Type | Description |
|---|---|---|
limit | ||
owner | ||
prefix | ||
profileName | ||
status |
job.status Job.Status
Status and return code for one job.
| Parameter | Type | Description |
|---|---|---|
jobId * | string | |
jobName | ||
profileName |
job.wait Job.Wait
Poll until a job reaches a status.
| Parameter | Type | Description |
|---|---|---|
jobId * | string | |
attempts | ||
delayMs | ||
jobName | ||
profileName | ||
status |
job.jcl Job.Jcl
Retrieve the JCL a job was submitted with.
| Parameter | Type | Description |
|---|---|---|
jobId * | string | |
jobName | ||
profileName |
job.spool.list Job.Spool.List
List a job's spool files.
| Parameter | Type | Description |
|---|---|---|
jobId * | string | |
jobName | ||
profileName |
job.spool.read Job.Spool.Read
Read one spool file's contents.
| Parameter | Type | Description |
|---|---|---|
jobId * | string | |
spoolId * | string | |
caseSensitive | ||
contextLines | ||
endLine | ||
jobName | ||
maxLines | ||
profileName | ||
regex | ||
searchText | ||
startLine |
job.output Job.Output
Read a job's spool output. Pass searchText to find lines in a large log instead of returning all of it; ddName or stepName to read one part of it. Long output is cut at a cap and says so.
| Parameter | Type | Description |
|---|---|---|
jobId * | string | |
caseSensitive | ||
contextLines | ||
ddName | ||
endLine | ||
jobName | ||
maxLines | ||
profileName | ||
regex | ||
searchText | ||
startLine | ||
stepName |
job.diagnose Job.Diagnose
Why a job failed, in one call: the step and program that failed, the completion code and what it means, the lines of the output that say why, and what to check next. Start here for any failed job instead of reading its spool.
| Parameter | Type | Description |
|---|---|---|
jobId * | string | |
jobName | ||
maxRc | ||
profileName |
abend.explain Abend.Explain
What a completion code means and what usually causes it: a system abend (S0C7, SB37, S806), a user abend (U4038), a return code (CC 0012) or JCL ERROR. Answered from a built-in table; the mainframe is not contacted.
| Parameter | Type | Description |
|---|---|---|
code * | string | |
profileName |
job.steps Job.Steps
Each step of a job with its program and completion code. Use it to find the step that failed before reading the spool.
| Parameter | Type | Description |
|---|---|---|
jobId * | string | |
jobName | ||
profileName |
job.failed Job.Failed
List finished jobs that ended badly: an abend, a JCL error, or a return code above maxRc (default 4).
| Parameter | Type | Description |
|---|---|---|
limit | ||
maxRc | ||
owner | ||
prefix | ||
profileName |
uss.list Uss.List
List a z/OS UNIX directory: names, permissions, sizes.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
limit | ||
profileName |
uss.read Uss.Read
Read a z/OS UNIX text file.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
caseSensitive | ||
contextLines | ||
endLine | ||
maxLines | ||
profileName | ||
regex | ||
searchText | ||
startLine |
system.list System.List
List the z/OS systems defined to z/OSMF, with sysplex and z/OS version.
| Parameter | Type | Description |
|---|---|---|
profileName |
tso.query Tso.Query
Run one read-only TSO command and return its output: LISTCAT, LISTDS, LISTALC, LISTUSER, LISTGRP, RLIST, SEARCH, STATUS, TIME. Anything else needs tso.command.
| Parameter | Type | Description |
|---|---|---|
command * | string | |
caseSensitive | ||
contextLines | ||
endLine | ||
maxLines | ||
profileName | ||
regex | ||
searchText | ||
startLine |
zowe.tools.search Zowe.Tools.Search
Search this server's own tool catalog by keyword.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
profileName |
zowe.capabilities.list Zowe.Capabilities.List
List every tool this server exposes, with its approval requirement.
| Parameter | Type | Description |
|---|---|---|
approval | ||
profileName |
dataset.write Dataset.Write
Overwrite a sequential dataset's contents.
| Parameter | Type | Description |
|---|---|---|
content * | string | |
dataset * | string | |
request_id * | string | |
profileName |
member.write Member.Write
Create or overwrite a PDS member.
| Parameter | Type | Description |
|---|---|---|
content * | string | |
dataset * | string | |
member * | string | |
request_id * | string | |
profileName |
member.patch Member.Patch
Apply a unified diff to a PDS member.
| Parameter | Type | Description |
|---|---|---|
dataset * | string | |
member * | string | |
request_id * | string | |
unifiedDiff * | string | |
profileName |
dataset.create Dataset.Create
Allocate a new dataset.
| Parameter | Type | Description |
|---|---|---|
dataset * | string | |
request_id * | string | |
attributes | ||
profileName |
dataset.createLike Dataset.Createlike
Allocate a dataset modelled on another.
| Parameter | Type | Description |
|---|---|---|
dataset * | string | |
likeDataset * | string | |
request_id * | string | |
attributes | ||
profileName |
dataset.delete Dataset.Delete
Delete a dataset.
| Parameter | Type | Description |
|---|---|---|
dataset * | string | |
request_id * | string | |
profileName |
dataset.rename Dataset.Rename
Rename a dataset.
| Parameter | Type | Description |
|---|---|---|
dataset * | string | |
newDataset * | string | |
request_id * | string | |
profileName |
dataset.copy Dataset.Copy
Copy a dataset or member.
| Parameter | Type | Description |
|---|---|---|
request_id * | string | |
sourceDataset * | string | |
targetDataset * | string | |
profileName | ||
replace | ||
sourceMember | ||
targetMember |
member.delete Member.Delete
Delete a PDS member.
| Parameter | Type | Description |
|---|---|---|
dataset * | string | |
member * | string | |
request_id * | string | |
profileName |
member.rename Member.Rename
Rename a PDS member.
| Parameter | Type | Description |
|---|---|---|
dataset * | string | |
member * | string | |
newMember * | string | |
request_id * | string | |
profileName |
job.submit Job.Submit
Submit JCL, inline or from a dataset, and return at once.
| Parameter | Type | Description |
|---|---|---|
request_id * | string | |
dataset | ||
jcl | ||
profileName |
job.run Job.Run
Submit JCL, wait for the job to end, and return how it went: return code, each step, and for a failed job the same diagnosis job.diagnose gives. One plan step and one call instead of submit, wait, status, steps and output. If the job is still running when the wait ends it says so; the job is not submitted again.
| Parameter | Type | Description |
|---|---|---|
request_id * | string | |
dataset | ||
jcl | ||
maxRc | ||
profileName | ||
waitSeconds |
job.cancel Job.Cancel
Cancel a running job.
| Parameter | Type | Description |
|---|---|---|
jobId * | string | |
request_id * | string | |
jobName | ||
profileName |
job.purge Job.Purge
Purge a job from the spool.
| Parameter | Type | Description |
|---|---|---|
jobId * | string | |
request_id * | string | |
jobName | ||
profileName |
job.hold Job.Hold
Hold a job so it does not run or print.
| Parameter | Type | Description |
|---|---|---|
jobId * | string | |
request_id * | string | |
jobName | ||
profileName |
job.release Job.Release
Release a held job.
| Parameter | Type | Description |
|---|---|---|
jobId * | string | |
request_id * | string | |
jobName | ||
profileName |
job.changeClass Job.Changeclass
Move a job to another job class.
| Parameter | Type | Description |
|---|---|---|
jobClass * | string | |
jobId * | string | |
request_id * | string | |
jobName | ||
profileName |
dataset.recall Dataset.Recall
Recall a migrated dataset from archive storage (HRECALL).
| Parameter | Type | Description |
|---|---|---|
dataset * | string | |
request_id * | string | |
profileName |
dataset.migrate Dataset.Migrate
Migrate a dataset to archive storage (HMIGRATE).
| Parameter | Type | Description |
|---|---|---|
dataset * | string | |
request_id * | string | |
profileName |
uss.write Uss.Write
Create or overwrite a z/OS UNIX text file.
| Parameter | Type | Description |
|---|---|---|
content * | string | |
path * | string | |
request_id * | string | |
profileName |
uss.create Uss.Create
Create an empty z/OS UNIX file or a directory.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
request_id * | string | |
mode | ||
profileName | ||
type |
uss.delete Uss.Delete
Delete a z/OS UNIX file or directory.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
request_id * | string | |
profileName | ||
recursive |
uss.rename Uss.Rename
Move or rename a z/OS UNIX file or directory.
| Parameter | Type | Description |
|---|---|---|
newPath * | string | |
path * | string | |
request_id * | string | |
profileName |
uss.chmod Uss.Chmod
Change the permissions of a z/OS UNIX file or directory.
| Parameter | Type | Description |
|---|---|---|
mode * | string | |
path * | string | |
request_id * | string | |
profileName | ||
recursive |
tso.command Tso.Command
Run one TSO command and return its output (ALLOCATE, DELETE, RENAME, RACF commands...). The plan step must give the exact command. SUBMIT is refused: use job.submit.
| Parameter | Type | Description |
|---|---|---|
command * | string | |
request_id * | string | |
caseSensitive | ||
contextLines | ||
endLine | ||
maxLines | ||
profileName | ||
regex | ||
searchText | ||
startLine |
console.command Console.Command
Issue one MVS operator command and return the response. The plan step must give the exact command.
| Parameter | Type | Description |
|---|---|---|
command * | string | |
request_id * | string | |
caseSensitive | ||
consoleName | ||
contextLines | ||
endLine | ||
maxLines | ||
profileName | ||
regex | ||
searchText | ||
startLine |