Zcrafter Bridge

v0.4.0
io.github.ZcrafterAI/bridge Checked 1 day ago Published 3 days ago

IBM 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.

ParameterTypeDescription
raw_request *string

record_clarification Record Clarification

Log one clarifying question/answer pair against an active request.

ParameterTypeDescription
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).

ParameterTypeDescription
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.

ParameterTypeDescription
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…

ParameterTypeDescription
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.

ParameterTypeDescription
request_id *string

cancel_request Cancel Request

Abandon an active request from any phase. Fails if the request is already ABANDONED or COMPLETED.

ParameterTypeDescription
reason *string
request_id *string

complete_request Complete Request

Mark a request completed once its work is done. Requires an approved plan.

ParameterTypeDescription
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.

ParameterTypeDescription
request_id *string

list_requests List Requests

List requests filtered by status (default ACTIVE).

ParameterTypeDescription
statusstring

profile.list Profile.List

List the z/OSMF profile this server uses. You do not need to pass profileName.

ParameterTypeDescription
profileName

connection.verify Connection.Verify

Check z/OSMF reachability and authentication.

ParameterTypeDescription
profileName

dataset.list Dataset.List

List datasets matching a pattern.

ParameterTypeDescription
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.

ParameterTypeDescription
dataset *string
profileName

dataset.read Dataset.Read

Read a sequential dataset's contents.

ParameterTypeDescription
dataset *string
caseSensitive
contextLines
endLine
maxLines
profileName
regex
searchText
startLine

member.read Member.Read

Read one PDS member.

ParameterTypeDescription
dataset *string
member *string
caseSensitive
contextLines
endLine
maxLines
profileName
regex
searchText
startLine

member.list Member.List

List members of a PDS.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
dataset
jcl
member
profileName

job.list Job.List

List jobs by owner, prefix or status.

ParameterTypeDescription
limit
owner
prefix
profileName
status

job.status Job.Status

Status and return code for one job.

ParameterTypeDescription
jobId *string
jobName
profileName

job.wait Job.Wait

Poll until a job reaches a status.

ParameterTypeDescription
jobId *string
attempts
delayMs
jobName
profileName
status

job.jcl Job.Jcl

Retrieve the JCL a job was submitted with.

ParameterTypeDescription
jobId *string
jobName
profileName

job.spool.list Job.Spool.List

List a job's spool files.

ParameterTypeDescription
jobId *string
jobName
profileName

job.spool.read Job.Spool.Read

Read one spool file's contents.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
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).

ParameterTypeDescription
limit
maxRc
owner
prefix
profileName

uss.list Uss.List

List a z/OS UNIX directory: names, permissions, sizes.

ParameterTypeDescription
path *string
limit
profileName

uss.read Uss.Read

Read a z/OS UNIX text file.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
query *string
profileName

zowe.capabilities.list Zowe.Capabilities.List

List every tool this server exposes, with its approval requirement.

ParameterTypeDescription
approval
profileName

dataset.write Dataset.Write

Overwrite a sequential dataset's contents.

ParameterTypeDescription
content *string
dataset *string
request_id *string
profileName

member.write Member.Write

Create or overwrite a PDS member.

ParameterTypeDescription
content *string
dataset *string
member *string
request_id *string
profileName

member.patch Member.Patch

Apply a unified diff to a PDS member.

ParameterTypeDescription
dataset *string
member *string
request_id *string
unifiedDiff *string
profileName

dataset.create Dataset.Create

Allocate a new dataset.

ParameterTypeDescription
dataset *string
request_id *string
attributes
profileName

dataset.createLike Dataset.Createlike

Allocate a dataset modelled on another.

ParameterTypeDescription
dataset *string
likeDataset *string
request_id *string
attributes
profileName

dataset.delete Dataset.Delete

Delete a dataset.

ParameterTypeDescription
dataset *string
request_id *string
profileName

dataset.rename Dataset.Rename

Rename a dataset.

ParameterTypeDescription
dataset *string
newDataset *string
request_id *string
profileName

dataset.copy Dataset.Copy

Copy a dataset or member.

ParameterTypeDescription
request_id *string
sourceDataset *string
targetDataset *string
profileName
replace
sourceMember
targetMember

member.delete Member.Delete

Delete a PDS member.

ParameterTypeDescription
dataset *string
member *string
request_id *string
profileName

member.rename Member.Rename

Rename a PDS member.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
request_id *string
dataset
jcl
maxRc
profileName
waitSeconds

job.cancel Job.Cancel

Cancel a running job.

ParameterTypeDescription
jobId *string
request_id *string
jobName
profileName

job.purge Job.Purge

Purge a job from the spool.

ParameterTypeDescription
jobId *string
request_id *string
jobName
profileName

job.hold Job.Hold

Hold a job so it does not run or print.

ParameterTypeDescription
jobId *string
request_id *string
jobName
profileName

job.release Job.Release

Release a held job.

ParameterTypeDescription
jobId *string
request_id *string
jobName
profileName

job.changeClass Job.Changeclass

Move a job to another job class.

ParameterTypeDescription
jobClass *string
jobId *string
request_id *string
jobName
profileName

dataset.recall Dataset.Recall

Recall a migrated dataset from archive storage (HRECALL).

ParameterTypeDescription
dataset *string
request_id *string
profileName

dataset.migrate Dataset.Migrate

Migrate a dataset to archive storage (HMIGRATE).

ParameterTypeDescription
dataset *string
request_id *string
profileName

uss.write Uss.Write

Create or overwrite a z/OS UNIX text file.

ParameterTypeDescription
content *string
path *string
request_id *string
profileName

uss.create Uss.Create

Create an empty z/OS UNIX file or a directory.

ParameterTypeDescription
path *string
request_id *string
mode
profileName
type

uss.delete Uss.Delete

Delete a z/OS UNIX file or directory.

ParameterTypeDescription
path *string
request_id *string
profileName
recursive

uss.rename Uss.Rename

Move or rename a z/OS UNIX file or directory.

ParameterTypeDescription
newPath *string
path *string
request_id *string
profileName

uss.chmod Uss.Chmod

Change the permissions of a z/OS UNIX file or directory.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
command *string
request_id *string
caseSensitive
consoleName
contextLines
endLine
maxLines
profileName
regex
searchText
startLine