fetch_resources_by_check_name
Retrieve resources for specific compliance checks using asset run ID and check name. Returns resource details, types, and compliance status with pagination support for large datasets.
Instructions
Get resources for given asset run id, and check name. Function accepts page number (page) and page size (pageSize) for pagination. If MCP client host unable to handle large response use page and pageSize. If the request times out retry with pagination, increasing pageSize from 10 to 50.
If the resource data set is large to fetch efficiently or results in timeouts, it is recommended to use the 'summary tool' instead to get a summarized view of the resource.
Call fetch_resources_for_check with page=1, pageSize=10
Note the totalPages from the response
Continue calling each page until complete
Summarize all results together
Args: - id: Asset run id. - checkName: Check name.
Returns: - resources (List[ResourceVO]): A list of resources. - name (str): Name of the resource. - resourceType (str): Type of the resource. - complianceStatus (str): Compliance status of the resource. - error (Optional[str]): An error message if any issues occurred during retrieval.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| checkName | Yes | ||
| page | No | ||
| pageSize | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resources | No | ||
| page | No | ||
| totalPage | No | ||
| totalItems | No | ||
| error | No |