Skip to main content
Glama

AgentX402: Pay-per-Call AI, Web Render, Search & DeFi Tools

audit_code_security

Read-onlyIdempotent

Deep 24K-context security & bug audit returning risk_score and concrete fixes ($0.05 USDC or free trial).

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": {
      "code": "<code>"
    },
    "name": "audit_code_security"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes
focusNosecurity vulnerabilities, logic bugs, edge cases
languageNoauto

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld, non-destructive, so the safety profile is covered. The description adds genuinely new behavioral context: a 24K-context depth limit, an explicit price ($0.05 USDC) or free trial, and that results include a risk_score plus concrete fixes. It stops short of explaining payment failure behavior, rate limits, or what happens when input exceeds the 24K budget.

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 compact sentence that leads with the capability and follows with the deliverable and cost. The parenthetical pricing is useful rather than filler, though cramming depth, output fields, and billing into a single clause costs some readability.

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?

For a 3-parameter tool with no output schema, the description must carry return-value and constraint information; it does state the key outputs and the context limit, which is adequate. It is still incomplete on how the code must be supplied (full file? language hint?), on billing mechanics, and on any size or rate constraints an agent needs before invoking.

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

Parameters2/5

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

Schema description coverage is 0% across 3 parameters, so the description must compensate and largely does not. It hints at the 'focus' default ('security & bug') and the required 'code' input, but never explains the 'language' parameter or how focus narrows the audit, leaving two of three parameters effectively undocumented.

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 uses a specific verb+resource ('security & bug audit' of code) and names the deliverable ('risk_score and concrete fixes'), which is far more informative than the name alone. It does not explicitly separate itself from the sibling audit_defi_token, so an agent must infer the distinction from the resource type.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to choose this over audit_defi_token or the extraction/render tools, and no prerequisites (code size limits, payment setup, trial eligibility) are given as conditions. Only an implied 'this is for security review' context is present.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources