get_entity
Query a single entity by its ID using Grail DQL for Gen3 tenants or the classic Entities API for Gen2 tenants. Specify entity ID and optionally use classic mode.
Instructions
Queries a single Smartscape entity by id via Grail DQL (Gen3-native). Pass useClassic:true to use the classic Entities v2 API on Gen2 tenants.
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": {
"entityId": "<entityId>"
},
"name": "get_entity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entityId | Yes | Entity id, e.g. 'HOST-ABC123' or 'SERVICE-XYZ'. | |
| useClassic | No | Use the classic Entities v2 API instead of Grail DQL (only for Gen2 tenants that still expose /api/v2/entities). |