search_members
Search a z/OS PDS for members by wildcard pattern, then sort, cap results, and optionally return extended statistics such as modifier, record count, and change time.
Instructions
Search for members in a PDS, optionally filtered by wildcard pattern. Supports extended stats, result capping, and sorting.
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": {
"dsn": "<dsn>"
},
"name": "search_members"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dsn | Yes | PDS dataset name, e.g. "SYS1.PROCLIB". | |
| sortBy | No | Sort order for results: "name" (default), "modified" (newest first), or "size" (largest first). | |
| pattern | No | Member name pattern with "*"/"?" wildcards, e.g. "IKJ*". Omit to list all. | |
| maxResults | No | Maximum number of members to return after filtering. | |
| environment | No | Named target environment (see list_environments), e.g. "dev", "prod". Omit to use the server default. | |
| includeStats | No | Fetch extended member statistics: last-modifier userid, record count, and changed time. |