Skip to main content
Glama

Medir uma página

analyze_page
Read-onlyIdempotent

Roda o Lighthouse do PageSpeed Insights numa página pública (10 a 30 segundos). Devolve as notas de 0 a 100 (performance, accessibility, best-practices, seo), as métricas de laboratório (FCP, LCP, TBT, CLS, SI), os dados de usuários reais quando existem, as sugestões de desempenho com a economia estimada de cada uma (a maior primeiro, com os arquivos que mais pesam) e os itens de SEO e de acessibilidade que falharam.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>"
    },
    "name": "analyze_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesO endereço completo e público da página: "https://www.exemplo.com/precos".
strategyNoCelular ou computador. Padrão: mobile, que é o que o Google usa para indexar.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), so the bar is lower, and the description still adds real behavior: the 10-30s latency window, the fact that real-user data appears only 'quando existem' (may be absent), and that suggestions are ordered with the largest savings first alongside the heaviest files. It omits failure modes for non-public URLs and any rate-limit/quotas, which is why it is not a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the verb and the underlying engine, followed by the runtime in parentheses. The long enumeration of return fields is dense but every element names a distinct output, so little waste—only the closing SEO/accessibility clause feels slightly tacked on.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description properly carries the burden of describing returns, and it does so with specific metric names and ordering rules. For a two-parameter, idempotent read tool this is nearly complete; missing are behavior on unresolvable/non-public URLs and whether results are cached or fresh each call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and both parameters are already documented in the schema, including the mobile default rationale ('o que o Google usa para indexar'). The description adds only the public-URL constraint via 'página pública', which is marginal beyond structured data, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (runs Lighthouse/PageSpeed Insights on a public page) and enumerates what comes back: four 0-100 scores, lab metrics (FCP, LCP, TBT, CLS, SI), field data, prioritized opportunities, and failing SEO/accessibility items. It does not name or contrast the sibling 'analyze_pages' (presumably batch), 'field_data' or 'field_history', so the agent must infer the boundary from the return contents rather than from explicit differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Implicit guidance only: it qualifies the target as a 'página pública' and gives the 10-30 second runtime, which hints at when it is worth calling. It never says when to prefer 'field_data' or 'field_history', nor when to use the plural 'analyze_pages' instead of a single-page call, so routing is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources