fetch_resource_types
Retrieve resource types and counts from asset run IDs to analyze compliance inventory and track infrastructure resource distribution.
Instructions
Get resource types for given asset run id. Use 'fetch_assets_summary' tool to get assets run id 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 50 to 100.
Call fetch_resource_types with page=1, pageSize=50
Note the totalPages from the response
Continue calling each page until complete
Summarize all results together
Args: - id(str): Asset run id
Returns:
- resourceTypes (List[AssetsVo]): A list of resource types.
- resourceType (str): Resource type.
- totalResources (int): Total number of resources.
- error (Optional[str]): An error message if any issues occurred during retrieval.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| page | No | ||
| pageSize | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||