{"openapi":"3.1.0","info":{"title":"Rollbar Occurrences (BYOK) API","version":"0.1.0","description":"Rollbar Occurrences (BYOK) lets an AI assistant read your own Rollbar Occurrences data through the Rollbar Occurrences API with a key you supply (read-scope access token). Read-only: 5 tools (get_occurrence, get_occurrence_counts, get_activated_item_counts, list_team_projects, list_project_teams). The BYOK key travels with each request, is used for that one call only and is never stored, logged...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-rollbar-occurrences.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-rollbar-occurrences/docs"},"termsOfService":"https://connectorbay.com/byok-rollbar-occurrences/terms"},"servers":[{"url":"https://byok-rollbar-occurrences.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-rollbar-occurrences/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/get_occurrence":{"post":{"operationId":"get_occurrence","summary":"Works with a project access token or an account access token (read scope). Get one occurrence by id: item, time, environ","description":"Works with a project access token or an account access token (read scope). Get one occurrence by id: item, time, environment, level, language, framework and code version. Request, person and stack details in the payload are not returned. Use for \"Show Rollbar occurrence 1234567890\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"occurrence_id":{"description":"Numeric occurrence id (the number in a Rollbar occurrence link, or the last_occurrence_id of an item).","maximum":1000000000000000,"minimum":1,"title":"Occurrence Id","type":"integer"},"project_id":{"anyOf":[{"maximum":1000000000000,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Account tokens only: id of the project to read; project tokens leave this out.","title":"Project Id"}},"required":["occurrence_id"],"title":"get_occurrenceArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_occurrence_counts":{"post":{"operationId":"get_occurrence_counts","summary":"Works with a project access token or an account access token (read scope). Get counts of occurrences per time bucket (mi","description":"Works with a project access token or an account access token (read scope). Get counts of occurrences per time bucket (minute, hour or day), optionally for one item, environments and a level range. The answer is the raw report from Rollbar. Use for \"How many errors did my Rollbar project get per day\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"project_id":{"anyOf":[{"maximum":1000000000000,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Account tokens only: id of the project to read; project tokens leave this out.","title":"Project Id"},"bucket_size":{"anyOf":[{"enum":[60,3600,86400],"type":"integer"},{"type":"null"}],"default":86400,"description":"Bucket size in seconds: 60, 3600 or 86400.","title":"Bucket Size"},"environments":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated environments to include, for example 'production,staging'; leave out for all.","title":"Environments"},"min_level":{"anyOf":[{"enum":["debug","info","warning","error","critical"],"type":"string"},{"type":"null"}],"default":"error","description":"Lowest item level to count.","title":"Min Level"},"max_level":{"anyOf":[{"enum":["debug","info","warning","error","critical"],"type":"string"},{"type":"null"}],"default":null,"description":"Highest item level to count.","title":"Max Level"},"item_id":{"anyOf":[{"maximum":1000000000000,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Only count occurrences of this item id.","title":"Item Id"}},"title":"get_occurrence_countsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_activated_item_counts":{"post":{"operationId":"get_activated_item_counts","summary":"Works with a project access token or an account access token (read scope). Get the number of new and reactivated items p","description":"Works with a project access token or an account access token (read scope). Get the number of new and reactivated items per day for a project. The answer is the raw report from Rollbar. Use for \"How many new or reactivated Rollbar items appeared per day\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"project_id":{"anyOf":[{"maximum":1000000000000,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Account tokens only: id of the project to read; project tokens leave this out.","title":"Project Id"},"buckets":{"anyOf":[{"maximum":366,"minimum":2,"type":"integer"},{"type":"null"}],"default":60,"description":"Number of daily buckets to return (2 to 366).","title":"Buckets"},"environments":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated environments to include, for example 'production,staging'; leave out for all.","title":"Environments"}},"title":"get_activated_item_countsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_team_projects":{"post":{"operationId":"list_team_projects","summary":"Needs an account access token with read scope. List the projects a team is assigned to, as team and project id pairs. Us","description":"Needs an account access token with read scope. List the projects a team is assigned to, as team and project id pairs. Use for \"Which Rollbar projects does team 272686 have\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"team_id":{"description":"Numeric team id, as returned by list_teams in the Rollbar connector.","maximum":1000000000000,"minimum":1,"title":"Team Id","type":"integer"}},"required":["team_id"],"title":"list_team_projectsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_project_teams":{"post":{"operationId":"list_project_teams","summary":"Needs an account access token with read scope. List the teams assigned to a project, as team and project id pairs. Use f","description":"Needs an account access token with read scope. List the teams assigned to a project, as team and project id pairs. Use for \"Which Rollbar teams are assigned to project 12345\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"project_id":{"description":"Numeric project id, as returned by list_projects in the Rollbar connector.","maximum":1000000000000,"minimum":1,"title":"Project Id","type":"integer"},"exclude_builtin_teams":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True to leave out the built-in Owners and Everyone teams.","title":"Exclude Builtin Teams"},"exclude_owners_team":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True to leave out only the Owners team.","title":"Exclude Owners Team"}},"required":["project_id"],"title":"list_project_teamsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}