Skip to main content
Glama

Security Deep Dive

security_deep_dive
Read-onlyIdempotent

Run an OWASP-oriented security pass over a source file. PREMIUM (license).

Checks injection sinks, auth/session handling, crypto misuse, SSRF/deserialization, and unsafe file/path handling — each finding cites the line, the OWASP risk class, and a concrete fix direction. Typical input {"code": ""} returns {"issues": N, "findings": [{"line": N, "class": "A03 Injection", "fix": "...", "code": "..."}], "owasp_note": "..."}.

Use on one source file when vulnerabilities are the question. Not for style or structure (complexity_report), and never a substitute for a security professional on high-risk code. Errors: on invalid, missing, or malformed input this tool never raises a protocol error — it returns {"error": ""}. Every call is read-only and idempotent, so after correcting the input it is always safe to retry.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesFull source text to audit, pasted as a single string; any common language.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

TDQS

A5/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false. The description reinforces these with 'Every call is read-only and idempotent' and expands on error behavior: 'never raises a protocol error — it returns {"error": "..."}'. This adds practical behavioral context beyond the annotations, covering safety and error handling.

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?

The description is structured in clear, well-organized paragraphs: purpose, capabilities, output format, usage guidance, and error behavior. Every sentence adds meaningful information without redundancy. Despite being multi-paragraph, it is efficiently front-loaded with the core action and quickly orients the agent.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With a single parameter and an existing output schema, the description covers all necessary aspects: input format, output structure (with example), error handling, usage constraints, and safety guarantees. The mention of OWASP classes and fix direction provides a clear picture of what the tool returns. No gaps are evident.

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?

The input schema has only one parameter, 'code', with 100% schema description coverage. The description adds meaning by providing a concrete example of typical input ('{"code": "<file contents>"}') and clarifies that the input expects 'Full source text to audit, pasted as a single string; any common language.' This goes beyond the schema's brief description by giving usage context and format expectations.

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 explicitly states the tool runs an 'OWASP-oriented security pass over a source file' and lists specific vulnerability categories (injection, auth, crypto, SSRF, file handling). It distinguishes from siblings by noting it is not for 'style or structure (complexity_report)' and implicitly differentiates from secret_scan and ai_code_smell_scan. The verb-resource combination is clear and specific.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description advises 'Use on one source file when vulnerabilities are the question' and explicitly states when not to use it: 'Not for style or structure (complexity_report), and never a substitute for a security professional on high-risk code.' This provides clear context for tool selection and excludes alternative uses, giving the agent actionable 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.

TDQS

A4.6/5.0
Disambiguation5/5

Each tool targets a distinct analysis area: AI-generated code smells, structural complexity, reviewer persona, review checklist, diff risk scanning, secret scanning, and OWASP security deep dive. Even though review_diff and security_deep_dive both touch security, one is diff-based and the other is full-file, and descriptions clarify the difference.

Naming Consistency4/5

All names use snake_case, but there is a mix of verb-first (ai_code_smell_scan, get_reviewer_persona, secret_scan) and noun-first (complexity_report, review_checklist, review_diff, security_deep_dive) patterns. This is mostly consistent but the verb usage varies (scan, get, report, checklist, dive).

Tool Count5/5

7 tools is well-scoped for a code review analysis server. Each tool serves a specific purpose without overlap, covering multiple angles (AI smells, complexity, security, secrets, diff review, checklist, persona) without being overwhelming.

Completeness4/5

The tool set covers essential static analysis tasks for code review: structural, security, secret detection, and AI-generated code detection. It also provides supporting tools (checklist, persona). A minor gap is the lack of an integrated tool that produces a consolidated review summary or comment generation from findings.

Resources