Skip to main content
Glama

analyze_code

Run read-only code analysis tasks using external CLI agents. Specify a provider, repository path, and task description to get results.

Instructions

Deprecated compatibility wrapper around delegate_tasks for one read-only analysis job. Prefer delegate_tasks + job_result.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskYesConcrete read-only code analysis task for the external agent.
filesNoOptional repo-relative or absolute file paths to focus on. Absolute paths must stay under repo_path.
modelNo
providerYesExternal agent CLI provider.
repo_pathYesAbsolute path to the repository or workspace to analyze.
timeout_secNoTimeout in seconds. Defaults to 600; capped at 1800.
extra_contextNo
include_stderrNoInclude stderr in the returned JSON payload. Defaults to true.
max_output_charsNoMaximum returned output characters. Defaults to 30000; capped at 100000.
Behavior4/5

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

No annotations are provided, so the description carries the burden. It states the tool is read-only and a wrapper around delegate_tasks, which implies no destructive side effects. However, it does not elaborate on other behavioral traits like error handling or output format, but the read-only hint is valuable.

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 two sentences long, no wasted words. It front-loads the deprecation status and the key purpose, then provides the recommended alternative.

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?

Given that this is a deprecated compatibility wrapper, the description is complete: it tells the agent the tool's role, its read-only nature, and directs to the superior alternative. The 9 parameters and lack of output schema are compensated by the schema's own descriptions and the deprecation context.

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 78%, so the schema already documents most parameters. The description adds minimal parameter-specific meaning, only hinting that 'task' is a read-only analysis task. It does not significantly augment the schema's descriptions.

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 is a deprecated compatibility wrapper for one read-only analysis job, distinguishing it from the sibling delegate_tasks. The verb 'analyze_code' and noun 'code' are specific, and the description directly addresses what the tool does.

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 explicitly advises to prefer 'delegate_tasks + job_result' as an alternative, and indicates deprecation. This gives clear when-to-use and when-not-to-use guidance.

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/parkavenue9639/external-agent-mcp'

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