Skip to main content
Glama

audit-json

Run security audits on Rust/Anchor Solana source code against vulnerability patterns and return structured JSON results for programmatic risk analysis.

Instructions

Run audit and return structured JSON results for programmatic consumption.

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-json"
  }
}

Input Schema

NameRequiredDescriptionDefault
source_codeYesRust/Anchor source code

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations and no output schema, the description carries the full burden and only discloses that the result is JSON. It says nothing about whether the audit is read-only analysis, what checks run, how long it takes, or anything about the result shape beyond the serialization format.

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?

One sentence, front-loaded with the action and immediately followed by the output characteristic. Nothing is wasted, though the brevity leaves substantive questions unanswered.

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

Completeness3/5

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

The tool is simple (one required parameter), so the definition is not grossly inadequate, but with no output schema the agent gets no sense of the returned structure and no indication of how this differs from audit-program or whether it subsumes the check-* tools.

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?

There is a single required parameter, source_code, and the schema documents it fully ("Rust/Anchor source code") at 100% coverage. The description adds no meaning beyond that, so the baseline 3 for high schema coverage applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a verb ("Run audit") and an output format ("structured JSON results"), but never says what the audit actually covers — security checks, arithmetic, CPI, PDAs — despite a sibling set full of narrowly scoped check tools. An agent can tell this returns JSON, but not what analysis produces it.

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?

"For programmatic consumption" implies the usage condition (machine-readable output rather than prose), which likely distinguishes it from audit-program. However, no alternative is named and there are no exclusions, so the agent must infer the routing rule rather than read it.

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