Skip to main content
Glama
ZERONOVA LAB MCP Server

ZERONOVA LAB MCP Server

check_client_secrets

Detect secrets exposed in client-side code by scanning projects for dangerous NEXT_PUBLIC_ env vars, hardcoded API keys, and PEM private keys, returning findings with severity and fixes.

Instructions

Detect secrets exposed in client-side code. Checks for dangerous NEXT_PUBLIC_ env vars (service_role keys, database URLs, Stripe secret keys), hardcoded API keys (Supabase, Stripe, AWS, OpenAI, GitHub), and PEM private keys in browser-accessible code. Returns findings with severity, masked evidence, and fix instructions.

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": {
      "project_path": "<project_path>"
    },
    "name": "check_client_secrets"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_pathYesAbsolute path to the project directory to audit. Must be a directory you own or manage.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A3.8/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 well: it discloses the detection categories and the return payload (severity, masked evidence, fix instructions), which tells the agent results are masked and actionable rather than raw secrets. It stops short of stating the scan is read-only/non-destructive or how large projects are handled, which matters for a filesystem-scanning tool.

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

Conciseness5/5

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

Three sentences, zero padding: purpose first, then the concrete detection list, then what comes back. The detection enumeration is dense but each item earns its place by telling the agent what will and won't be caught.

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 describing the finding fields (severity, masked evidence, fix instructions) is genuinely necessary and present. For a single-parameter audit tool that is nearly complete; only the read-only/mutation behavior and any scope limits are unstated.

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?

Only one parameter exists and the schema already documents it at 100% coverage, including the 'directory you own or manage' constraint. The description adds no further semantics about project_path (e.g., monorepo handling or expected layout), so the 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 ('Detect secrets exposed in client-side code') and enumerates the concrete targets: NEXT_PUBLIC_ env vars, hardcoded API keys from named providers, and PEM private keys. The 'client-side / browser-accessible' scoping implicitly separates it from server-side env checks, but no sibling is named explicitly.

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?

Usage is implied by the scope — run it against a project whose client-side code is being audited — but there is no explicit when-to-use/when-not-to-use guidance and no mention of related checks such as check_env_exposure or check_api_auth that an agent might otherwise pick.

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