Skip to main content
Glama

sage-x402-tools

ai_code_security_review

Read-only

[x402: $0.040 Base USDC] Automated vulnerability and logic-bug security review for Solidity, TypeScript, Python, Go, or Rust snippets powered by Qwen2.5-Coder-32B, returning structured severity findings and exact fixes. Direct HTTP: POST https://sage-x402-tools.sage-ibis.workers.dev/v1/ai/code-security-review (Free preview: GET https://sage-x402-tools.sage-ibis.workers.dev/v1/ai/code-security-review/sample)

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": "ai_code_security_review"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes
languageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, yet the description still adds materially useful behavior: a per-call cost of $0.040 in Base USDC via x402, the underlying model, the fact that findings are structured with exact fixes, and direct HTTP endpoints for non-MCP invocation. What it omits is the payment/auth mechanics (how the x402 settlement is triggered) and any rate or size limits on submitted code.

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?

A single front-loaded sentence carries purpose, model, languages, and output, followed by a compact parenthetical for the HTTP endpoints and free preview. Nothing is filler; the pricing is placed up front where cost-sensitive agents will see it first.

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?

With no output schema, the description correctly takes on the job of describing returns ('structured severity findings and exact fixes'), though it does not enumerate the finding fields. For a two-parameter, read-only review tool the definition covers purpose, cost, model, and invocation paths adequately, with only the x402 payment flow and input size constraints left implicit.

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 0%, so the description carries the burden for both parameters. It partially compensates by enumerating the accepted language values (Solidity, TypeScript, Python, Go, Rust), which gives real meaning to the otherwise bare 'language' string. However, it says nothing about whether 'code' is a snippet or full file, size limits, or what happens if 'language' is omitted.

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 opens with a specific verb and resource — 'Automated vulnerability and logic-bug security review' — and names the exact artifact types (Solidity, TypeScript, Python, Go, Rust snippets), the backing model (Qwen2.5-Coder-32B), and the output shape (severity findings plus fixes). That level of specificity clearly separates it from siblings like security_pre_trade_audit or web_dns_audit.

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 only implied: an agent can infer this tool is for reviewing code snippets, and the free sample endpoint hints at a try-before-paying workflow. There is no explicit statement of when to use this versus the other security or AI-model siblings, and no exclusions or prerequisites beyond the price tag.

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