list_datasets
Lists mainframe catalog datasets by high-level qualifier and optional pattern, with filters for dataset organization and a result limit.
Instructions
List catalog datasets matching a high-level qualifier (and optional pattern). Supports filtering by DSORG and capping result count.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"hlq": "<hlq>"
},
"name": "list_datasets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hlq | Yes | High-level qualifier, e.g. "SYS1". | |
| dsorg | No | Filter by dataset organisation: PO (PDS/PDSE), PS (sequential), DA (direct access). | |
| pattern | No | Optional lower-qualifier pattern appended to the HLQ, e.g. "PROC*". | |
| maxResults | No | Maximum number of datasets to return (default: all matched up to server limit). | |
| environment | No | Named target environment (see list_environments), e.g. "dev", "prod". Omit to use the server default. |