Skip to main content
Glama

analyze

Read-only

Perform comprehensive code analysis with systematic investigation and expert validation for architecture, performance, maintainability, and patterns. Guides structured code review and strategic planning.

Instructions

Performs comprehensive code analysis with systematic investigation and expert validation. Use for architecture, performance, maintainability, and pattern analysis. Guides through structured code review and strategic planning.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stepYesThe analysis plan. Step 1: State your strategy, including how you will map the codebase structure, understand business logic, and assess code quality, performance implications, and architectural patterns. Later steps: Report findings and adapt the approach as new insights emerge.
modelYesCurrently in auto model selection mode. CRITICAL: When the user names a model, you MUST use that exact name unless the server rejects it. If no model is provided, you may use the `listmodels` tool to review options and select an appropriate match. Top models: gemini-2.5-pro (score 100, 1.0M ctx, thinking, code-gen); gemini-3-pro-preview (score 100, 1.0M ctx, thinking, code-gen); gemini-2.5-flash (score 61, 1.0M ctx, thinking); gemini-2.0-flash (score 56, 1.0M ctx, thinking); gemini-2.0-flash-lite (score 42, 1.0M ctx).
imagesNoOptional absolute paths to architecture diagrams or visual references that help with analysis context.
findingsYesSummary of discoveries from this step, including architectural patterns, tech stack assessment, scalability characteristics, performance implications, maintainability factors, and strategic improvement opportunities. IMPORTANT: Document both strengths (good patterns, solid architecture) and concerns (tech debt, overengineering, unnecessary complexity). In later steps, confirm or update past findings with additional evidence.
confidenceNoYour confidence in the analysis: exploring, low, medium, high, very_high, almost_certain, or certain. 'certain' indicates the analysis is complete and ready for validation.
step_numberYesThe index of the current step in the analysis sequence, beginning at 1. Each step should build upon or revise the previous one.
temperatureNo0 = deterministic · 1 = creative.
total_stepsYesYour current estimate for how many steps will be needed to complete the analysis. Adjust as new findings emerge.
issues_foundNoIssues or concerns identified during analysis, each with severity level (critical, high, medium, low)
analysis_typeNoType of analysis to perform (architecture, performance, security, quality, general)general
files_checkedNoList all files examined (absolute paths). Include even ruled-out files to track exploration path.
output_formatNoHow to format the output (summary, detailed, actionable)detailed
thinking_modeNoReasoning depth: minimal, low, medium, high, or max.
relevant_filesNoSubset of files_checked directly relevant to analysis findings (absolute paths). Include files with significant patterns, architectural decisions, or strategic improvement opportunities.
continuation_idNoUnique thread continuation ID for multi-turn conversations. Works across different tools. ALWAYS reuse the last continuation_id you were given—this preserves full conversation context, files, and findings so the agent can resume seamlessly.
relevant_contextNoMethods/functions identified as involved in the issue
next_step_requiredYesSet to true if you plan to continue the investigation with another step. False means you believe the analysis is complete and ready for expert validation.
use_assistant_modelNoUse assistant model for expert analysis after workflow steps. False skips expert analysis, relies solely on your personal investigation. Defaults to True for comprehensive validation.
Behavior3/5

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

Annotations declare readOnlyHint=true, and the description aligns with analysis being read-only. However, the description does not disclose the multi-step workflow (step_number, total_steps), the use of continuation_id for multi-turn conversations, or the model selection behavior, which are critical behavioral traits beyond annotations.

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 description is two sentences, concise and front-loaded with purpose. No unnecessary repetition, though it could benefit from slightly more detail on workflow without being verbose.

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

Completeness2/5

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

Given the tool's complexity (18 parameters, 6 required, multi-step workflow, no output schema), the description is too sparse. It omits the iterative step process, continuation_id usage, and how to interpret findings, leaving the AI agent underinformed.

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 the schema alone fully documents parameters. The description adds no additional parameter-specific meaning, meeting the baseline expectation but not exceeding it.

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 clearly states it performs comprehensive code analysis for architecture, performance, etc., and uses verb 'analyze' with specific domains. However, it does not explicitly differentiate from sibling tools like codereview or secaudit, which also analyze code.

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 says 'Use for architecture, performance, maintainability, and pattern analysis' but gives no guidance on when not to use it or alternatives. It lacks explicit when-not or comparisons to siblings.

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/bigl34/pal-mcp-server'

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