Skip to main content
Glama

Apex Code Review

apex_code_review

Audit Web3 smart contracts for security flaws using static analysis and AI. Accepts GitHub repo URL or Solidity code, returns a score and prioritized findings.

Instructions

Run a preliminary security audit on a Web3 project's smart contracts. Accepts a public GitHub repo URL (Solidity and/or Rust) or pasted Solidity source. Runs static analysers (Slither, cargo-audit, clippy) in a sandbox plus an AI review pass, returning a 0-100 score across 5 dimensions (security, code quality, dependencies, testing, documentation), prioritized findings with severity and file/line refs, and recommendations. Use this when asked to audit, review, or assess the security of a project's contracts or on-chain code. This is a first-pass triage, not a substitute for a professional audit. Audits run async: for a large repo this tool may return an audit_id and ask you to call it again with that audit_id to fetch the finished report. Limited to 3 submissions per day.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
github_urlNoPublic GitHub repository URL to audit. The server clones the repo and analyses Solidity (.sol) and Rust on-chain code. Example: "https://github.com/Uniswap/v2-core". Mutually exclusive with contract_source and audit_id.
contract_sourceNoRaw Solidity source code to audit directly, for a quick single-file check without a repo. Mutually exclusive with github_url and audit_id.
audit_idNoThe id of an audit that was previously started. Use this to fetch the result of an audit that was still running when it was first submitted. Mutually exclusive with github_url and contract_source.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
auditIdNo
scoreNoOverall security score 0-100.
findingsNoSecurity findings discovered in the audit.
summaryNo
Behavior5/5

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

Annotations indicate readOnlyHint=false, destructiveHint=false, openWorldHint=true. The description adds behavioral details: runs in sandbox, async for large repos, limited to 3 submissions per day, and returns audit_id. No contradictions with annotations.

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 concise yet comprehensive, front-loading the main purpose and then detailing behavior, usage, and limitations. Every sentence adds necessary information.

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 the tool's complexity (multiple input modes, async behavior, output with score and findings), the description covers all key aspects: input types, processing steps, output format, async behavior, and daily limit. Output schema exists, but description explains return values sufficiently.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with descriptions for all three parameters. The description adds context: mutually exclusive parameters, usage scenarios (repo vs source vs audit_id), and clarifies that github_url clones repo and analyses Solidity/Rust. This adds semantic value 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?

The description clearly states the tool runs a preliminary security audit on smart contracts, accepts GitHub URL or pasted Solidity source, runs static analysers and AI review, and returns a score and findings. It is specific and distinguishes from sibling tool names.

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 says 'use this when asked to audit, review, or assess the security of a project's contracts or on-chain code.' It also provides context on when not to use (not a substitute for professional audit) and notes async behavior for large repos.

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/Apex-Foundation/copilot-mcp'

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