NAiOS IconNAiOS Logo
Contacto
Contacto

Suscríbete a la newsletter

Novedades de IA y de producto. Sin spam, puedes darte de baja cuando quieras.

Consejo: usa tu email de empresa para una respuesta más relevante.

Comprobando seguridad…
NAiOS Icon
NAiOS Logo

El primer integrador de IA para empresas reales. Conecta todas tus herramientas de IA de forma segura y escalable.

+34 695482054info@naios.netinfo@netretina.ai
LinkedInNAiOS AcademyNetretina.AiContact UsX

Plataforma

  • Características
  • Integraciones
  • Planes y precios

Empresa

  • Sobre nosotros
  • Blog
  • Contacto

Compliance

  • Reglamento Europeo de IA
  • Transparencia de IA

Legal

  • Aviso legal
  • Política de privacidad
  • Términos y condiciones
  • Política de cookies
  • Devoluciones

© 2026 NAiOS. Todos los derechos reservados.

Un producto de Netretina.Ai

    Volver al catálogo

    GTmetrix MCP

    gtmetrix_mcp

    Run GTmetrix page performance tests, read reports, HAR files and history, and manage page tags, monitoring and alerts through GTmetrix's hosted MCP server.

    Model Context ProtocolDeveloper ToolsAnalyticsWeb del proveedor
    Acciones
    18
    Triggers
    0
    Autenticación
    —
    OAuth gestionado
    No
    Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

    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ón

    Permanently 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_idstringObligatorio

      The tag to delete, as returned by gtmetrix_list_page_tags' tag_id.

    Parámetros de salida

    • namestringObligatorio

      The deleted tag's name, for confirmation.

    • tag_idstringObligatorio

      The deleted tag's id.

    • pages_detachednumberObligatorio

      Number of (non-deleted) pages the tag was attached to at the time of deletion.

    Gtmetrix get account statusGTMETRIX_MCP_GTMETRIX_GET_ACCOUNT_STATUSAcción

    Returns 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_guestboolean

      True when the caller is a guest connection (no GTmetrix account); guest status is truncated and most account fields are omitted.

    • team_rolestring

      The caller's organization role, if part of a team.

    • next_refillstring | null

      ISO 8601 timestamp of the next credit refill, or null if none.

    • account_typestringObligatorio

      Short plan/account type label (e.g. 'PRO', 'Basic', 'Guest').

    • account_emailstring

      The account's email address; omitted for guest connections.

    • pro_locationsbooleanObligatorio

      Whether the account has access to PRO test locations.

    • refill_amountnumber | null

      Credits added at each refill, or null if the plan has none.

    • whitelabel_pdfbooleanObligatorio

      Whether the account can generate whitelabel PDF reports.

    • api_credits_remainingnumber

      API credits left; omitted if the caller can't view credits.

    Gtmetrix get catalogGTMETRIX_MCP_GTMETRIX_GET_CATALOGAcción

    Fetch 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_idstringObligatorioenum

      Short catalog ID (e.g. 'browsers', 'locations', 'lighthouse-audits').

      browserslocationssimulated-devicesthrottle-connectionslighthouse-audits

    Parámetros de salida

    • contentstringObligatorio

      The catalog content, as a JSON-encoded string.

    Gtmetrix get guideGTMETRIX_MCP_GTMETRIX_GET_GUIDEAcción

    Fetch 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_idstringObligatorioenum

      Short guide ID (e.g. 'test-options', 'report-analysis').

      har-analysistest-optionsreport-analysisgeneral-test-errorlighthouse-error

    Parámetros de salida

    • contentstringObligatorio

      The guide content, as a markdown string.

    Gtmetrix get page alert conditionsGTMETRIX_MCP_GTMETRIX_GET_PAGE_ALERT_CONDITIONSAcción

    Fetch 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_idstringObligatorio

      Stable page identifier, as returned by gtmetrix_list_pages.

    Parámetros de salida

    • page_idstringObligatorio

      The 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_urlstringObligatorio

      The URL of the GTmetrix page.

    • conditionsobject[]Obligatorio

      The page's currently-configured alert conditions.

    • create_videobooleanObligatorio

      Whether a video recording is kept when an alert triggers (PRO only).

    Gtmetrix get page alert eventsGTMETRIX_MCP_GTMETRIX_GET_PAGE_ALERT_EVENTSAcción

    Fetch 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

    • pageinteger

      Page number to fetch, newest page first (maps to the API's page[number]; default 1).

    • limitinteger

      Maximum number of alert events per page (maps to the API's page[size]; default 50, max 500).

    • page_idstringObligatorio

      Stable page identifier, as returned by gtmetrix_list_pages.

    Parámetros de salida

    • pageintegerObligatorio

      The page number returned (maps to the API's page[number]).

    • limitintegerObligatorio

      Effective page size applied (maps to the API's page[size]).

    • eventsobject[]Obligatorio

      Alert events for the page, in chronological order (oldest first within this page).

    • page_idstringObligatorio

      The page's stable identifier.

    • has_morebooleanObligatorio

      True if there are older alert events beyond this page.

    • page_urlstringObligatorio

      The URL of the GTmetrix page.

    • returned_countintegerObligatorio

      Number of alert events returned.

    Gtmetrix get reportGTMETRIX_MCP_GTMETRIX_GET_REPORTAcción

    Retrieve 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_idstringObligatorio

      The report ID returned by get_test_status when the test is complete

    Parámetros de salida

    • regionstringObligatorio

      Display name of the test region/location.

    • scoresobject

      Score block; present only for Lighthouse-based reports.

    • browserstringObligatorio

      Display name of the browser used for the test.

    • har_urlstring | nullObligatorio

      URL to download the HAR (waterfall) JSON, or null if absent.

    • test_urlstringObligatorio

      The URL that was tested.

    • page_tagsstring[]Obligatorio

      Exact tag ids assigned to the report's page (empty array if none).

    • report_idstringObligatorio

      The report's unique slug.

    • report_urlstringObligatorio

      Public URL of the full GTmetrix report.

    • page_requestsnumber | nullObligatorio

      Total number of page requests, or null if N/A.

    • timing_metricsobjectObligatorio

      Page-load timing metrics.

    • core_web_vitalsobject

      Core Web Vitals block; present only for Lighthouse reports.

    • page_size_bytesnumber | nullObligatorio

      Total page weight in bytes, or null if N/A.

    • analysis_optionsstring

      Formatted analysis options used for the test, if any.

    • resource_summaryobject

      Per-resource-type request counts and byte totals; present only when HAR breakdown data is available.

    • lighthouse_json_urlstring | nullObligatorio

      URL 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ón

    Fetch 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

    • forceboolean

      Bypass 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_idstringObligatorio

      A GTmetrix report identifier (8 characters, e.g. hDjmzKIf).

    Parámetros de salida

    • harstring

      The full HAR 1.2 content as a JSON string, with Authorization headers and cookies stripped. Present only when the HAR is returned.

    • returnedbooleanObligatorio

      Whether the HAR payload is included in this response. False when the HAR exceeded the inline limit and was not forced.

    • report_idstring

      The report identifier the HAR belongs to. Present when the HAR is returned.

    • over_limitbooleanObligatorio

      Whether the HAR exceeds the inline size limit (262144 bytes).

    • download_urlstringObligatorio

      Direct download URL for the report's net.har file.

    • har_size_bytesnumberObligatorio

      Size of the (sanitized) HAR JSON in bytes.

    • har_size_humanstringObligatorio

      Human-readable HAR size (e.g. '1.2 MB').

    • inline_limit_bytesnumberObligatorio

      The inline size limit in bytes above which the HAR is refused.

    Gtmetrix get report historyGTMETRIX_MCP_GTMETRIX_GET_REPORT_HISTORYAcción

    Fetch 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

    • limitinteger

      Maximum number of successful reports to return, newest first (default 200, max 500). Capped by the account plan's history limit.

    • page_idstring

      A 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_idstring

      A 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

    • limitintegerObligatorio

      Effective limit applied to the history query.

    • has_moreboolean

      True if the plan's history limit hid older reports; omitted otherwise.

    • page_urlstringObligatorio

      The URL of the GTmetrix page.

    • date_rangeobject

      Span covered by the returned reports; omitted when there is no history.

    • failed_countintegerObligatorio

      Number of failed reports returned.

    • test_settingsobjectObligatorio

      The page's test settings (browser and region).

    • failed_reportsobject[]Obligatorio

      Failed reports.

    • successful_countintegerObligatorio

      Number of successful reports returned.

    • successful_reportsobject[]Obligatorio

      Successful reports, newest first.

    Gtmetrix get testGTMETRIX_MCP_GTMETRIX_GET_TESTAcción

    Get 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_idstringObligatorio

      The test ID returned by start_test

    • wait_secondsinteger

      Long-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

    • statestringObligatorio

      The current job state, e.g. 'queued', 'started', 'completed', 'stopped'.

    • startedstring

      Formatted timestamp of when the test started; omitted if not yet started.

    • test_idstringObligatorio

      The test ID that was queried.

    • finishedstring

      Formatted timestamp of when the test finished; present only when complete.

    • report_idstring

      The report ID to fetch results with gtmetrix_get_report; present only when the test is complete and a report is ready.

    • still_runningbooleanObligatorio

      True 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ón

    List 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

    • dnsboolean

      Pass true to show only pages with custom DNS overrides configured.

    • tagstring

      Substring 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.

    • urlstring

      Substring match against the page URL (case-insensitive). E.g. 'example.com' matches any page whose URL contains that string.

    • limitinteger

      Maximum number of pages to return (default 200, max 2000).

    • videoboolean

      Pass true to show only pages with video recording enabled.

    • filterboolean

      Pass true to show only pages with URL allow/block filtering configured.

    • adblockboolean

      Pass true to show only pages with AdBlock enabled.

    • browserstring

      Exact browser ID. Use gtmetrix_get_catalog with catalog_id='browsers' to resolve a name to an ID.

    • cookiesboolean

      Pass true to show only pages with cookies configured.

    • privateboolean

      Pass 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.

    • httpauthboolean

      Pass true to show only pages with HTTP authentication configured.

    • locationstring

      Exact location/region ID. Use gtmetrix_get_catalog with catalog_id='locations' to resolve a name to an ID.

    • throttlestring

      Exact 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.

    • monitoringstringenum

      Filter by monitoring frequency: 'none' (not monitored; 'no' and 'never' are accepted as aliases), 'hourly', 'daily', 'weekly', or 'monthly'.

      nonenoneverhourlydailyweeklymonthly
    • stop_onloadboolean

      Pass true to show only pages that stop test at window.onload.

    • simulate_devicestring

      Exact simulated device ID. Use gtmetrix_get_catalog with catalog_id='simulated-devices' for valid IDs.

    • anonymize_user_agentboolean

      Pass true to show only pages with anonymized user agent.

    Parámetros de salida

    • limitnumberObligatorio

      The effective limit applied to this request.

    • pagesobject[]Obligatorio

      The matching pages (empty when none were found).

    • truncatedbooleanObligatorio

      True when more pages matched than were returned (use limit= to fetch more).

    • active_filtersstring[]Obligatorio

      Human-readable list of the active filters (e.g. 'url="example.com"'); empty if no filters.

    • returned_countnumberObligatorio

      Number of pages actually included in `pages` (after the limit).

    • total_matchingnumberObligatorio

      Total number of pages matching the filters (before the limit is applied).

    Gtmetrix list page tagsGTMETRIX_MCP_GTMETRIX_LIST_PAGE_TAGSAcción

    List 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[]Obligatorio

      Every tag on the account, sorted by name (empty if none have been created yet).

    Gtmetrix reauthenticateGTMETRIX_MCP_GTMETRIX_REAUTHENTICATEAcción

    Sign 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

    • revokedbooleanObligatorio

      Whether the current OAuth access token was revoked.

    • next_stepstringObligatorio

      What the agent should do next to complete sign-in.

    Gtmetrix save page tagGTMETRIX_MCP_GTMETRIX_SAVE_PAGE_TAGAcción

    Create 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

    • namestring

      Tag name, unique per account. Required when creating (tag_id omitted); optional when updating, where omitting it keeps the current name.

    • colorstring

      Tag 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_idstring

      Tag to update, as returned by gtmetrix_list_page_tags' tag_id. Omit to create a new tag.

    • descriptionstring

      Tag 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

    • namestringObligatorio

      Tag name.

    • colorstringObligatorio

      6-character hex color with no leading '#' (e.g. 'FF8800').

    • tag_idstringObligatorio

      Stable tag identifier (the tag_slug in the backend).

    • createdbooleanObligatorio

      True if this call created a new tag; false if it updated an existing one.

    • descriptionstring | nullObligatorio

      Tag description, or null if none is set.

    Gtmetrix set page alert conditionsGTMETRIX_MCP_GTMETRIX_SET_PAGE_ALERT_CONDITIONSAcción

    Replace 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_idstringObligatorio

      Stable page identifier, as returned by gtmetrix_list_pages.

    • send_toobject[]

      Recipients to notify on alert. Required for Team organizations, otherwise omit entirely.

    • conditionsobject[]Obligatorio

      The full list of alert conditions for this page. Always replaces the current list — pass an empty array to remove all alert conditions.

    • create_videoboolean

      Keep 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_idstringObligatorio

      The 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_urlstringObligatorio

      The URL of the GTmetrix page.

    • conditionsobject[]Obligatorio

      The page's currently-configured alert conditions.

    • create_videobooleanObligatorio

      Whether a video recording is kept when an alert triggers (PRO only).

    Gtmetrix set page monitoringGTMETRIX_MCP_GTMETRIX_SET_PAGE_MONITORINGAcción

    Enable 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_idstringObligatorio

      Stable page identifier, as returned by gtmetrix_list_pages.

    • frequencystringObligatorioenum

      Monitoring 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

    • urlstringObligatorio

      The page's target URL.

    • tagsobject[]Obligatorio

      Tags assigned to this page (empty array if none).

    • browserstringObligatorio

      Display name of the test browser (or 'Browser <id>' fallback).

    • page_idstringObligatorio

      Stable identifier for the page.

    • locationstringObligatorio

      Display name of the test location/region (or 'Region <id>' fallback).

    • monitoringstring | nullObligatorio

      Monitoring frequency label (e.g. 'Hourly'), or null when not monitored.

    • report_countnumberObligatorio

      Number of non-expired reports for this page.

    • latest_reportanyObligatorio

      Latest report scores/metrics for the page, or null if the page has no usable latest report.

    • options_summarystring | nullObligatorio

      Human-readable summary of the page's analysis options, or null if none set.

    Gtmetrix start testGTMETRIX_MCP_GTMETRIX_START_TESTAcción

    Start 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[]
    • urlstringObligatoriouri
    • videoboolean | number | stringenum
      truefalse0101
    • reportstringenum
      lighthouselegacynonelighthouse,legacy
    • adblockboolean | number | stringenum
      truefalse0101
    • browserstring
    • cookiesstring[]
    • locationstring
    • throttlestring

      Throttle 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[]
    • retentionnumberenum
      161224
    • user_agentstring
    • stop_onloadboolean | number | stringenum
      truefalse0101
    • browser_dppxnumber
    • browser_widthinteger
    • browser_heightinteger
    • browser_rotateboolean | number | stringenum
      truefalse0101
    • simulate_devicestring
    • httpauth_passwordstring
    • httpauth_usernamestring
    • anonymize_user_agentboolean | number | stringenum
      truefalse0101

    Parámetros de salida

    • test_idstringObligatorio

      The slug/ID of the started test, used for status polling.

    • test_urlstringObligatorio

      The GTmetrix API URL for the started test.

    • next_stepsstringObligatorio

      Human-readable guidance on how to poll the test for completion.

    • credits_usednumberObligatorio

      Number of API credits consumed by starting this test.

    • credits_remainingnumberObligatorio

      Number of API credits remaining after starting this test.

    Gtmetrix update page tagsGTMETRIX_MCP_GTMETRIX_UPDATE_PAGE_TAGSAcción

    Attach 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

    • actionstringObligatorioenum

      Whether to attach the tag to page_ids or detach it from them.

      attachdetach
    • tag_idstringObligatorio

      Tag to attach/detach, as returned by gtmetrix_list_page_tags' tag_id.

    • page_idsstring[]Obligatorio

      Pages to attach/detach the tag from, as returned by gtmetrix_list_pages' page_id. 1-500 per call.

    Parámetros de salida

    • tag_idstringObligatorio

      The tag's id.

    • attachednumberObligatorio

      Number of pages newly attached by this call, excluding duplicates and pages already tagged (0 for a detach).

    • detachednumberObligatorio

      Number of pages actually detached by this call, excluding duplicates and pages that weren't tagged (0 for an attach).

    • page_idsstring[]Obligatorio

      Every (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.