Home / Servers / PagerDuty API / get_templates

List templates

An MCP tool from the PagerDuty API server, hosted on mcp.hjlabs.in.

List templates Get a list of all the template on an account Scoped OAuth requires: templates.read [GET /templates]

Name on the gateway: pagerduty_api__get_templates · read-only.

Parameters

NameTypeDescription
limitintegerThe number of results per page.
offsetintegerOffset to start pagination search results.
totalbooleanBy default the total field in pagination responses is set to null to provide…
querystringTemplate name or description to search
template_typestringFilters templates by type.
sort_byname | name:asc | name:desc | created_at | created_at:asc | created_at:descUsed to specify both the field you wish to sort the results on…

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "pagerduty_api__get_templates",
  "arguments": {}
}

Or connect the PagerDuty API server directly, which lists 459 tools including this one:

Run in your terminal
claude mcp add --transport http hj-pagerduty-api https://mcp.hjlabs.in/mcp/pagerduty-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the list templates tool with limit set to ….

More from PagerDuty API