Skip to main content
Glama

audit-program

Run a full security audit on Solana/Anchor source code to surface vulnerabilities by severity and receive actionable fix suggestions.

Instructions

Run a full security audit on Solana/Anchor program source code. Returns findings sorted by severity with fix suggestions.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "source_code": "<source_code>"
    },
    "name": "audit-program"
  }
}

Input Schema

NameRequiredDescriptionDefault
source_codeYesRust/Anchor source code to audit
severity_filterNoFilter by severity levels (default: all)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden. It helpfully states the return shape (findings sorted by severity with fix suggestions), which matters since no output schema exists, but it says nothing about runtime cost, whether source is sent to a remote service, or limits on input size.

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 tightly written sentences that front-load the action and immediately follow with the return contract. No filler, no restatement of the tool name.

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

Completeness4/5

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

For a two-parameter tool with no output schema, the definition covers purpose and return format adequately. The main gap is how it relates to the sibling check-* and generate-fix tools, which an agent would need to route correctly.

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 both source_code and severity_filter are already documented in the schema, including the severity enum values and the 'default: all' behavior. The description adds no meaning beyond that, which is the expected baseline when the schema does the work.

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 states a specific verb and resource: run a full security audit on Solana/Anchor program source code. The word 'full' implicitly separates it from the granular checks in siblings like check-accounts and check-arithmetic, though no sibling is named explicitly.

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?

Usage is implied rather than stated: 'full security audit' suggests it is the comprehensive option compared with targeted checks, but the definition never says when to pick this over audit-json or the individual check-* tools, and gives no prerequisites or exclusions.

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