GTmetrix MCP
gtmetrix_mcpRun GTmetrix page performance tests, read reports, HAR files and history, and manage page tags, monitoring and alerts through GTmetrix's hosted MCP server.
Acciones disponibles (18)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Gtmetrix delete page tagGTMETRIX_MCP_GTMETRIX_DELETE_PAGE_TAGAcciónPermanently delete a page tag: irreversible. Removes the tag from every page that had it (including from any saved report filters that reference it) and deletes the tag itself — there is no undo. Find the tag_id with gtmetrix_list_page_tags first (its page_count tells you how many pages will be affected) if you're not certain which tag this is. To rename or recolor a tag instead, use gtmetrix_save_page_tag with its tag_id. Requires a GTmetrix account with at least Tester-level org access (Team organizations) — not available to guest connections; call gtmetrix_reauthenticate to sign in.
GTMETRIX_MCP_GTMETRIX_DELETE_PAGE_TAGAcciónPermanently delete a page tag: irreversible. Removes the tag from every page that had it (including from any saved report filters that reference it) and deletes the tag itself — there is no undo. Find the tag_id with gtmetrix_list_page_tags first (its page_count tells you how many pages will be affected) if you're not certain which tag this is. To rename or recolor a tag instead, use gtmetrix_save_page_tag with its tag_id. Requires a GTmetrix account with at least Tester-level org access (Team organizations) — not available to guest connections; call gtmetrix_reauthenticate to sign in.
Parámetros de entrada
tag_idstringObligatorioThe tag to delete, as returned by gtmetrix_list_page_tags' tag_id.
Parámetros de salida
namestringObligatorioThe deleted tag's name, for confirmation.
tag_idstringObligatorioThe deleted tag's id.
pages_detachednumberObligatorioNumber of (non-deleted) pages the tag was attached to at the time of deletion.
Gtmetrix get account statusGTMETRIX_MCP_GTMETRIX_GET_ACCOUNT_STATUSAcciónReturns the current GTmetrix account status including plan type, remaining API credits, next refill date, and feature access flags. Guest connections get a truncated status (remaining guest API credits only); call gtmetrix_reauthenticate to sign in for the full account.
GTMETRIX_MCP_GTMETRIX_GET_ACCOUNT_STATUSAcciónReturns the current GTmetrix account status including plan type, remaining API credits, next refill date, and feature access flags. Guest connections get a truncated status (remaining guest API credits only); call gtmetrix_reauthenticate to sign in for the full account.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
is_guestbooleanTrue when the caller is a guest connection (no GTmetrix account); guest status is truncated and most account fields are omitted.
team_rolestringThe caller's organization role, if part of a team.
next_refillstring | nullISO 8601 timestamp of the next credit refill, or null if none.
account_typestringObligatorioShort plan/account type label (e.g. 'PRO', 'Basic', 'Guest').
account_emailstringThe account's email address; omitted for guest connections.
pro_locationsbooleanObligatorioWhether the account has access to PRO test locations.
refill_amountnumber | nullCredits added at each refill, or null if the plan has none.
whitelabel_pdfbooleanObligatorioWhether the account can generate whitelabel PDF reports.
api_credits_remainingnumberAPI credits left; omitted if the caller can't view credits.
Gtmetrix get catalogGTMETRIX_MCP_GTMETRIX_GET_CATALOGAcciónFetch a GTmetrix lookup catalog (JSON). Use these to resolve names to IDs accepted by `gtmetrix_start_test` (location, browser, simulate_device, throttle) or to look up Lighthouse audit metadata. Same content as the equivalent `gtmetrix://catalog/<id>` MCP resource; use either surface.
Available `catalog_id` values:
- `browsers` — GTmetrix Browser Catalog. JSON list of test browsers available to the authenticated user.
- `locations` — GTmetrix Location Catalog. JSON list of test locations.
- `simulated-devices` — GTmetrix Simulated Device Catalog. JSON list of preset simulated-device profiles.
- `throttle-connections` — GTmetrix Throttle / Connection Catalog. JSON list of preset network-throttling profiles for start_test's `throttle` option.
- `lighthouse-audits` — GTmetrix Lighthouse Audit Catalog. JSON catalog of Lighthouse audit metadata for the latest supported version.
GTMETRIX_MCP_GTMETRIX_GET_CATALOGAcciónFetch a GTmetrix lookup catalog (JSON). Use these to resolve names to IDs accepted by `gtmetrix_start_test` (location, browser, simulate_device, throttle) or to look up Lighthouse audit metadata. Same content as the equivalent `gtmetrix://catalog/<id>` MCP resource; use either surface. Available `catalog_id` values: - `browsers` — GTmetrix Browser Catalog. JSON list of test browsers available to the authenticated user. - `locations` — GTmetrix Location Catalog. JSON list of test locations. - `simulated-devices` — GTmetrix Simulated Device Catalog. JSON list of preset simulated-device profiles. - `throttle-connections` — GTmetrix Throttle / Connection Catalog. JSON list of preset network-throttling profiles for start_test's `throttle` option. - `lighthouse-audits` — GTmetrix Lighthouse Audit Catalog. JSON catalog of Lighthouse audit metadata for the latest supported version.
Parámetros de entrada
catalog_idstringObligatorioenumShort catalog ID (e.g. 'browsers', 'locations', 'lighthouse-audits').
browserslocationssimulated-devicesthrottle-connectionslighthouse-audits
Parámetros de salida
contentstringObligatorioThe catalog content, as a JSON-encoded string.
Gtmetrix get guideGTMETRIX_MCP_GTMETRIX_GET_GUIDEAcciónFetch a GTmetrix documentation guide (markdown). Same content as the equivalent `gtmetrix://docs/<id>-guide` MCP resource; use either surface. You can read a guide before configuring a non-trivial test, interpreting a test error, or analyzing a finished report.
Available `guide_id` values:
- `har-analysis` — GTmetrix HAR Analysis Guide. Field reference and analysis recipes for the GTmetrix Report HAR (net.har) waterfall.
- `test-options` — GTmetrix Test Analysis Options. Reference for every option accepted by the gtmetrix_start_test tool, including defaults, value ranges, related list tools, and credit-cost notes.
- `report-analysis` — GTmetrix Report Analysis Guide. Methodology for analyzing a GTmetrix Report: how to present scores and Core Web Vitals, how to read the Top Lighthouse Issues block, and when to download the HAR (per-request timing/headers) vs.
- `general-test-error` — GTmetrix General Test Error Guide. How to interpret and respond to general (non-Lighthouse) GTmetrix test errors: server / HTTP status, network connectivity, SSL, DNS, generic timeouts, redirects, and non-HTML responses.
- `lighthouse-error` — GTmetrix Lighthouse Error Guide. How to interpret and respond to Lighthouse-specific GTmetrix test errors: missing CPU / network idle, missing FCP / LCP, browser crashed or out-of-memory, debugger-statement pauses.
GTMETRIX_MCP_GTMETRIX_GET_GUIDEAcciónFetch a GTmetrix documentation guide (markdown). Same content as the equivalent `gtmetrix://docs/<id>-guide` MCP resource; use either surface. You can read a guide before configuring a non-trivial test, interpreting a test error, or analyzing a finished report. Available `guide_id` values: - `har-analysis` — GTmetrix HAR Analysis Guide. Field reference and analysis recipes for the GTmetrix Report HAR (net.har) waterfall. - `test-options` — GTmetrix Test Analysis Options. Reference for every option accepted by the gtmetrix_start_test tool, including defaults, value ranges, related list tools, and credit-cost notes. - `report-analysis` — GTmetrix Report Analysis Guide. Methodology for analyzing a GTmetrix Report: how to present scores and Core Web Vitals, how to read the Top Lighthouse Issues block, and when to download the HAR (per-request timing/headers) vs. - `general-test-error` — GTmetrix General Test Error Guide. How to interpret and respond to general (non-Lighthouse) GTmetrix test errors: server / HTTP status, network connectivity, SSL, DNS, generic timeouts, redirects, and non-HTML responses. - `lighthouse-error` — GTmetrix Lighthouse Error Guide. How to interpret and respond to Lighthouse-specific GTmetrix test errors: missing CPU / network idle, missing FCP / LCP, browser crashed or out-of-memory, debugger-statement pauses.
Parámetros de entrada
guide_idstringObligatorioenumShort guide ID (e.g. 'test-options', 'report-analysis').
har-analysistest-optionsreport-analysisgeneral-test-errorlighthouse-error
Parámetros de salida
contentstringObligatorioThe guide content, as a markdown string.
Gtmetrix get page alert conditionsGTMETRIX_MCP_GTMETRIX_GET_PAGE_ALERT_CONDITIONSAcciónFetch the performance-alert conditions currently configured for a GTmetrix page: whether a video is kept when an alert triggers, the metric/operator/threshold conditions, and (for Team organizations) the recipients notified. The output matches the input of gtmetrix_set_page_alert_conditions except for each condition's display-only value_fmt, which must be dropped before passing conditions back. Use gtmetrix_get_page_alert_events to see events already triggered by these conditions. Requires a GTmetrix account - not available to guest connections; call gtmetrix_reauthenticate to sign in.
GTMETRIX_MCP_GTMETRIX_GET_PAGE_ALERT_CONDITIONSAcciónFetch the performance-alert conditions currently configured for a GTmetrix page: whether a video is kept when an alert triggers, the metric/operator/threshold conditions, and (for Team organizations) the recipients notified. The output matches the input of gtmetrix_set_page_alert_conditions except for each condition's display-only value_fmt, which must be dropped before passing conditions back. Use gtmetrix_get_page_alert_events to see events already triggered by these conditions. Requires a GTmetrix account - not available to guest connections; call gtmetrix_reauthenticate to sign in.
Parámetros de entrada
page_idstringObligatorioStable page identifier, as returned by gtmetrix_list_pages.
Parámetros de salida
page_idstringObligatorioThe page's stable identifier.
send_toobject[]Recipients notified when an alert triggers. Only present for Team organizations, where it is always required when setting conditions.
page_urlstringObligatorioThe URL of the GTmetrix page.
conditionsobject[]ObligatorioThe page's currently-configured alert conditions.
create_videobooleanObligatorioWhether a video recording is kept when an alert triggers (PRO only).
Gtmetrix get page alert eventsGTMETRIX_MCP_GTMETRIX_GET_PAGE_ALERT_EVENTSAcciónFetch the performance-alert events triggered by a GTmetrix page, so an agent can investigate why a page alerted. Each event is either a triggered condition (metric/operator/threshold, plus the actual value - both raw and human-readable) or a report-generation failure. Includes the report_id for events backed by a report - pass it as gtmetrix_get_report's report_id to see the full report that triggered the alert. Use gtmetrix_get_page_alert_conditions to see what conditions are currently configured for the page. Supports pagination via page/limit (mirrors the REST API's page[number]/page[size]); results are returned in chronological order (oldest first) within each page. Requires a GTmetrix account - not available to guest connections; call gtmetrix_reauthenticate to sign in.
GTMETRIX_MCP_GTMETRIX_GET_PAGE_ALERT_EVENTSAcciónFetch the performance-alert events triggered by a GTmetrix page, so an agent can investigate why a page alerted. Each event is either a triggered condition (metric/operator/threshold, plus the actual value - both raw and human-readable) or a report-generation failure. Includes the report_id for events backed by a report - pass it as gtmetrix_get_report's report_id to see the full report that triggered the alert. Use gtmetrix_get_page_alert_conditions to see what conditions are currently configured for the page. Supports pagination via page/limit (mirrors the REST API's page[number]/page[size]); results are returned in chronological order (oldest first) within each page. Requires a GTmetrix account - not available to guest connections; call gtmetrix_reauthenticate to sign in.
Parámetros de entrada
pageintegerPage number to fetch, newest page first (maps to the API's page[number]; default 1).
limitintegerMaximum number of alert events per page (maps to the API's page[size]; default 50, max 500).
page_idstringObligatorioStable page identifier, as returned by gtmetrix_list_pages.
Parámetros de salida
pageintegerObligatorioThe page number returned (maps to the API's page[number]).
limitintegerObligatorioEffective page size applied (maps to the API's page[size]).
eventsobject[]ObligatorioAlert events for the page, in chronological order (oldest first within this page).
page_idstringObligatorioThe page's stable identifier.
has_morebooleanObligatorioTrue if there are older alert events beyond this page.
page_urlstringObligatorioThe URL of the GTmetrix page.
returned_countintegerObligatorioNumber of alert events returned.
Gtmetrix get reportGTMETRIX_MCP_GTMETRIX_GET_REPORTAcciónRetrieve the report data using the report ID. Reports are the result of a completed test and contain page load information. The result includes a structured hierarchy of web performance metrics: GTmetrix scores, Performance/Structure grades, Core Web Vitals (LCP, TBT, CLS) with qualitative ratings, the top 5 highest-impact Lighthouse issues pre-sorted by engineering priority, a computed Resource Summary, a HAR (waterfall) download URL, and a full Lighthouse JSON download URL. This data may be consumed by human end-users seeking optimization advice, or by autonomous software agents automating development workflows. Tailor the consumption, parsing, and presentation of this data to best serve the immediate objective and technical depth of the consuming entity. Key artifacts in the response:
- Resource Summary — per-resource-type request count and transferred / uncompressed byte totals (document, font, image, script, stylesheet, media, other). Pre-computed; no need to re-derive from the HAR.
- Top Lighthouse Issues — the 5 highest-impact structural problems Lighthouse found, each with a plain-text description, an Impact label (Critical / Major / Moderate / Minor / Informational), display value, and up to 5 example offending items. Pre-sorted by impact.
- HAR (Waterfall) — a HAR 1.2 JSON of every network request from the test, with per-phase timings (DNS, connect, SSL, wait, receive), headers, and sizes. The URL is in the response; download it with curl and inspect locally (it can be many MB, so fetching via MCP is not recommended). If you have no network egress to reach that URL, call `gtmetrix_get_report_har` with the report_id to fetch it over MCP instead (size-limited).
- Lighthouse JSON — the full Lighthouse Report Result with every audit (not just the top 5), full audit details, and metadata. The URL is in the response; download with curl. Resolve unfamiliar audit IDs via the lighthouse-audits catalog.
For the full methodology and recommended follow-up flows, read the analysis guide MCP resource `gtmetrix://docs/report-analysis-guide` (or call `gtmetrix_get_guide` with `guide_id: 'report-analysis'`); see also `gtmetrix://docs/har-analysis-guide` (or `gtmetrix_get_guide` with `guide_id: 'har-analysis'`) for HAR field meanings and `gtmetrix://catalog/lighthouse-audits` (or `gtmetrix_get_catalog` with `catalog_id: 'lighthouse-audits'`) to resolve any Lighthouse audit ID.
GTMETRIX_MCP_GTMETRIX_GET_REPORTAcciónRetrieve the report data using the report ID. Reports are the result of a completed test and contain page load information. The result includes a structured hierarchy of web performance metrics: GTmetrix scores, Performance/Structure grades, Core Web Vitals (LCP, TBT, CLS) with qualitative ratings, the top 5 highest-impact Lighthouse issues pre-sorted by engineering priority, a computed Resource Summary, a HAR (waterfall) download URL, and a full Lighthouse JSON download URL. This data may be consumed by human end-users seeking optimization advice, or by autonomous software agents automating development workflows. Tailor the consumption, parsing, and presentation of this data to best serve the immediate objective and technical depth of the consuming entity. Key artifacts in the response: - Resource Summary — per-resource-type request count and transferred / uncompressed byte totals (document, font, image, script, stylesheet, media, other). Pre-computed; no need to re-derive from the HAR. - Top Lighthouse Issues — the 5 highest-impact structural problems Lighthouse found, each with a plain-text description, an Impact label (Critical / Major / Moderate / Minor / Informational), display value, and up to 5 example offending items. Pre-sorted by impact. - HAR (Waterfall) — a HAR 1.2 JSON of every network request from the test, with per-phase timings (DNS, connect, SSL, wait, receive), headers, and sizes. The URL is in the response; download it with curl and inspect locally (it can be many MB, so fetching via MCP is not recommended). If you have no network egress to reach that URL, call `gtmetrix_get_report_har` with the report_id to fetch it over MCP instead (size-limited). - Lighthouse JSON — the full Lighthouse Report Result with every audit (not just the top 5), full audit details, and metadata. The URL is in the response; download with curl. Resolve unfamiliar audit IDs via the lighthouse-audits catalog. For the full methodology and recommended follow-up flows, read the analysis guide MCP resource `gtmetrix://docs/report-analysis-guide` (or call `gtmetrix_get_guide` with `guide_id: 'report-analysis'`); see also `gtmetrix://docs/har-analysis-guide` (or `gtmetrix_get_guide` with `guide_id: 'har-analysis'`) for HAR field meanings and `gtmetrix://catalog/lighthouse-audits` (or `gtmetrix_get_catalog` with `catalog_id: 'lighthouse-audits'`) to resolve any Lighthouse audit ID.
Parámetros de entrada
report_idstringObligatorioThe report ID returned by get_test_status when the test is complete
Parámetros de salida
regionstringObligatorioDisplay name of the test region/location.
scoresobjectScore block; present only for Lighthouse-based reports.
browserstringObligatorioDisplay name of the browser used for the test.
har_urlstring | nullObligatorioURL to download the HAR (waterfall) JSON, or null if absent.
test_urlstringObligatorioThe URL that was tested.
page_tagsstring[]ObligatorioExact tag ids assigned to the report's page (empty array if none).
report_idstringObligatorioThe report's unique slug.
report_urlstringObligatorioPublic URL of the full GTmetrix report.
page_requestsnumber | nullObligatorioTotal number of page requests, or null if N/A.
timing_metricsobjectObligatorioPage-load timing metrics.
core_web_vitalsobjectCore Web Vitals block; present only for Lighthouse reports.
page_size_bytesnumber | nullObligatorioTotal page weight in bytes, or null if N/A.
analysis_optionsstringFormatted analysis options used for the test, if any.
resource_summaryobjectPer-resource-type request counts and byte totals; present only when HAR breakdown data is available.
lighthouse_json_urlstring | nullObligatorioURL to download the full Lighthouse JSON, or null if absent.
top_lighthouse_issuesobject[]Up to 5 highest-impact Lighthouse structure issues, pre-sorted; present only when issues with positive impact exist.
Gtmetrix get report harGTMETRIX_MCP_GTMETRIX_GET_REPORT_HARAcciónFetch the raw HAR (net.har) for a completed report and return it inline. Use this only when you cannot download the HAR URL from `gtmetrix_get_report` directly (e.g. your environment has no network egress to gtmetrix.com); otherwise prefer downloading the URL with your own tools. The HAR is a HAR 1.2 JSON of every network request with per-phase timings, headers, and sizes; Authorization headers and cookies are stripped. By default the HAR is only returned if it is under 256 KB — a multi-MB HAR returned inline can overflow the context window. If it exceeds the limit the tool returns the file size and the download URL instead; you may re-call with `force: true` to return it anyway (use with care). See `gtmetrix://docs/har-analysis-guide` (or `gtmetrix_get_guide` with `guide_id: 'har-analysis'`) for field meanings and analysis recipes. Requires a GTmetrix account — not available to guest connections; call gtmetrix_reauthenticate to sign in.
GTMETRIX_MCP_GTMETRIX_GET_REPORT_HARAcciónFetch the raw HAR (net.har) for a completed report and return it inline. Use this only when you cannot download the HAR URL from `gtmetrix_get_report` directly (e.g. your environment has no network egress to gtmetrix.com); otherwise prefer downloading the URL with your own tools. The HAR is a HAR 1.2 JSON of every network request with per-phase timings, headers, and sizes; Authorization headers and cookies are stripped. By default the HAR is only returned if it is under 256 KB — a multi-MB HAR returned inline can overflow the context window. If it exceeds the limit the tool returns the file size and the download URL instead; you may re-call with `force: true` to return it anyway (use with care). See `gtmetrix://docs/har-analysis-guide` (or `gtmetrix_get_guide` with `guide_id: 'har-analysis'`) for field meanings and analysis recipes. Requires a GTmetrix account — not available to guest connections; call gtmetrix_reauthenticate to sign in.
Parámetros de entrada
forcebooleanBypass the size limit and return the HAR regardless of size. WARNING: a large HAR (often several MB) can overflow the model context window — only set this if you understand the cost.
report_idstringObligatorioA GTmetrix report identifier (8 characters, e.g. hDjmzKIf).
Parámetros de salida
harstringThe full HAR 1.2 content as a JSON string, with Authorization headers and cookies stripped. Present only when the HAR is returned.
returnedbooleanObligatorioWhether the HAR payload is included in this response. False when the HAR exceeded the inline limit and was not forced.
report_idstringThe report identifier the HAR belongs to. Present when the HAR is returned.
over_limitbooleanObligatorioWhether the HAR exceeds the inline size limit (262144 bytes).
download_urlstringObligatorioDirect download URL for the report's net.har file.
har_size_bytesnumberObligatorioSize of the (sanitized) HAR JSON in bytes.
har_size_humanstringObligatorioHuman-readable HAR size (e.g. '1.2 MB').
inline_limit_bytesnumberObligatorioThe inline size limit in bytes above which the HAR is refused.
Gtmetrix get report historyGTMETRIX_MCP_GTMETRIX_GET_REPORT_HISTORYAcciónFetch the historical performance data for a GTmetrix page. A page is the combination of a URL and its test settings; each time it is tested or monitored a new report is created. Returns all reports for the page in reverse chronological order, including both successful reports (with scores, Core Web Vitals, timing metrics, and a link to each report) and any failed reports. Accepts either a report_id (to automatically resolve the parent page) or a page_id directly. Provide exactly one — not both. The response is structured for trend analysis: identifying performance regressions, metric outliers, and patterns over time. Use gtmetrix_get_report with a specific report_id to drill into the full audit details for any anomaly found in the history. Requires a GTmetrix account — not available to guest connections; call gtmetrix_reauthenticate to sign in.
GTMETRIX_MCP_GTMETRIX_GET_REPORT_HISTORYAcciónFetch the historical performance data for a GTmetrix page. A page is the combination of a URL and its test settings; each time it is tested or monitored a new report is created. Returns all reports for the page in reverse chronological order, including both successful reports (with scores, Core Web Vitals, timing metrics, and a link to each report) and any failed reports. Accepts either a report_id (to automatically resolve the parent page) or a page_id directly. Provide exactly one — not both. The response is structured for trend analysis: identifying performance regressions, metric outliers, and patterns over time. Use gtmetrix_get_report with a specific report_id to drill into the full audit details for any anomaly found in the history. Requires a GTmetrix account — not available to guest connections; call gtmetrix_reauthenticate to sign in.
Parámetros de entrada
limitintegerMaximum number of successful reports to return, newest first (default 200, max 500). Capped by the account plan's history limit.
page_idstringA GTmetrix page identifier. Use when you already have the page id from a previous call. Provide either report_id OR page_id — not both.
report_idstringA GTmetrix report identifier (e.g. hDjmzKIf). The page that owns this report is looked up automatically. Provide either report_id OR page_id — not both.
Parámetros de salida
limitintegerObligatorioEffective limit applied to the history query.
has_morebooleanTrue if the plan's history limit hid older reports; omitted otherwise.
page_urlstringObligatorioThe URL of the GTmetrix page.
date_rangeobjectSpan covered by the returned reports; omitted when there is no history.
failed_countintegerObligatorioNumber of failed reports returned.
test_settingsobjectObligatorioThe page's test settings (browser and region).
failed_reportsobject[]ObligatorioFailed reports.
successful_countintegerObligatorioNumber of successful reports returned.
successful_reportsobject[]ObligatorioSuccessful reports, newest first.
Gtmetrix get testGTMETRIX_MCP_GTMETRIX_GET_TESTAcciónGet the current status of a started test. The tool long-polls server-side: pass `wait_seconds` (default 25, max 30) and it returns as soon as the test completes or the budget expires. When it returns 'still running', re-issue the call immediately — do not use shell sleep between calls; the next call will long-poll again. Once the state is complete, use the returned report ID with gtmetrix_get_report to retrieve results. Reports are retained for 1 month by default unless a higher retention was set when the test was started. If the test ends in the `error` state, the response is marked `isError: true` and lists the URI(s) of one or both MCP guides — `gtmetrix://docs/general-test-error-guide` and `gtmetrix://docs/lighthouse-error-guide` — that explain the failure and the recommended next steps. Read the referenced guide(s) before responding to the user (equivalently, call `gtmetrix_get_guide` with `guide_id: 'general-test-error'` or `'lighthouse-error'`).
GTMETRIX_MCP_GTMETRIX_GET_TESTAcciónGet the current status of a started test. The tool long-polls server-side: pass `wait_seconds` (default 25, max 30) and it returns as soon as the test completes or the budget expires. When it returns 'still running', re-issue the call immediately — do not use shell sleep between calls; the next call will long-poll again. Once the state is complete, use the returned report ID with gtmetrix_get_report to retrieve results. Reports are retained for 1 month by default unless a higher retention was set when the test was started. If the test ends in the `error` state, the response is marked `isError: true` and lists the URI(s) of one or both MCP guides — `gtmetrix://docs/general-test-error-guide` and `gtmetrix://docs/lighthouse-error-guide` — that explain the failure and the recommended next steps. Read the referenced guide(s) before responding to the user (equivalently, call `gtmetrix_get_guide` with `guide_id: 'general-test-error'` or `'lighthouse-error'`).
Parámetros de entrada
test_idstringObligatorioThe test ID returned by start_test
wait_secondsintegerLong-poll budget in seconds (default 25, max 30). The tool internally polls the test status every ~2s and returns as soon as the test completes or this budget expires. If still running when the budget expires, re-issue the same call immediately — do not sleep client-side between calls.
Parámetros de salida
statestringObligatorioThe current job state, e.g. 'queued', 'started', 'completed', 'stopped'.
startedstringFormatted timestamp of when the test started; omitted if not yet started.
test_idstringObligatorioThe test ID that was queried.
finishedstringFormatted timestamp of when the test finished; present only when complete.
report_idstringThe report ID to fetch results with gtmetrix_get_report; present only when the test is complete and a report is ready.
still_runningbooleanObligatorioTrue when the test is still running and the long-poll budget expired; re-issue the same call immediately to keep polling.
Gtmetrix list pagesGTMETRIX_MCP_GTMETRIX_LIST_PAGESAcciónList GTmetrix pages for the authenticated account. A page is a URL + test-settings combination; each test run creates a new report. Returns pages with their latest report scores, Core Web Vitals, analysis options summary, monitoring status, tags, and total report count (default 200 pages, max 2000). All filter parameters are optional and combinable:
- url: substring match against the page URL
- browser: exact browser ID — resolve a name to an ID via gtmetrix_get_catalog (catalog_id='browsers')
- location: exact region ID — resolve via gtmetrix_get_catalog (catalog_id='locations')
- throttle: exact connection string in 'down_kbps/up_kbps/latency_ms' format — presets via gtmetrix_get_catalog (catalog_id='throttle-connections')
- simulate_device: exact device ID — resolve via gtmetrix_get_catalog (catalog_id='simulated-devices')
- Boolean flags: adblock, video, stop_onload, anonymize_user_agent, httpauth, cookies, filter, dns — pass true to show only pages with that option enabled
- monitoring: filter by monitoring frequency — 'none' (aliases 'no', 'never'), 'hourly', 'daily', 'weekly', 'monthly'
- private: true = show only private pages (omit to include all pages)
- tag: substring match against tag names — shows pages with any matching tag (discovery)
- tag_ids: exact tag ids (as seen in each returned page's tags[].tag_id) — page must have ALL listed tags (exact/AND match, same as the REST API's filter[page_tag] and the Dashboard)
- limit: number of pages to return (default 200, max 2000)
For the full option reference read gtmetrix://docs/test-options-guide (or call gtmetrix_get_guide with guide_id='test-options'). Use gtmetrix_get_report_history with a page_id to drill into trend data for any page found here. Requires a GTmetrix account — not available to guest connections; call gtmetrix_reauthenticate to sign in.
GTMETRIX_MCP_GTMETRIX_LIST_PAGESAcciónList GTmetrix pages for the authenticated account. A page is a URL + test-settings combination; each test run creates a new report. Returns pages with their latest report scores, Core Web Vitals, analysis options summary, monitoring status, tags, and total report count (default 200 pages, max 2000). All filter parameters are optional and combinable: - url: substring match against the page URL - browser: exact browser ID — resolve a name to an ID via gtmetrix_get_catalog (catalog_id='browsers') - location: exact region ID — resolve via gtmetrix_get_catalog (catalog_id='locations') - throttle: exact connection string in 'down_kbps/up_kbps/latency_ms' format — presets via gtmetrix_get_catalog (catalog_id='throttle-connections') - simulate_device: exact device ID — resolve via gtmetrix_get_catalog (catalog_id='simulated-devices') - Boolean flags: adblock, video, stop_onload, anonymize_user_agent, httpauth, cookies, filter, dns — pass true to show only pages with that option enabled - monitoring: filter by monitoring frequency — 'none' (aliases 'no', 'never'), 'hourly', 'daily', 'weekly', 'monthly' - private: true = show only private pages (omit to include all pages) - tag: substring match against tag names — shows pages with any matching tag (discovery) - tag_ids: exact tag ids (as seen in each returned page's tags[].tag_id) — page must have ALL listed tags (exact/AND match, same as the REST API's filter[page_tag] and the Dashboard) - limit: number of pages to return (default 200, max 2000) For the full option reference read gtmetrix://docs/test-options-guide (or call gtmetrix_get_guide with guide_id='test-options'). Use gtmetrix_get_report_history with a page_id to drill into trend data for any page found here. Requires a GTmetrix account — not available to guest connections; call gtmetrix_reauthenticate to sign in.
Parámetros de entrada
dnsbooleanPass true to show only pages with custom DNS overrides configured.
tagstringSubstring match against tag names. Shows only pages that have at least one tag whose name contains this string. Useful for discovery; for exact filtering use `tag_ids` instead.
urlstringSubstring match against the page URL (case-insensitive). E.g. 'example.com' matches any page whose URL contains that string.
limitintegerMaximum number of pages to return (default 200, max 2000).
videobooleanPass true to show only pages with video recording enabled.
filterbooleanPass true to show only pages with URL allow/block filtering configured.
adblockbooleanPass true to show only pages with AdBlock enabled.
browserstringExact browser ID. Use gtmetrix_get_catalog with catalog_id='browsers' to resolve a name to an ID.
cookiesbooleanPass true to show only pages with cookies configured.
privatebooleanPass true to show only private pages. Omit to include all pages regardless of visibility.
tag_idsstring[]Exact tag ids (from `tags[].tag_id`) the page must have ALL of — unlike `tag`, no substring/any-match. Same semantics as the REST API's filter[page_tag] and the Dashboard's tag filter.
httpauthbooleanPass true to show only pages with HTTP authentication configured.
locationstringExact location/region ID. Use gtmetrix_get_catalog with catalog_id='locations' to resolve a name to an ID.
throttlestringExact throttle connection string in 'down_kbps/up_kbps/latency_ms' format (e.g. '20000/5000/0'). Use gtmetrix_get_catalog with catalog_id='throttle-connections' for preset values.
monitoringstringenumFilter by monitoring frequency: 'none' (not monitored; 'no' and 'never' are accepted as aliases), 'hourly', 'daily', 'weekly', or 'monthly'.
nonenoneverhourlydailyweeklymonthlystop_onloadbooleanPass true to show only pages that stop test at window.onload.
simulate_devicestringExact simulated device ID. Use gtmetrix_get_catalog with catalog_id='simulated-devices' for valid IDs.
anonymize_user_agentbooleanPass true to show only pages with anonymized user agent.
Parámetros de salida
limitnumberObligatorioThe effective limit applied to this request.
pagesobject[]ObligatorioThe matching pages (empty when none were found).
truncatedbooleanObligatorioTrue when more pages matched than were returned (use limit= to fetch more).
active_filtersstring[]ObligatorioHuman-readable list of the active filters (e.g. 'url="example.com"'); empty if no filters.
returned_countnumberObligatorioNumber of pages actually included in `pages` (after the limit).
total_matchingnumberObligatorioTotal number of pages matching the filters (before the limit is applied).
Gtmetrix list page tagsGTMETRIX_MCP_GTMETRIX_LIST_PAGE_TAGSAcciónList every page tag on the authenticated account: tag_id, name, description, color, and page_count (how many non-deleted pages currently carry it — a quick way to spot a stale or unused tag). Account-scoped, no input.
The tag_id returned here is the same identifier gtmetrix_list_pages' tag_ids filter and tags[].tag_id, and gtmetrix_get_report's page_tags, key off — use this tool to resolve those ids to a name/color/description, or to discover tag ids up front before filtering. Feeds gtmetrix_save_page_tag (pass tag_id to update, or omit it to create), gtmetrix_update_page_tags (attach/detach from pages), and gtmetrix_delete_page_tag. Requires a GTmetrix account — not available to guest connections; call gtmetrix_reauthenticate to sign in.
GTMETRIX_MCP_GTMETRIX_LIST_PAGE_TAGSAcciónList every page tag on the authenticated account: tag_id, name, description, color, and page_count (how many non-deleted pages currently carry it — a quick way to spot a stale or unused tag). Account-scoped, no input. The tag_id returned here is the same identifier gtmetrix_list_pages' tag_ids filter and tags[].tag_id, and gtmetrix_get_report's page_tags, key off — use this tool to resolve those ids to a name/color/description, or to discover tag ids up front before filtering. Feeds gtmetrix_save_page_tag (pass tag_id to update, or omit it to create), gtmetrix_update_page_tags (attach/detach from pages), and gtmetrix_delete_page_tag. Requires a GTmetrix account — not available to guest connections; call gtmetrix_reauthenticate to sign in.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
tagsobject[]ObligatorioEvery tag on the account, sorted by name (empty if none have been created yet).
Gtmetrix reauthenticateGTMETRIX_MCP_GTMETRIX_REAUTHENTICATEAcciónSign in to a GTmetrix account from the current MCP session. Call this when a guest connection hits the guest credit limit (a 402 'Insufficient guest credits' error) or is told that a tool requires a GTmetrix account — and also when a logged-in user wants to switch accounts. It revokes the current access token; on your NEXT GTmetrix tool call the server will require re-authentication and present a sign-in page where the user can log into (or create) an account. After calling this tool, simply retry the action the user originally asked for.
GTMETRIX_MCP_GTMETRIX_REAUTHENTICATEAcciónSign in to a GTmetrix account from the current MCP session. Call this when a guest connection hits the guest credit limit (a 402 'Insufficient guest credits' error) or is told that a tool requires a GTmetrix account — and also when a logged-in user wants to switch accounts. It revokes the current access token; on your NEXT GTmetrix tool call the server will require re-authentication and present a sign-in page where the user can log into (or create) an account. After calling this tool, simply retry the action the user originally asked for.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
revokedbooleanObligatorioWhether the current OAuth access token was revoked.
next_stepstringObligatorioWhat the agent should do next to complete sign-in.
Gtmetrix save page tagGTMETRIX_MCP_GTMETRIX_SAVE_PAGE_TAGAcciónCreate a page tag, or update one by passing its tag_id (an upsert, matching the REST API's POST /page_tags). Updates are a partial merge — an omitted name/description/color keeps its current value; pass an empty description to clear it. Tag names are unique per account: creating with a name that's already in use fails with the existing tag's tag_id so you can update it instead. Color accepts 3 or 6 character hex, with or without a leading '#' (e.g. 'f80', '#ff8800'); it's normalized and always returned as 6 characters with no '#'. New accounts have a limited number of tags — see gtmetrix_list_page_tags for the current count before creating more. Use gtmetrix_update_page_tags to attach/detach the saved tag from pages, and gtmetrix_delete_page_tag to remove it. Requires a GTmetrix account with at least Tester-level org access (Team organizations) — not available to guest connections; call gtmetrix_reauthenticate to sign in.
GTMETRIX_MCP_GTMETRIX_SAVE_PAGE_TAGAcciónCreate a page tag, or update one by passing its tag_id (an upsert, matching the REST API's POST /page_tags). Updates are a partial merge — an omitted name/description/color keeps its current value; pass an empty description to clear it. Tag names are unique per account: creating with a name that's already in use fails with the existing tag's tag_id so you can update it instead. Color accepts 3 or 6 character hex, with or without a leading '#' (e.g. 'f80', '#ff8800'); it's normalized and always returned as 6 characters with no '#'. New accounts have a limited number of tags — see gtmetrix_list_page_tags for the current count before creating more. Use gtmetrix_update_page_tags to attach/detach the saved tag from pages, and gtmetrix_delete_page_tag to remove it. Requires a GTmetrix account with at least Tester-level org access (Team organizations) — not available to guest connections; call gtmetrix_reauthenticate to sign in.
Parámetros de entrada
namestringTag name, unique per account. Required when creating (tag_id omitted); optional when updating, where omitting it keeps the current name.
colorstringTag background color: a 3 or 6 character hex value, with or without a leading '#' (e.g. 'f80', '#f80', 'ff8800'). Defaults to white ('FFFFFF') on create; on update, omitting it keeps the current color.
tag_idstringTag to update, as returned by gtmetrix_list_page_tags' tag_id. Omit to create a new tag.
descriptionstringTag description, shown as a tooltip on hover. On update, omit to keep the current description, or pass an empty string to clear it.
Parámetros de salida
namestringObligatorioTag name.
colorstringObligatorio6-character hex color with no leading '#' (e.g. 'FF8800').
tag_idstringObligatorioStable tag identifier (the tag_slug in the backend).
createdbooleanObligatorioTrue if this call created a new tag; false if it updated an existing one.
descriptionstring | nullObligatorioTag description, or null if none is set.
Gtmetrix set page alert conditionsGTMETRIX_MCP_GTMETRIX_SET_PAGE_ALERT_CONDITIONSAcciónReplace the performance-alert conditions configured for a GTmetrix page: which metrics trigger an alert, whether a video is kept, and (for Team organizations) who gets notified. Always replaces the full condition list - pass an empty conditions array to remove all alert conditions (the same effect as the API's DELETE endpoint). create_video is also replaced, defaulting to false when omitted. Call gtmetrix_get_page_alert_conditions first to see the current config; its output matches this tool's input once each condition's value_fmt is dropped. Each condition's value must be given in the unit for its metric: seconds: speed_index, redirect_time, connect_time, backend_time, ttfb, dom_interactive, dom_content_loaded, dom_content_loaded_time, onload, onload_time, fully_loaded, first_paint, first_contentful_paint, largest_contentful_paint, time_to_interactive, total_blocking_time; percent, 0-100: gtmetrix_score, performance_score, structure_score, pagespeed_score, yslow_score; bytes: html_size, total_size; raw value, no unit conversion: rum_speed_index, requests, cumulative_layout_shift. send_to is only available - and required - for Team organizations; recipient e-mails must match an existing Team organization member's account e-mail. Requires a GTmetrix account - not available to guest connections; call gtmetrix_reauthenticate to sign in.
GTMETRIX_MCP_GTMETRIX_SET_PAGE_ALERT_CONDITIONSAcciónReplace the performance-alert conditions configured for a GTmetrix page: which metrics trigger an alert, whether a video is kept, and (for Team organizations) who gets notified. Always replaces the full condition list - pass an empty conditions array to remove all alert conditions (the same effect as the API's DELETE endpoint). create_video is also replaced, defaulting to false when omitted. Call gtmetrix_get_page_alert_conditions first to see the current config; its output matches this tool's input once each condition's value_fmt is dropped. Each condition's value must be given in the unit for its metric: seconds: speed_index, redirect_time, connect_time, backend_time, ttfb, dom_interactive, dom_content_loaded, dom_content_loaded_time, onload, onload_time, fully_loaded, first_paint, first_contentful_paint, largest_contentful_paint, time_to_interactive, total_blocking_time; percent, 0-100: gtmetrix_score, performance_score, structure_score, pagespeed_score, yslow_score; bytes: html_size, total_size; raw value, no unit conversion: rum_speed_index, requests, cumulative_layout_shift. send_to is only available - and required - for Team organizations; recipient e-mails must match an existing Team organization member's account e-mail. Requires a GTmetrix account - not available to guest connections; call gtmetrix_reauthenticate to sign in.
Parámetros de entrada
page_idstringObligatorioStable page identifier, as returned by gtmetrix_list_pages.
send_toobject[]Recipients to notify on alert. Required for Team organizations, otherwise omit entirely.
conditionsobject[]ObligatorioThe full list of alert conditions for this page. Always replaces the current list — pass an empty array to remove all alert conditions.
create_videobooleanKeep a video recording of the page load when an alert triggers (PRO only). Defaults to false when omitted, which turns video off even if it is currently on - pass the current value from gtmetrix_get_page_alert_conditions to keep it.
Parámetros de salida
page_idstringObligatorioThe page's stable identifier.
send_toobject[]Recipients notified when an alert triggers. Only present for Team organizations, where it is always required when setting conditions.
page_urlstringObligatorioThe URL of the GTmetrix page.
conditionsobject[]ObligatorioThe page's currently-configured alert conditions.
create_videobooleanObligatorioWhether a video recording is kept when an alert triggers (PRO only).
Gtmetrix set page monitoringGTMETRIX_MCP_GTMETRIX_SET_PAGE_MONITORINGAcciónEnable or disable recurring monitoring for a GTmetrix page, which re-runs its saved test settings on a schedule and keeps each run as a report. Requires page_id (from gtmetrix_list_pages) and frequency: 'none' to disable ('no' and 'never' are accepted as aliases), or 'hourly', 'daily', 'weekly', 'monthly' to enable at that cadence. Monitoring is plan-limited (a fixed number of monitoring slots, plus hourly-access and region/browser coverage restrictions) - use gtmetrix_list_pages with the monitoring filter to see which pages are currently monitored before changing this. On failure the error names the specific limit hit, e.g. '3 of 3 monitoring slots in use'. Returns the updated page in the same shape gtmetrix_list_pages emits for a single page, so the new state can be confirmed. Requires a GTmetrix account - not available to guest connections; call gtmetrix_reauthenticate to sign in.
GTMETRIX_MCP_GTMETRIX_SET_PAGE_MONITORINGAcciónEnable or disable recurring monitoring for a GTmetrix page, which re-runs its saved test settings on a schedule and keeps each run as a report. Requires page_id (from gtmetrix_list_pages) and frequency: 'none' to disable ('no' and 'never' are accepted as aliases), or 'hourly', 'daily', 'weekly', 'monthly' to enable at that cadence. Monitoring is plan-limited (a fixed number of monitoring slots, plus hourly-access and region/browser coverage restrictions) - use gtmetrix_list_pages with the monitoring filter to see which pages are currently monitored before changing this. On failure the error names the specific limit hit, e.g. '3 of 3 monitoring slots in use'. Returns the updated page in the same shape gtmetrix_list_pages emits for a single page, so the new state can be confirmed. Requires a GTmetrix account - not available to guest connections; call gtmetrix_reauthenticate to sign in.
Parámetros de entrada
page_idstringObligatorioStable page identifier, as returned by gtmetrix_list_pages.
frequencystringObligatorioenumMonitoring cadence to apply: 'none' (not monitored; 'no' and 'never' are accepted as aliases), 'hourly', 'daily', 'weekly', or 'monthly'. Anything other than 'none' enables monitoring at that cadence.
nonenoneverhourlydailyweeklymonthly
Parámetros de salida
urlstringObligatorioThe page's target URL.
tagsobject[]ObligatorioTags assigned to this page (empty array if none).
browserstringObligatorioDisplay name of the test browser (or 'Browser <id>' fallback).
page_idstringObligatorioStable identifier for the page.
locationstringObligatorioDisplay name of the test location/region (or 'Region <id>' fallback).
monitoringstring | nullObligatorioMonitoring frequency label (e.g. 'Hourly'), or null when not monitored.
report_countnumberObligatorioNumber of non-expired reports for this page.
latest_reportanyObligatorioLatest report scores/metrics for the page, or null if the page has no usable latest report.
options_summarystring | nullObligatorioHuman-readable summary of the page's analysis options, or null if none set.
Gtmetrix start testGTMETRIX_MCP_GTMETRIX_START_TESTAcciónStart a new GTmetrix page performance test for a URL. Use this when a user wants to test or improve their website's performance, or reports any of: slow/sluggish loading, layout instability (content jumping), slow server response, poor mobile performance, slow checkout or other flows, high bounce rates, SEO ranking drops, questions about a specific metric (LCP, CLS, TBT, TTFB, etc.), suspecting a recent deploy caused a regression, or wanting to benchmark against competitors. If the user has not provided a URL, ask for it before calling this tool. Concurrency: Basic accounts allow 2 concurrent tests, PRO allows 8. A 429 error means an existing test needs to finish before you retry. Workflow: `start_test` → wait 10 seconds → `gtmetrix_get_test` with `wait_seconds=25` to long-poll server-side; if it returns 'still running', you can re-issue it back-to-back with the same arguments (no need to shell-sleep between calls) until state=complete → `gtmetrix_get_report`. All analysis options are optional; the input schema lists their names, types, and defaults. Most-used options: `location` (test region ID) and `browser` (browser ID) — resolve a region/browser name to its ID via `gtmetrix_get_catalog` (`catalog_id` of `locations` / `browsers`); `report` (default `lighthouse`; also `legacy`, `lighthouse,legacy`, or `none`); `simulate_device` (preset mobile/tablet profile — overrides viewport and `user_agent`; IDs via the `simulated-devices` catalog); `throttle` as `Kbps_down/Kbps_up/latency_ms` (e.g. `1600/768/300` ≈ a slow 3G link; presets via the `throttle-connections` catalog); plus `adblock`, `video` (+0.9 credits), `cookies`, `httpauth_username`/`httpauth_password`, `block_url`/`allow_url`, `browser_width`/`browser_height`/`browser_dppx`, and `retention` (1/6/12/24 months). For the full reference — every option, its default, valid values, and recipes — read the MCP resource `gtmetrix://docs/test-options-guide` (or call `gtmetrix_get_guide` with `guide_id: 'test-options'`).
GTMETRIX_MCP_GTMETRIX_START_TESTAcciónStart a new GTmetrix page performance test for a URL. Use this when a user wants to test or improve their website's performance, or reports any of: slow/sluggish loading, layout instability (content jumping), slow server response, poor mobile performance, slow checkout or other flows, high bounce rates, SEO ranking drops, questions about a specific metric (LCP, CLS, TBT, TTFB, etc.), suspecting a recent deploy caused a regression, or wanting to benchmark against competitors. If the user has not provided a URL, ask for it before calling this tool. Concurrency: Basic accounts allow 2 concurrent tests, PRO allows 8. A 429 error means an existing test needs to finish before you retry. Workflow: `start_test` → wait 10 seconds → `gtmetrix_get_test` with `wait_seconds=25` to long-poll server-side; if it returns 'still running', you can re-issue it back-to-back with the same arguments (no need to shell-sleep between calls) until state=complete → `gtmetrix_get_report`. All analysis options are optional; the input schema lists their names, types, and defaults. Most-used options: `location` (test region ID) and `browser` (browser ID) — resolve a region/browser name to its ID via `gtmetrix_get_catalog` (`catalog_id` of `locations` / `browsers`); `report` (default `lighthouse`; also `legacy`, `lighthouse,legacy`, or `none`); `simulate_device` (preset mobile/tablet profile — overrides viewport and `user_agent`; IDs via the `simulated-devices` catalog); `throttle` as `Kbps_down/Kbps_up/latency_ms` (e.g. `1600/768/300` ≈ a slow 3G link; presets via the `throttle-connections` catalog); plus `adblock`, `video` (+0.9 credits), `cookies`, `httpauth_username`/`httpauth_password`, `block_url`/`allow_url`, `browser_width`/`browser_height`/`browser_dppx`, and `retention` (1/6/12/24 months). For the full reference — every option, its default, valid values, and recipes — read the MCP resource `gtmetrix://docs/test-options-guide` (or call `gtmetrix_get_guide` with `guide_id: 'test-options'`).
Parámetros de entrada
dnsstring[]urlstringObligatoriourivideoboolean | number | stringenumtruefalse0101reportstringenumlighthouselegacynonelighthouse,legacyadblockboolean | number | stringenumtruefalse0101browserstringcookiesstring[]locationstringthrottlestringThrottle the connection, formatted as 'down_kbps/up_kbps/latency_ms' (e.g. '1600/768/300' ≈ a slow 3G link). Presets via gtmetrix_get_catalog with catalog_id='throttle-connections'.
allow_urlstring[]block_urlstring[]retentionnumberenum161224user_agentstringstop_onloadboolean | number | stringenumtruefalse0101browser_dppxnumberbrowser_widthintegerbrowser_heightintegerbrowser_rotateboolean | number | stringenumtruefalse0101simulate_devicestringhttpauth_passwordstringhttpauth_usernamestringanonymize_user_agentboolean | number | stringenumtruefalse0101
Parámetros de salida
test_idstringObligatorioThe slug/ID of the started test, used for status polling.
test_urlstringObligatorioThe GTmetrix API URL for the started test.
next_stepsstringObligatorioHuman-readable guidance on how to poll the test for completion.
credits_usednumberObligatorioNumber of API credits consumed by starting this test.
credits_remainingnumberObligatorioNumber of API credits remaining after starting this test.
Gtmetrix update page tagsGTMETRIX_MCP_GTMETRIX_UPDATE_PAGE_TAGSAcciónAttach or detach a page tag from a batch of pages at once — the bulk direction agents usually want ('tag these 30 pages checkout'), from the tag's point of view: one tag_id, many page_ids. Find the tag_id with gtmetrix_list_page_tags (or create one with gtmetrix_save_page_tag) and the page_ids with gtmetrix_list_pages. Both attach and detach are idempotent — attaching an already-tagged page or detaching an already-untagged one is a no-op, not an error. Returns the tag's full resulting page set, not just the pages from this call, so you can confirm the end state directly. Requires a GTmetrix account with at least Tester-level org access (Team organizations) — not available to guest connections; call gtmetrix_reauthenticate to sign in.
GTMETRIX_MCP_GTMETRIX_UPDATE_PAGE_TAGSAcciónAttach or detach a page tag from a batch of pages at once — the bulk direction agents usually want ('tag these 30 pages checkout'), from the tag's point of view: one tag_id, many page_ids. Find the tag_id with gtmetrix_list_page_tags (or create one with gtmetrix_save_page_tag) and the page_ids with gtmetrix_list_pages. Both attach and detach are idempotent — attaching an already-tagged page or detaching an already-untagged one is a no-op, not an error. Returns the tag's full resulting page set, not just the pages from this call, so you can confirm the end state directly. Requires a GTmetrix account with at least Tester-level org access (Team organizations) — not available to guest connections; call gtmetrix_reauthenticate to sign in.
Parámetros de entrada
actionstringObligatorioenumWhether to attach the tag to page_ids or detach it from them.
attachdetachtag_idstringObligatorioTag to attach/detach, as returned by gtmetrix_list_page_tags' tag_id.
page_idsstring[]ObligatorioPages to attach/detach the tag from, as returned by gtmetrix_list_pages' page_id. 1-500 per call.
Parámetros de salida
tag_idstringObligatorioThe tag's id.
attachednumberObligatorioNumber of pages newly attached by this call, excluding duplicates and pages already tagged (0 for a detach).
detachednumberObligatorioNumber of pages actually detached by this call, excluding duplicates and pages that weren't tagged (0 for an attach).
page_idsstring[]ObligatorioEvery (non-deleted) page the tag is attached to after this call — the tag's full resulting page set, not just the ones from this request.