Skip to main content
Glama

Advisory code deep-dive

analyze_code
Read-onlyIdempotent

Review code to uncover performance bottlenecks, scalability risks, and tech debt with quantified impact. Read-only analysis provides scores and findings without pass/fail verdicts.

Instructions

Advisory deep-dive on existing code — scores and findings, deliberately NO pass/fail verdict, so it never blocks an agent. Surfaces performance hot paths, scalability cliffs, reliability gaps and tech debt with concrete latency/throughput arithmetic (e.g. 'O(n²) dedup: ~4s at 10k items'). Read-only: the code is analyzed, never executed. Use it to understand a validate_ai_output rejection or review inherited code; use validate_ai_output when you need an accept/reject decision.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesThe source code to analyze — a function, file or pasted excerpt.
languageNoSource language, e.g. 'python', 'typescript', 'cpp', 'sql', 'swift'. Inferred if omitted; stating it sharpens findings.
analysis_typeNoLens for the review: 'quality' (default, broad ISO/IEC 25010 pass) or a focused pass on one dimension.quality

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
issuesYesFindings as 'severity|category|detail' with supporting arithmetic
providerNo
complexityNolow | medium | high
suggestionsNo
quality_scoreYes0-100 advisory score for the chosen lens
Behavior5/5

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

The description adds substantial behavioral context beyond the annotations: it states the tool is read-only and never executes code (aligning with readOnlyHint), deliberately has no pass/fail verdict, and produces concrete latency/throughput arithmetic. The description enriches the agent's understanding of what the tool will and won't do.

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 sentences, front-loaded with the core purpose, and every clause earns its place. It packs the key behavioral constraints and usage alternatives without redundancy or fluff.

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?

The description fully covers what the tool returns (scores/findings, no verdict), its scope (existing code), its safety characteristics (read-only, never executes), and when to use it. The presence of an output schema and complete input schema coverage means the description doesn't need to explain structured fields; it provides all necessary contextual guidance.

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 input schema already fully documents all three parameters (code, language, analysis_type) with descriptions. The tool description does not directly add parameter-level semantics, but it does reinforce the high-level purpose (e.g., 'scores and findings') that maps to the analysis_type enum. Baseline of 3 is appropriate given complete schema coverage.

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 clearly states the tool performs an 'Advisory deep-dive on existing code' that 'scores and findings', with a specific scope (existing code, performance, scalability, reliability, tech debt). It explicitly distinguishes itself from validate_ai_output by noting it deliberately returns no pass/fail verdict, so an agent can tell which tool fits.

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?

Provides explicit when-to-use guidance: 'Use it to understand a validate_ai_output rejection or review inherited code; use validate_ai_output when you need an accept/reject decision.' This clearly contrasts with sibling tools and sets the context for choosing this tool.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Verificate-Dev/verificate-mcp-quickstart'

If you have feedback or need assistance with the MCP directory API, please join our Discord server