get_services
Retrieve PagerDuty services by name, team, or service ID to inspect service details and filter results for incident and ownership workflows.
Instructions
Get PagerDuty services by filters or get details for a specific service ID.
Call patterns:
Search by name:
query="Service Name"with the default context (omitcurrent_user_context; limited to your teams).By team: pass
team_ids(impliescurrent_user_context=False, including overriding an explicit True).Do not set
current_user_context=Falsewith onlyquery; that errors becauseteam_idsare required in False mode.
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": "get_services"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Limit the number of results (optional). Not used if `service_id` is provided. | |
| query | No | Filter services whose names contain the search query (optional). Works with default `current_user_context=True` (limited to your teams). Not a substitute for `team_ids` when context is False. Not used if `service_id` is provided. | |
| include | No | List of fields to include in the response. If specified, only these fields will be returned for each service | |
| team_ids | No | Filter results to only services assigned to teams with the given IDs (optional). Providing this parameter implies `current_user_context=False` (overrides explicit True). Not used if `service_id` is provided. | |
| service_id | No | The service ID to retrieve (optional, cannot be used with any other filters). | |
| current_user_context | No | Use current user's team IDs to filter (default: True); errors if the current user belongs to no teams. Ignored when `team_ids` are provided (those imply False, even if this is explicitly True). Not used if `service_id` is provided. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||