Skip to main content
Glama

Check a site for exposed API keys

check_exposed_keys
Read-onlyIdempotent

Checks whether a public website leaks secret API keys (OpenAI, Anthropic, Stripe, AWS, GitHub, Supabase service role and others) in its JavaScript, and whether a Supabase database is readable without logging in. This is the same passive, public-only scan as scan_app: it makes the same requests a visitor's browser makes, with no login, no form submission and no attacks. A recent scan of the same URL is reused. Suitable for any public URL, including the user's own app or a public site they are evaluating. Key values are always masked, and details are shown only after the site owner verifies ownership, so the tool cannot be used to harvest someone else's secrets. Use when the user asks whether a public site leaks an API key, whether Supabase is open, or whether keys are exposed.

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": "check_exposed_keys"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesAddress of the public website or app to scan, for example https://my-app.lovable.app. Any public URL is accepted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, it discloses caching ('a recent scan of the same URL is reused'), masking of key values, and that details require ownership verification — behavior an agent could not infer from readOnly/idempotent hints alone. It also defines the safety envelope (no login, no form submission, no attacks, browser-equivalent requests), which is exactly the kind of context the schema cannot carry.

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?

The purpose and safety envelope are front-loaded, and most sentences carry real information. There is mild redundancy: 'any public URL is accepted' in the schema is repeated by 'Suitable for any public URL,' and the closing 'Use when...' sentence restates exposures already covered earlier, costing a little tightness.

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?

For a one-parameter read-only scanner with no output schema, the description covers what an agent needs: what is scanned, what is not done, caching behavior, and how results are gated and masked. Nothing material about invoking it correctly is missing.

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 a single parameter and 100% schema coverage, the schema already documents the URL field. The description adds only marginal value by reiterating that any public URL is accepted and calling out the user's own app as a valid target, so it lands at the baseline rather than above it.

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?

The description states a specific verb and resource: checking whether a public website leaks secret API keys (naming OpenAI, Anthropic, Stripe, AWS, GitHub, Supabase) in its JavaScript, plus whether a Supabase database is readable without login. It also distinguishes itself from the sibling scan_app by declaring it is the same passive scan, so an agent can tell the two apart.

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?

It gives an explicit trigger: 'Use when the user asks whether a public site leaks an API key, whether Supabase is open, or whether keys are exposed,' and bounds scope to public URLs. It stops short of saying when to prefer the sibling scan_app over this tool, since it only notes they perform the same scan, so the routing between the two remains implicit.

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