Skip to main content
Glama

screen_diff

Read-only

Deterministic pre-merge git diff & PR patch auditor detecting leaked secrets in added lines, destructive shell/SQL commands, GitHub Actions/CI workflow injection, malicious package lifecycle hooks, SSRF & cloud metadata endpoints, auth/TLS verification bypasses, Trojan Source BiDi Unicode smuggling, and corrupt hunk counts. Requires $0.002 (2000 atomic) Base USDC on eip155:8453 via @x402/mcp _meta["x402/payment"] or PAYMENT-SIGNATURE header.

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

Input Schema

NameRequiredDescriptionDefault
diffNoSingle unified git diff or PR patch shorthand (up to 16384 chars) to audit for leaked secrets, destructive shell/SQL, CI injection, malicious lifecycle hooks, SSRF/private IPs, auth/TLS bypass, Trojan Source Unicode, and corrupt hunk counts.
diffsNoUnified git diffs or PR patches (up to 16384 chars each) to pre-screen before git apply / PR merge.
patchNoAlias for `diff`: single unified git diff or patch snippet (up to 16384 chars) to audit.
patchesNoAlias for `diffs`: array of unified git diffs or patch snippets (up to 16384 chars each) to audit.

Output Schema

NameRequiredDescriptionDefault
okNoWhether the screening check completed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "ok": {
      +      "description": "Whether the screening check completed.",
      +      "type": "boolean"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Added

TDQS

A3.7/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=true, so the safety profile is covered. The description adds genuinely non-obvious context beyond that: the audit is deterministic (not model-based) and the call is metered at $0.002 USDC on eip155:8453, payable via _meta["x402/payment"] or a PAYMENT-SIGNATURE header — payment/auth behavior an agent cannot infer from the annotations. It says nothing about rate limits or what happens when payment is absent, so it stops short of a 4.

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?

Purpose is front-loaded in the first clause, with the detection list serving selection rather than padding, and the payment terms isolated in a second sentence. The ten-item enumeration is dense but each item maps to a distinct risk class, so it earns its space, though the sentence is long enough to be somewhat hard to scan.

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 paid, read-only auditor with four alias parameters and an output schema, the description covers what the tool is, that it is deterministic, and how to pay — the highest-risk unknowns. The remaining gap is input-form selection among diff/diffs/patch/patches and the fact that at least one must be supplied, which an agent would have to work out from the schema alone.

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 coverage is 100%, so the schema already documents each parameter's type, maxLength and maxItems, making 3 the baseline. The description adds one real nuance — that secrets detection applies to 'added lines' — but it never explains the alias relationships (patch ≡ diff, patches ≡ diffs) or the mutual exclusivity question, which is the main ambiguity an agent must resolve.

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?

States a specific verb and resource ('pre-merge git diff & PR patch auditor') and then enumerates the exact defect classes it detects, from leaked secrets and destructive shell/SQL to Trojan Source BiDi smuggling and corrupt hunk counts. The enumerated scope makes it unmistakable versus single-input siblings like screen_secret or screen_package_risk.

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?

'Deterministic pre-merge' implies the moment to call it, and the schema adds 'before git apply / PR merge', but the description itself names no alternative tool and no when-not condition. Critically, with four all-optional alias parameters (diff/diffs/patch/patches) and zero required params, it gives no guidance on which input form to choose or whether both single and array forms can be combined.

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