list_hosts
Retrieve host entities from Dynatrace Smartscape via Grail DQL or classic API, with optional tag or management zone filters.
Instructions
Queries Smartscape host entities via Grail DQL (Gen3-native). Pass useClassic:true to use the classic Entities v2 API on Gen2 tenants. Optional tag/management-zone filters only work with useClassic:true (Gen2).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_hosts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Filter by tag, e.g. 'env:prod'. Only applied when useClassic:true. | |
| managementZone | No | Filter by management zone name. Only applied when useClassic:true. | |
| pageSize | No | ||
| useClassic | No | Use the classic Entities v2 API instead of Grail DQL (only for Gen2 tenants that still expose /api/v2/entities). |