Skip to main content
Glama

privacy_preflight

Check code and execution traces for privacy problems before shipping, report findings new since the last check, and optionally score a trace across eight channels.

Instructions

Check this project for privacy problems before shipping, and report which findings are NEW since the last check. Call this after writing or changing code that touches user data, secrets, logging, or outbound calls. Optionally pass a trace of the run you just made to score it across all eight channels as well.

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

Input Schema

NameRequiredDescriptionDefault
pathNo.
traceNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.17.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false with destructiveHint=false; the description earns that by explaining the tool compares against a prior check, which implies persisted baseline state. It also discloses the optional trace-scoring path across eight channels. It does not mention what is written where, cost, or first-run behavior when no baseline exists.

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?

Three front-loaded sentences, each doing work: purpose plus delta scope, then trigger condition, then the optional argument. Minor ambiguity in 'all eight channels', which is never defined here and presumably appears on the trace tool.

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?

An output schema exists, so return structure need not be restated. For a two-parameter tool the description covers when to call, what is reported (new findings), and the optional trace mode. The remaining gap is how the project/path scope is resolved and what happens on a first run with no prior baseline.

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 0%, so the description must carry the parameter burden. It adds real meaning for 'trace' ('a trace of the run you just made ... score it across all eight channels'), but 'path' is only implied by 'this project' — no format, default, or whether it accepts a file or directory.

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 ('Check this project for privacy problems') plus a distinguishing scope: reporting findings that are NEW since the last check. That delta behavior sets it apart from a plain scan, though it never names or contrasts privacy_scan_code or privacy_check_trace explicitly.

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?

Gives a concrete trigger: 'Call this after writing or changing code that touches user data, secrets, logging, or outbound calls.' The conditional use of the trace argument is also contextualized. It stops short of naming alternatives or when not to use it, notably versus the similarly scoped privacy_scan_code.

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