Skip to main content
Glama

privacy_scan_code

Read-only

Scans source code for hardcoded secrets, PII written to logs, and sensitive values sent to third parties, reporting the current privacy state without tracking changes.

Instructions

Scan source code for hardcoded secrets, PII written to logs, and sensitive values sent to third parties. Use when you only need the current state and not the change since last time.

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_scan_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNo.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.17.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds the detection scope, which is useful, but says nothing about scan cost, what happens on a large tree, or whether findings are limited or paginated. Since the output schema exists, the omission of return details is forgiven, but there is little behavior beyond annotations and purpose.

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?

Two tight sentences with no filler; the capability statement comes first and the usage condition second. Every clause earns its place.

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?

For a single-parameter read-only scanner with an output schema, the description covers what is scanned and when to use it. The one real gap is the scan scope (path and its default), which is central to invoking the tool correctly.

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

Parameters2/5

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

There is exactly one parameter, 'path', with 0% schema description coverage and default '.'. The description never mentions path, scope, or the default, so it adds no meaning over the bare schema and leaves the agent to guess whether the scan is rooted at cwd.

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?

The description gives a specific verb ('Scan source code') and enumerates the concrete targets: hardcoded secrets, PII in logs, and sensitive values sent to third parties. That is much clearer than a generic 'scan' tool, though it never names a sibling the way the best definitions do, so the agent must infer how this differs from privacy_preflight or privacy_check_trace.

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?

'Use when you only need the current state and not the change since last time' gives a positive condition and an implicit counter-case, which is genuine routing guidance. It falls short of a 5 because the alternative it is contrasted against is never named, so an agent cannot map the 'change since last time' case to a specific sibling tool.

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