Skip to main content
Glama

check_pwa

Check if a page is installable as a PWA: validate manifest, service worker, Chrome installability errors, and beforeinstallprompt; use session_id for live pages or url for one-shot checks.

Instructions

Inspect a page as an installable web app: fetch + validate the manifest (name, short_name, 192/512 icons, display, start_url within scope, theme/background colours), report the service worker registration (scope, state, controlling), Chrome's own installability errors via CDP when available, and — in url mode — whether beforeinstallprompt fired. Returns issues[] with type 'pwa'. Pass session_id to inspect the live page (after your interactions) or url for a one-shot check.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "check_pwa"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoURL to check (one-shot page; enables beforeinstallprompt observation)
projectNoProject whose authenticated context to use in url mode
session_idNoOr an open session to inspect in place

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.12.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does so well: it discloses exactly which validations run, that CDP errors are only reported 'when available', that beforeinstallprompt is only observed in url mode, and that output is issues[] with type 'pwa'. It never states explicitly that it is read-only/non-mutating, which keeps it short of 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?

Front-loaded with the purpose then the checklist, and every parenthetical item is substantive rather than filler. It is a single very dense sentence, though, which pushes close to being hard to scan in one pass.

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

Completeness5/5

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

No output schema exists, yet the description names the return shape (issues[] tagged 'pwa'), and all three parameters are documented and mode-explained. For a read-only inspection tool with no annotations, nothing an agent needs in order to call it correctly is missing.

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 description coverage is 100%, including which mode enables beforeinstallprompt observation, so the schema already does the work. The description reinforces the session-vs-url tradeoff (live state after interactions vs one-shot) but adds little syntactically new about the parameters.

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

Purpose5/5

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

Specific verb ('Inspect') plus a precisely scoped resource ('a page as an installable web app'), followed by an enumerated checklist (manifest fields, service worker scope/state/controlling, CDP installability errors, beforeinstallprompt). It is unmistakable what this tool does and no sibling covers the same ground.

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?

The closing sentence gives actionable mode selection: use session_id to inspect the live page after your interactions, or url for a one-shot check. It does not explicitly exclude or route against neighbouring check tools (check_links, check_color_contrast, visual_check), so it stops short of full when-not guidance.

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