Skip to main content
Glama
codedb-io

codeDB Lens

Official

get_finding

Read-only

Retrieves full details for a single rule finding, including status, impact, next action, fix verification, and evidence rows from a saved diagnostic run.

Instructions

Full detail of one rule in a saved run: status, impact, next action, how to verify the fix, and all evidence rows. Default run: the latest.

Input Schema

NameRequiredDescriptionDefault
runNorun path from history; default: the latest run
profileYesprofile name from list_profiles
rule_idYesrule ID from check, e.g. MSSQL-BACKUP-001

Output Schema

NameRequiredDescriptionDefault
idYes
runYes
rowsNo
titleYes
caveatNo
impactYes
reasonNo
run_atYes
statusYes
verifyYes
columnsNo
doc_urlYes
severityYes
truncatedNo
confidenceYes
total_rowsYes
next_actionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.9.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=false. The description adds useful behavioral context by specifying the returned contents: status, impact, next action, verification guidance, and all evidence rows.

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 tightly written sentences with no wasted words. The core scope is front-loaded, and the default-run note is placed efficiently at the end.

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?

The tool has an output schema, full parameter documentation, and safety annotations, so the description does not need to explain return formats or permissions. It is nearly complete, though it could better clarify its relationship to explain_rule and list_rules.

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 100%, so profile, rule_id, and run are already documented in the schema. The description reinforces the default-run behavior but does not add substantial parameter semantics beyond the schema.

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 retrieval action and resource: full detail of one rule in a saved run. The scope distinguishes it from list-oriented siblings such as list_rules and from run-level tools like history.

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 description implies usage by saying it returns detail for one rule in a saved run and defaults to the latest run. However, it does not explicitly say when to use this instead of explain_rule, check, or list_rules.

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