Skip to main content
Glama

PageSpeed Insights MCP by InsightfulPipe

PageSpeed Analysis Query

query_data
Read-only

Execute PageSpeed Insights analysis queries (Step 3 FINAL).

Prerequisites: Run query_contexts with request='accounts' (includes available_actions) + request='actions_details' to understand the required payload.

IMPORTANT: The 'body' parameter is a dictionary that must contain ALL fields including:

  • action: Action name (e.g. 'analyze.full', 'core-web-vitals', 'audits.resource-optimizations')

  • workspace_id: Integer workspace ID

  • url: The URL to analyze (required)

  • strategy: 'mobile' or 'desktop' (default: mobile)

  • categories: Optional list of categories ['performance', 'accessibility', 'best-practices', 'seo']

  • locale: Optional language code (e.g., 'en-US')

Do NOT pass these as separate parameters - they must ALL be inside the body dictionary.

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": {
      "body": "<body>"
    },
    "name": "query_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety and reach profile is known. The description's real contribution is the structural contract: everything must go inside a single body dictionary, and strategy defaults to 'mobile'. Read-only means destruction risk is moot, and nothing extra is said about latency, quotas, or whether result objects are persisted, so it clears the lower bar with annotations but adds only moderate value.

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?

Front-loaded with the purpose and prerequisites, then a scannable field list that carries real content. The closing 'Do NOT pass these as separate parameters' partly repeats the uppercase IMPORTANT line above it, which is minor redundancy rather than wasted space.

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?

A full output schema exists, so return values need not be explained. Combined with the prerequisites and the fully enumerated body fields, an agent has what it needs to construct a valid call. The remaining gap is enumerating the valid 'action' values rather than deferring to examples.

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

Parameters4/5

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

With schema coverage at 0% and a single free-form nested object (additionalProperties: true), the description should do the work of documenting the payload, and it largely does: it names action, workspace_id, url (required), strategy (with its default), categories (with its allowed values), and locale. What's weaker is that action names are given as open-ended examples ('e.g.') rather than a closed set, even though the opens with available_actions point to an authoritative list.

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 ('Execute PageSpeed Insights analysis queries') and marks its place in a workflow ('Step 3 FINAL'), which differentiates it from the sibling query_contexts it depends on. It stops short of naming the sibling tools it competes with (execute_action) to say why this one rather than that one is chosen.

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

Usage Guidelines4/5

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

Explicitly gives the precondition: run query_contexts with request='accounts' (for available_actions) and request='actions_details' before calling this. 'Step 3 FINAL' also implies an ordered pipeline. It gives no exclusion rule, though, such as when a plain execute_action is preferable to this specialized query path.

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.