{
  "service": "bugsnag",
  "displayName": "Bugsnag",
  "categories": [
    "Developer Tools",
    "Security"
  ],
  "authTypes": [
    "api_key"
  ],
  "auth": [
    {
      "type": "api_key",
      "label": "Personal Auth Token",
      "placeholder": "BUGSNAG_PERSONAL_AUTH_TOKEN",
      "description": "Bugsnag personal auth token sent with the Authorization header using the token prefix. Find it on your Bugsnag project overview page after signing in: https://app.bugsnag.com/.",
      "extraFields": []
    }
  ],
  "homepageUrl": "https://www.bugsnag.com",
  "actions": [
    {
      "id": "bugsnag.get_latest_error_event",
      "service": "bugsnag",
      "name": "get_latest_error_event",
      "description": "Get the latest event recorded on a Bugsnag error.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "errorId": {
            "type": "string",
            "minLength": 1,
            "description": "The Bugsnag error identifier."
          }
        },
        "additionalProperties": false,
        "required": [
          "errorId"
        ],
        "description": "The input payload for retrieving the latest event on a Bugsnag error."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "event": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "description": "The Bugsnag event identifier."
              },
              "severity": {
                "type": "string",
                "minLength": 1,
                "description": "The Bugsnag event severity."
              },
              "context": {
                "type": "string",
                "minLength": 1,
                "description": "The application context associated with the event."
              }
            },
            "additionalProperties": true,
            "required": [
              "id"
            ],
            "description": "A Bugsnag event object."
          }
        },
        "additionalProperties": false,
        "required": [
          "event"
        ],
        "description": "The output payload for the latest Bugsnag error event request."
      }
    },
    {
      "id": "bugsnag.get_organization",
      "service": "bugsnag",
      "name": "get_organization",
      "description": "Get a Bugsnag organization by organization ID.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "description": "The Bugsnag organization identifier to retrieve."
          }
        },
        "additionalProperties": false,
        "required": [
          "organizationId"
        ],
        "description": "The input payload for retrieving a Bugsnag organization."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "organization": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "description": "The Bugsnag organization identifier."
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "description": "The Bugsnag organization name."
              },
              "slug": {
                "type": "string",
                "minLength": 1,
                "description": "The Bugsnag organization slug."
              }
            },
            "additionalProperties": true,
            "required": [
              "id"
            ],
            "description": "A Bugsnag organization object."
          }
        },
        "additionalProperties": false,
        "required": [
          "organization"
        ],
        "description": "The output payload for the Bugsnag organization detail request."
      }
    },
    {
      "id": "bugsnag.list_error_events",
      "service": "bugsnag",
      "name": "list_error_events",
      "description": "List the events recorded on a Bugsnag error.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string",
            "minLength": 1,
            "description": "The Bugsnag project identifier."
          },
          "errorId": {
            "type": "string",
            "minLength": 1,
            "description": "The Bugsnag error identifier."
          },
          "base": {
            "type": "string",
            "description": "The ISO 8601 timestamp used as the time anchor for the event list.",
            "format": "date-time"
          },
          "direction": {
            "type": "string",
            "enum": [
              "asc",
              "desc"
            ],
            "description": "The sort direction for the error events."
          },
          "perPage": {
            "type": "integer",
            "minimum": 1,
            "description": "The number of events to return per page."
          }
        },
        "additionalProperties": false,
        "required": [
          "projectId",
          "errorId"
        ],
        "description": "The input payload for listing events on a Bugsnag error."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "events": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "description": "The Bugsnag event identifier."
                },
                "severity": {
                  "type": "string",
                  "minLength": 1,
                  "description": "The Bugsnag event severity."
                },
                "context": {
                  "type": "string",
                  "minLength": 1,
                  "description": "The application context associated with the event."
                }
              },
              "additionalProperties": true,
              "required": [
                "id"
              ],
              "description": "A Bugsnag event object."
            },
            "description": "The events returned for the Bugsnag error."
          },
          "pagination": {
            "type": "object",
            "properties": {
              "nextUrl": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The absolute URL for the next page returned by the Bugsnag Link header."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "totalCount": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The total result count returned by the Bugsnag X-Total-Count header."
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false,
            "required": [
              "nextUrl",
              "totalCount"
            ],
            "description": "Pagination metadata normalized from Bugsnag response headers."
          }
        },
        "additionalProperties": false,
        "required": [
          "events",
          "pagination"
        ],
        "description": "The output payload for the Bugsnag error events request."
      }
    },
    {
      "id": "bugsnag.list_organization_projects",
      "service": "bugsnag",
      "name": "list_organization_projects",
      "description": "List the projects that belong to a Bugsnag organization.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "description": "The Bugsnag organization identifier that owns the projects."
          },
          "query": {
            "type": "string",
            "minLength": 1,
            "description": "The project-name search query."
          },
          "sort": {
            "type": "string",
            "enum": [
              "created_at",
              "name",
              "favorite"
            ],
            "description": "The field used to sort Bugsnag organization projects."
          },
          "direction": {
            "type": "string",
            "enum": [
              "asc",
              "desc"
            ],
            "description": "The sort direction for the project list."
          },
          "perPage": {
            "type": "integer",
            "minimum": 1,
            "description": "The number of projects to return per page."
          }
        },
        "additionalProperties": false,
        "required": [
          "organizationId"
        ],
        "description": "The input payload for listing Bugsnag organization projects."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "projects": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "description": "The Bugsnag project identifier."
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "description": "The Bugsnag project name."
                },
                "slug": {
                  "type": "string",
                  "minLength": 1,
                  "description": "The Bugsnag project slug."
                }
              },
              "additionalProperties": true,
              "required": [
                "id"
              ],
              "description": "A Bugsnag project object."
            },
            "description": "The projects returned for the Bugsnag organization."
          },
          "pagination": {
            "type": "object",
            "properties": {
              "nextUrl": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The absolute URL for the next page returned by the Bugsnag Link header."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "totalCount": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The total result count returned by the Bugsnag X-Total-Count header."
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false,
            "required": [
              "nextUrl",
              "totalCount"
            ],
            "description": "Pagination metadata normalized from Bugsnag response headers."
          }
        },
        "additionalProperties": false,
        "required": [
          "projects",
          "pagination"
        ],
        "description": "The output payload for the Bugsnag organization projects request."
      }
    },
    {
      "id": "bugsnag.list_organizations",
      "service": "bugsnag",
      "name": "list_organizations",
      "description": "List the organizations accessible to the current Bugsnag user.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "admin": {
            "type": "boolean",
            "description": "Whether to return only organizations where the current user is an admin."
          },
          "perPage": {
            "type": "integer",
            "minimum": 1,
            "description": "The number of organizations to return per page."
          }
        },
        "additionalProperties": false,
        "description": "The input payload for listing organizations accessible to the current user."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "organizations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "description": "The Bugsnag organization identifier."
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "description": "The Bugsnag organization name."
                },
                "slug": {
                  "type": "string",
                  "minLength": 1,
                  "description": "The Bugsnag organization slug."
                }
              },
              "additionalProperties": true,
              "required": [
                "id"
              ],
              "description": "A Bugsnag organization object."
            },
            "description": "The organizations accessible to the current Bugsnag user."
          },
          "pagination": {
            "type": "object",
            "properties": {
              "nextUrl": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The absolute URL for the next page returned by the Bugsnag Link header."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "totalCount": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The total result count returned by the Bugsnag X-Total-Count header."
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false,
            "required": [
              "nextUrl",
              "totalCount"
            ],
            "description": "Pagination metadata normalized from Bugsnag response headers."
          }
        },
        "additionalProperties": false,
        "required": [
          "organizations",
          "pagination"
        ],
        "description": "The output payload for the Bugsnag organization list request."
      }
    },
    {
      "id": "bugsnag.list_project_errors",
      "service": "bugsnag",
      "name": "list_project_errors",
      "description": "List the errors reported on a Bugsnag project.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string",
            "minLength": 1,
            "description": "The Bugsnag project identifier."
          },
          "base": {
            "type": "string",
            "description": "The ISO 8601 timestamp used as the time anchor for the error list.",
            "format": "date-time"
          },
          "sort": {
            "type": "string",
            "enum": [
              "last_seen",
              "first_seen",
              "users",
              "events",
              "unsorted"
            ],
            "description": "The field used to sort the project errors."
          },
          "direction": {
            "type": "string",
            "enum": [
              "asc",
              "desc"
            ],
            "description": "The sort direction for the project errors."
          },
          "perPage": {
            "type": "integer",
            "minimum": 1,
            "description": "The number of errors to return per page."
          }
        },
        "additionalProperties": false,
        "required": [
          "projectId"
        ],
        "description": "The input payload for listing Bugsnag project errors."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "description": "The Bugsnag error identifier."
                },
                "error_class": {
                  "type": "string",
                  "minLength": 1,
                  "description": "The Bugsnag error class."
                },
                "context": {
                  "type": "string",
                  "minLength": 1,
                  "description": "The application context associated with the error."
                }
              },
              "additionalProperties": true,
              "required": [
                "id"
              ],
              "description": "A Bugsnag error object."
            },
            "description": "The errors returned for the Bugsnag project."
          },
          "pagination": {
            "type": "object",
            "properties": {
              "nextUrl": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The absolute URL for the next page returned by the Bugsnag Link header."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "totalCount": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The total result count returned by the Bugsnag X-Total-Count header."
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false,
            "required": [
              "nextUrl",
              "totalCount"
            ],
            "description": "Pagination metadata normalized from Bugsnag response headers."
          }
        },
        "additionalProperties": false,
        "required": [
          "errors",
          "pagination"
        ],
        "description": "The output payload for the Bugsnag project errors request."
      }
    },
    {
      "id": "bugsnag.list_project_releases",
      "service": "bugsnag",
      "name": "list_project_releases",
      "description": "List the releases associated with a Bugsnag project.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string",
            "minLength": 1,
            "description": "The Bugsnag project identifier."
          },
          "releaseStage": {
            "type": "string",
            "minLength": 1,
            "description": "The release stage used to filter the project releases."
          },
          "base": {
            "type": "string",
            "description": "The ISO 8601 timestamp used as the upper time bound for the project releases.",
            "format": "date-time"
          },
          "sort": {
            "type": "string",
            "enum": [
              "timestamp",
              "percent_of_sessions"
            ],
            "description": "The field used to sort the project releases."
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "description": "The numeric offset used to paginate project releases."
          },
          "perPage": {
            "type": "integer",
            "minimum": 1,
            "maximum": 10,
            "description": "The number of releases to return per page."
          }
        },
        "additionalProperties": false,
        "required": [
          "projectId"
        ],
        "description": "The input payload for listing Bugsnag project releases."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "releases": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "description": "The Bugsnag release identifier."
                },
                "release_stage": {
                  "type": "string",
                  "minLength": 1,
                  "description": "The release stage reported by Bugsnag."
                },
                "version": {
                  "type": "string",
                  "minLength": 1,
                  "description": "The application version for the release."
                }
              },
              "additionalProperties": true,
              "required": [
                "id"
              ],
              "description": "A Bugsnag release object."
            },
            "description": "The releases returned for the Bugsnag project."
          },
          "pagination": {
            "type": "object",
            "properties": {
              "nextUrl": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The absolute URL for the next page returned by the Bugsnag Link header."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "totalCount": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The total result count returned by the Bugsnag X-Total-Count header."
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false,
            "required": [
              "nextUrl",
              "totalCount"
            ],
            "description": "Pagination metadata normalized from Bugsnag response headers."
          }
        },
        "additionalProperties": false,
        "required": [
          "releases",
          "pagination"
        ],
        "description": "The output payload for the Bugsnag project releases request."
      }
    }
  ]
}
