arcade-mcp/toolkits/pagerduty_api/arcade_pagerduty_api/wrapper_tools/UpdateUserContactMethod.json
jottakka f2332a7682
[Moar][Rewrapping] Rewrapping tools (#653)
## Rewrapping

- Calendly
- Airtable
- Squareup
- PagerDuty
- Trello
- Miro

---------

Co-authored-by: Francisco Liberal <francisco@arcade.dev>
2025-10-24 18:05:33 -03:00

259 lines
25 KiB
JSON

{
"name": "UpdateUserContactMethod",
"fully_qualified_name": "PagerdutyApi.UpdateUserContactMethod@2.0.0",
"description": "Update a user's contact method on PagerDuty.\n\nThis tool updates the contact method of a specified user in a PagerDuty account. It's used when changes to a user's contact information are needed, such as updating an email or phone number for receiving notifications. Ensure the correct permissions (`users:contact_methods.write`) are in place before making this call.",
"toolkit": {
"name": "ArcadePagerdutyApi",
"description": null,
"version": "2.0.0"
},
"input": {
"parameters": [
{
"name": "resource_id",
"required": true,
"description": "The unique identifier of the user whose contact method is being updated. It should be a string representing the user's ID in PagerDuty.",
"value_schema": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "The ID of the resource."
},
"inferrable": true,
"http_endpoint_parameter_name": "id"
},
{
"name": "user_contact_method_id",
"required": true,
"description": "The unique identifier for the user's contact method to update.",
"value_schema": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "The contact method ID on the user."
},
"inferrable": true,
"http_endpoint_parameter_name": "contact_method_id"
},
{
"name": "set_accept_version_header",
"required": true,
"description": "Specify the API version using the `Accept` header for versioning purposes.",
"value_schema": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "The `Accept` header is used as a versioning header."
},
"inferrable": true,
"http_endpoint_parameter_name": "Accept"
},
{
"name": "content_type_header",
"required": true,
"description": "Specifies the media type of the request body. Use 'application/json'.",
"value_schema": {
"val_type": "string",
"inner_val_type": null,
"enum": [
"application/json"
],
"properties": null,
"inner_properties": null,
"description": ""
},
"inferrable": true,
"http_endpoint_parameter_name": "Content-Type"
},
{
"name": "updated_contact_method_info",
"required": false,
"description": "JSON object specifying the user's updated contact method details, such as email or phone number.",
"value_schema": {
"val_type": "json",
"inner_val_type": null,
"enum": null,
"properties": {
"contact_method": {
"val_type": "json",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": null
}
},
"inner_properties": null,
"description": "The user's contact method to be updated."
},
"inferrable": true,
"http_endpoint_parameter_name": "requestBody"
}
]
},
"output": {
"description": "Response from the API endpoint 'updateUserContactMethod'.",
"available_modes": [
"value",
"error",
"null"
],
"value_schema": {
"val_type": "json",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": null
}
},
"requirements": {
"authorization": {
"provider_id": "arcade-pagerduty",
"provider_type": "oauth2",
"id": null,
"oauth2": null
},
"secrets": null,
"metadata": null
},
"deprecation_message": null,
"metadata": {
"object_type": "api_wrapper_tool",
"version": "1.1.0",
"description": "Tools that enable LLMs to interact directly with the Pagerduty API."
},
"http_endpoint": {
"metadata": {
"object_type": "http_endpoint",
"version": "1.2.0",
"description": ""
},
"url": "https://api.pagerduty.com/users/{id}/contact_methods/{contact_method_id}",
"http_method": "PUT",
"headers": {},
"parameters": [
{
"name": "id",
"tool_parameter_name": "resource_id",
"description": "The ID of the resource.",
"value_schema": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "The ID of the resource."
},
"accepted_as": "path",
"required": true,
"deprecated": false,
"default": null,
"documentation_urls": []
},
{
"name": "contact_method_id",
"tool_parameter_name": "user_contact_method_id",
"description": "The contact method ID on the user.",
"value_schema": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "The contact method ID on the user."
},
"accepted_as": "path",
"required": true,
"deprecated": false,
"default": null,
"documentation_urls": []
},
{
"name": "Accept",
"tool_parameter_name": "set_accept_version_header",
"description": "The `Accept` header is used as a versioning header.",
"value_schema": {
"val_type": "string",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": "The `Accept` header is used as a versioning header."
},
"accepted_as": "header",
"required": true,
"deprecated": false,
"default": "application/vnd.pagerduty+json;version=2",
"documentation_urls": []
},
{
"name": "Content-Type",
"tool_parameter_name": "content_type_header",
"description": "",
"value_schema": {
"val_type": "string",
"inner_val_type": null,
"enum": [
"application/json"
],
"properties": null,
"inner_properties": null,
"description": ""
},
"accepted_as": "header",
"required": true,
"deprecated": false,
"default": "application/json",
"documentation_urls": []
},
{
"name": "requestBody",
"tool_parameter_name": "updated_contact_method_info",
"description": "The user's contact method to be updated.",
"value_schema": {
"val_type": "json",
"inner_val_type": null,
"enum": null,
"properties": {
"contact_method": {
"val_type": "json",
"inner_val_type": null,
"enum": null,
"properties": null,
"inner_properties": null,
"description": null
}
},
"inner_properties": null,
"description": "The user's contact method to be updated."
},
"accepted_as": "body",
"required": false,
"deprecated": false,
"default": null,
"documentation_urls": []
}
],
"documentation_urls": [],
"secrets": [
{
"arcade_key": "auth_token",
"parameter_name": "Authorization",
"accepted_as": "header",
"formatted_value": "Bearer {authorization}",
"description": "The OAuth token to use for authentication.",
"is_auth_token": true
}
],
"request_body_spec": "{\n \"content\": {\n \"application/json\": {\n \"schema\": {\n \"type\": \"object\",\n \"properties\": {\n \"contact_method\": {\n \"oneOf\": [\n {\n \"description\": \"The Phone Contact Method of the User, used for Voice or SMS.\",\n \"allOf\": [\n {\n \"allOf\": [\n {\n \"type\": \"object\",\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"readOnly\": true\n },\n \"summary\": {\n \"type\": \"string\",\n \"nullable\": true,\n \"readOnly\": true,\n \"description\": \"A short-form, server-generated string that provides succinct, important information about an object suitable for primary labeling of an entity in a client. In many cases, this will be identical to `name`, though it is not intended to be an identifier.\"\n },\n \"type\": {\n \"type\": \"string\",\n \"readOnly\": true,\n \"description\": \"A string that determines the schema of the object. This must be the standard name for the entity, suffixed by `_reference` if the object is a reference.\"\n },\n \"self\": {\n \"type\": \"string\",\n \"nullable\": true,\n \"readOnly\": true,\n \"format\": \"url\",\n \"description\": \"the API show URL at which the object is accessible\"\n },\n \"html_url\": {\n \"type\": \"string\",\n \"nullable\": true,\n \"readOnly\": true,\n \"format\": \"url\",\n \"description\": \"a URL at which the entity is uniquely displayed in the Web app\"\n }\n }\n },\n {\n \"type\": \"object\",\n \"description\": \"The method to contact a user.\",\n \"properties\": {\n \"type\": {\n \"type\": \"string\",\n \"description\": \"The type of contact method being created.\",\n \"enum\": [\n \"email_contact_method\",\n \"phone_contact_method\",\n \"push_notification_contact_method\",\n \"sms_contact_method\"\n ]\n },\n \"label\": {\n \"type\": \"string\",\n \"description\": \"The label (e.g., \\\"Work\\\", \\\"Mobile\\\", etc.).\"\n },\n \"address\": {\n \"type\": \"string\",\n \"description\": \"The \\\"address\\\" to deliver to: email, phone number, etc., depending on the type.\"\n }\n },\n \"discriminator\": {\n \"propertyName\": \"type\"\n },\n \"required\": [\n \"type\",\n \"label\",\n \"address\"\n ]\n }\n ]\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"type\": {\n \"type\": \"string\",\n \"enum\": [\n \"phone_contact_method\",\n \"sms_contact_method\"\n ]\n },\n \"country_code\": {\n \"type\": \"integer\",\n \"description\": \"The 1-to-3 digit country calling code.\",\n \"minimum\": 1,\n \"maximum\": 1999\n },\n \"enabled\": {\n \"type\": \"boolean\",\n \"description\": \"If true, this phone is capable of receiving SMS messages.\",\n \"readOnly\": true\n },\n \"blacklisted\": {\n \"type\": \"boolean\",\n \"description\": \"If true, this phone has been blacklisted by PagerDuty and no messages will be sent to it.\",\n \"readOnly\": true\n }\n },\n \"required\": [\n \"country_code\"\n ],\n \"example\": {\n \"type\": \"phone_contact_method\",\n \"label\": \"work\",\n \"country_code\": 123,\n \"address\": \"1234567\"\n }\n }\n ]\n },\n {\n \"description\": \"The Push Contact Method of the User.\",\n \"allOf\": [\n {\n \"allOf\": [\n {\n \"type\": \"object\",\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"readOnly\": true\n },\n \"summary\": {\n \"type\": \"string\",\n \"nullable\": true,\n \"readOnly\": true,\n \"description\": \"A short-form, server-generated string that provides succinct, important information about an object suitable for primary labeling of an entity in a client. In many cases, this will be identical to `name`, though it is not intended to be an identifier.\"\n },\n \"type\": {\n \"type\": \"string\",\n \"readOnly\": true,\n \"description\": \"A string that determines the schema of the object. This must be the standard name for the entity, suffixed by `_reference` if the object is a reference.\"\n },\n \"self\": {\n \"type\": \"string\",\n \"nullable\": true,\n \"readOnly\": true,\n \"format\": \"url\",\n \"description\": \"the API show URL at which the object is accessible\"\n },\n \"html_url\": {\n \"type\": \"string\",\n \"nullable\": true,\n \"readOnly\": true,\n \"format\": \"url\",\n \"description\": \"a URL at which the entity is uniquely displayed in the Web app\"\n }\n }\n },\n {\n \"type\": \"object\",\n \"description\": \"The method to contact a user.\",\n \"properties\": {\n \"type\": {\n \"type\": \"string\",\n \"description\": \"The type of contact method being created.\",\n \"enum\": [\n \"email_contact_method\",\n \"phone_contact_method\",\n \"push_notification_contact_method\",\n \"sms_contact_method\"\n ]\n },\n \"label\": {\n \"type\": \"string\",\n \"description\": \"The label (e.g., \\\"Work\\\", \\\"Mobile\\\", etc.).\"\n },\n \"address\": {\n \"type\": \"string\",\n \"description\": \"The \\\"address\\\" to deliver to: email, phone number, etc., depending on the type.\"\n }\n },\n \"discriminator\": {\n \"propertyName\": \"type\"\n },\n \"required\": [\n \"type\",\n \"label\",\n \"address\"\n ]\n }\n ]\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"type\": {\n \"type\": \"string\",\n \"enum\": [\n \"push_notification_contact_method\"\n ]\n },\n \"device_type\": {\n \"type\": \"string\",\n \"description\": \"The type of device.\",\n \"enum\": [\n \"android\",\n \"ios\"\n ],\n \"readOnly\": true\n },\n \"sounds\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"type\": {\n \"type\": \"string\",\n \"description\": \"The type of sound.\",\n \"enum\": [\n \"alert_high_urgency\",\n \"alert_low_urgency\"\n ]\n },\n \"file\": {\n \"type\": \"string\",\n \"description\": \"The sound file name.\"\n }\n }\n }\n },\n \"created_at\": {\n \"type\": \"string\",\n \"format\": \"date-time\",\n \"description\": \"Time at which the contact method was created.\"\n },\n \"blacklisted\": {\n \"type\": \"boolean\",\n \"description\": \"If true, this phone has been blacklisted by PagerDuty and no messages will be sent to it.\",\n \"readOnly\": true\n }\n },\n \"required\": [\n \"device_type\"\n ],\n \"example\": {\n \"type\": \"push_notification_contact_method\",\n \"label\": \"work\",\n \"device_type\": \"android\",\n \"address\": \"12341234\"\n }\n }\n ]\n },\n {\n \"description\": \"The Email Contact Method of the User.\",\n \"allOf\": [\n {\n \"allOf\": [\n {\n \"type\": \"object\",\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"readOnly\": true\n },\n \"summary\": {\n \"type\": \"string\",\n \"nullable\": true,\n \"readOnly\": true,\n \"description\": \"A short-form, server-generated string that provides succinct, important information about an object suitable for primary labeling of an entity in a client. In many cases, this will be identical to `name`, though it is not intended to be an identifier.\"\n },\n \"type\": {\n \"type\": \"string\",\n \"readOnly\": true,\n \"description\": \"A string that determines the schema of the object. This must be the standard name for the entity, suffixed by `_reference` if the object is a reference.\"\n },\n \"self\": {\n \"type\": \"string\",\n \"nullable\": true,\n \"readOnly\": true,\n \"format\": \"url\",\n \"description\": \"the API show URL at which the object is accessible\"\n },\n \"html_url\": {\n \"type\": \"string\",\n \"nullable\": true,\n \"readOnly\": true,\n \"format\": \"url\",\n \"description\": \"a URL at which the entity is uniquely displayed in the Web app\"\n }\n }\n },\n {\n \"type\": \"object\",\n \"description\": \"The method to contact a user.\",\n \"properties\": {\n \"type\": {\n \"type\": \"string\",\n \"description\": \"The type of contact method being created.\",\n \"enum\": [\n \"email_contact_method\",\n \"phone_contact_method\",\n \"push_notification_contact_method\",\n \"sms_contact_method\"\n ]\n },\n \"label\": {\n \"type\": \"string\",\n \"description\": \"The label (e.g., \\\"Work\\\", \\\"Mobile\\\", etc.).\"\n },\n \"address\": {\n \"type\": \"string\",\n \"description\": \"The \\\"address\\\" to deliver to: email, phone number, etc., depending on the type.\"\n }\n },\n \"discriminator\": {\n \"propertyName\": \"type\"\n },\n \"required\": [\n \"type\",\n \"label\",\n \"address\"\n ]\n }\n ]\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"type\": {\n \"type\": \"string\",\n \"enum\": [\n \"email_contact_method\"\n ]\n },\n \"send_short_email\": {\n \"type\": \"boolean\",\n \"description\": \"Send an abbreviated email message instead of the standard email output. Useful for email-to-SMS gateways and email based pagers.\",\n \"default\": false\n }\n },\n \"example\": {\n \"type\": \"email_contact_method\",\n \"label\": \"work\",\n \"address\": \"grady.haylie.126@hickle.net\",\n \"send_short_email\": false\n }\n }\n ]\n }\n ]\n }\n },\n \"required\": [\n \"contact_method\"\n ]\n },\n \"examples\": {\n \"request\": {\n \"summary\": \"Request Example\",\n \"value\": {\n \"contact_method\": {\n \"id\": \"PXPGF42\",\n \"type\": \"email_contact_method\",\n \"summary\": \"Work\",\n \"self\": \"https://api.pagerduty.com/users/PXPGF42/contact_method/PXPGF42\",\n \"label\": \"Work\",\n \"address\": \"grady.haylie.126@hickle.net\",\n \"send_short_email\": false\n }\n }\n }\n }\n }\n },\n \"description\": \"The user's contact method to be updated.\"\n}",
"use_request_body_schema_mode": true,
"validate_request_body_schema": true
}
}