Skip to main content
Glama

explain_finding

Read-onlyIdempotent

Explains a secret-scanning finding: identifies the credential, gives provider-specific rotation or revocation steps, outlines misuse checks, and notes that rewriting Git history does not un-leak it.

Instructions

Explain a finding: what the credential is, how to rotate or revoke it at the provider (step by step), how to check whether it was abused, and why rewriting git history does not un-leak it.

Args: id: a finding id such as f-0123456789abcdef from scan_tree/scan_history (valid until the server restarts), or a rule id such as aws-access-key-id or github-token to get the guidance without a finding.

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": {
      "id": "<id>"
    },
    "name": "explain_finding"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely non-obvious behavior beyond that: finding ids are ephemeral and only valid until the server restarts, and rule ids yield guidance with no finding attached. That lifecycle detail is exactly the kind of operational caveat the schema cannot express.

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 first sentence is front-loaded and information-dense, laying out the four things the explanation returns. The indented 'Args:' block is slightly awkward inside a description string but keeps parameter detail clearly separated from purpose. No filler sentences.

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?

This is a low-complexity, single-parameter read tool with an output schema, so the description does not need to describe return values, and it correctly does not. It covers ephemeral id lifetime and the rule-id fallback. Minor gaps remain: whether an expired or unknown id errors versus degrades, and no explicit routing against suggest_remediation.

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

Parameters5/5

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

Schema coverage is 0% — the schema gives only the name 'id' with no description — so the description must carry the parameter alone, and it does: example format (f-0123456789abcdef), origin (scan_tree/scan_history), validity window, and the alternative rule-id form with concrete examples. Nothing about the single parameter is left ambiguous.

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 names a specific verb ('explain') and enumerates exactly what the explanation contains: what the credential is, step-by-step rotation/revocation at the provider, abuse checks, and why git-history rewriting does not un-leak it. That is far more specific than a restated title. It stops short of distinguishing itself from the sibling suggest_remediation, which plausibly overlaps on the 'how to fix' content.

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?

The Args block conveys two functional modes — pass a finding id for a specific result, or a rule id to get generic guidance without a finding — which is real usage guidance. However, there is no explicit statement of when to prefer this tool over suggest_remediation or the scan tools, so the agent must infer routing.

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