Template Get
template_getRetrieve Zabbix templates to inspect reusable monitoring configurations, filter by name, host, group, or template ID, and page through results.
Instructions
Get templates from Zabbix.
Templates are reusable collections of items, triggers, and graphs that can be applied to hosts. They standardize monitoring across multiple servers with the same role.
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": "template_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results to return. Default is 100. | |
| offset | No | Number of matching records to skip. Use with 'limit' to page through results; check 'has_more' and 'total' in the response. | |
| output | No | extend | |
| search | No | Substring search in template name. Matches partial names like 'Linux' finds 'Linux Server Template'. | |
| hostids | No | Return only templates linked to these hosts. An empty list matches none. | |
| groupids | No | Return only templates in these template groups. An empty list matches none. | |
| sortfield | No | Field to sort by. A deterministic sort is required for paging to be consistent. | host |
| sortorder | No | Sort direction - 'ASC' or 'DESC'. | ASC |
| select_tags | No | If true, include the tags for the templates (selectTags=extend). | |
| templateids | No | List of template IDs to get. Omit to return all templates; an empty list matches none. Find template IDs with a search or from host associations. | |
| count_output | No | If true, returns only the count of matched objects as an integer. | |
| select_hosts | No | If true, include the hosts that are linked to the templates (selectHosts=extend). | |
| select_groups | No | If true, include the template groups the templates belong to (selectTemplateGroups=extend). | |
| select_macros | No | If true, include the macros for the templates (selectMacros=extend). | |
| select_templates | No | If true, include the templates that are linked to these templates directly (selectTemplates=extend). | |
| template_name_contains | No | Shortcut to search for templates by name (constructs search={'host': template_name_contains}). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||