{"openapi":"3.1.0","info":{"title":"GTmetrix Pages (BYOK) API","version":"0.1.0","description":"GTmetrix Pages (BYOK) lets an AI assistant read your own GTmetrix Pages data through the GTmetrix Pages API with a key you supply (GTmetrix API key). Read-only: 6 tools (list_pages, get_page, list_page_tags, get_page_tag, list_alert_events, get_alert_conditions). The BYOK key travels with each request, is used for that one call only and is never stored, logged or cached; it is only ever sent to...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-gtmetrix-pages.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-gtmetrix-pages/docs"},"termsOfService":"https://connectorbay.com/byok-gtmetrix-pages/terms"},"servers":[{"url":"https://byok-gtmetrix-pages.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-gtmetrix-pages/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/list_pages":{"post":{"operationId":"list_pages","summary":"List the pages in your GTmetrix dashboard with URL, monitoring frequency, location, browser, latest report id and time, ","description":"List the pages in your GTmetrix dashboard with URL, monitoring frequency, location, browser, latest report id and time, report count and tag ids. Reading costs no credits. Use for \"Which pages does GTmetrix monitor for me and how often\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"page_size":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"Results per page (1 to 500).","title":"Page Size"},"page_number":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page Number"},"sort":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Sort by created or latest_report_time; prefix with - for descending (default -created).","title":"Sort"},"filter_url":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only pages whose URL fuzzy-matches this text.","title":"Filter Url"},"filter_monitored":{"anyOf":[{"enum":["no","hourly","daily","weekly","monthly"],"type":"string"},{"type":"null"}],"default":null,"description":"Only pages with this monitoring frequency.","title":"Filter Monitored"},"filter_page_tag":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}],"default":null,"description":"Only pages that carry this tag id (from list_page_tags).","title":"Filter Page Tag"}},"title":"list_pagesArguments","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_page":{"post":{"operationId":"get_page","summary":"Get one page: URL, monitoring frequency, location, browser, latest report id and time, report count and tag ids. Use for","description":"Get one page: URL, monitoring frequency, location, browser, latest report id and time, report count and tag ids. Use for \"When was this GTmetrix page last tested\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"page_id":{"description":"Page ID (from list_pages).","maxLength":64,"title":"Page Id","type":"string"}},"required":["page_id"],"title":"get_pageArguments","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_page_tags":{"post":{"operationId":"list_page_tags","summary":"List all page tags of the account with name, description and colour. Use for \"Which tags do I use to group my GTmetrix p","description":"List all page tags of the account with name, description and colour. Use for \"Which tags do I use to group my GTmetrix pages\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"list_page_tagsArguments","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_page_tag":{"post":{"operationId":"get_page_tag","summary":"Get one page tag with its name, description and colour. Use for \"What is the GTmetrix tag tg1\".","description":"Get one page tag with its name, description and colour. Use for \"What is the GTmetrix tag tg1\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"tag_id":{"description":"Tag ID (from list_page_tags).","maxLength":64,"title":"Tag Id","type":"string"}},"required":["tag_id"],"title":"get_page_tagArguments","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_alert_events":{"post":{"operationId":"list_alert_events","summary":"List performance alerts a page triggered, newest first, with time, report id and the metric, operator, threshold and mea","description":"List performance alerts a page triggered, newest first, with time, report id and the metric, operator, threshold and measured value of each triggered condition. Recipient addresses are left out. Use for \"When did my GTmetrix page last breach its performance alerts\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"page_id":{"description":"Page ID (from list_pages).","maxLength":64,"title":"Page Id","type":"string"},"page_size":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"Results per page (1 to 500).","title":"Page Size"},"page_number":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page Number"}},"required":["page_id"],"title":"list_alert_eventsArguments","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_alert_conditions":{"post":{"operationId":"get_alert_conditions","summary":"Get the performance alert conditions configured for a page (metric, operator and threshold) and whether a video is kept ","description":"Get the performance alert conditions configured for a page (metric, operator and threshold) and whether a video is kept on alert. Notification recipients are left out. Use for \"What performance thresholds trigger alerts on my GTmetrix page\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"page_id":{"description":"Page ID (from list_pages).","maxLength":64,"title":"Page Id","type":"string"}},"required":["page_id"],"title":"get_alert_conditionsArguments","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}}}}