Skip to main content
Glama

x402-ai-contract

AI Contract: Analyze a smart contract with AI.

Input Schema

NameRequiredDescriptionDefault
textNo
contractNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / contract / description
      Removed value: -"Contract to process"
    • removedInput schema / properties / text / description
      Removed value: -"Text to process"
  2. Changed1 schema field changed
    • addedInput schema / properties / text
      Added value: +{
      +  "description": "Text to process",
      +  "type": "string"
      +}
  3. First observed

TDQS

D1.9/5.0
Behavior1/5

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

No annotations are provided, so the description carries the full behavioral burden and delivers none. It says nothing about whether the tool reads or mutates state, what permissions or payment (x402) are required, what the analysis produces, or any rate or size limits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single short, front-loaded sentence, so it is not bloated. However, the "AI Contract:" prefix duplicates the tool name and "with AI" is filler, so not every fragment earns its place.

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

Completeness1/5

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

With no annotations, no output schema, zero parameter documentation, and two ambiguous optional params, the description is far too thin for an AI-backed analysis tool. An agent cannot determine what to send or what it will get back.

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

Parameters1/5

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

Schema description coverage is 0% and both parameters (text, contract) are bare strings with no required flags. The description does not explain the difference between them — e.g. whether 'contract' is an address and 'text' is source code — leaving the core calling ambiguity unresolved.

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?

"Analyze a smart contract" gives a verb and a resource, so the basic purpose is inferable. But "with AI" adds nothing, and the description never distinguishes this from close siblings like x402-smart-contract-audit, x402-contract-scan, or x402-contract-triage, leaving the agent unable to choose between them.

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 when-to-use guidance, no exclusions, and no mention of alternatives despite several overlapping contract-analysis siblings existing. The agent gets no signal about which of the near-identical tools to pick.

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