Skip to main content
Glama

Explain a scan finding

explain_finding
Read-onlyIdempotent

Explains one type of finding from an AI App Medic scan in plain language: what it means, why it matters, and the specific fix steps this scanner recommends for apps built with Lovable, Bolt, Cursor, Replit, v0 and Supabase. Call this whenever the user asks what a scan finding, security header, RLS, CSP, exposed key, source map or similar issue means, even if they have not just run a scan. Pass the finding id shown in a scan result, for example hdr_content-security-policy, supabase_open_tables, secret_openai or sourcemaps. Common names like CSP, HSTS, RLS and openai also work. Pass list to see all ids. Works offline and does not scan anything.

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
idYesFinding id from a scan result, a common name such as "csp", or "list".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/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 behavior the annotations cannot express: that it performs no scanning, that it works offline, and that the response contains plain-language meaning plus recommended fix steps. It does not say what happens with an unrecognized id, which is the main remaining behavioral gap.

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 purpose and trigger are front-loaded in the first two sentences, with invocation details after, which is the right ordering. It is a single dense paragraph and the vendor list (Lovable, Bolt, Cursor, Replit, v0, Supabase) is mildly verbose, but every sentence contributes actionable information.

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 one-parameter, read-only lookup with no output schema, the description covers what the tool does, how to supply ids, how to enumerate them, and that no scan is triggered. The only omission is failure behavior for an invalid id, which is minor given the schema's maxLength constraint.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description goes beyond it by supplying concrete id examples (hdr_content-security-policy, supabase_open_tables, secret_openai, sourcemaps) and by stating that common aliases like CSP, HSTS, RLS and openai are accepted. The "list" sentinel is repeated from the schema but reinforced with intent ("Pass list to see all ids"), making it clear it is a discovery mechanism rather than a finding.

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?

The description opens with a specific verb+resource ("Explains one type of finding from an AI App Medic scan") and enumerates the three things it returns: meaning, significance, and fix steps. "Works offline and does not scan anything" cleanly separates it from the scan_app sibling, so an agent can route without opening the schema.

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?

It gives an explicit trigger ("Call this whenever the user asks what a scan finding, security header, RLS, CSP, exposed key, source map or similar issue means, even if they have not just run a scan"), which covers a non-obvious case where an agent might wrongly reach for a scan tool. It stops short of naming an alternative tool or a when-not-to-use condition, so it is clear context rather than full routing guidance.

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