x402-ai-code-review
AI Code Review: Review code for bugs with AI.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| lang | No | ||
| text | No |
AI Code Review: Review code for bugs with AI.
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| lang | No | ||
| text | No |
Changes observed during successful MCP inspections.
Input schema / allOfAdded value: +[
+ {
+ "anyOf": [
+ {
+ "required": [
+ "code"
+ ]
+ },
+ {
+ "required": [
+ "text"
+ ]
+ }
+ ]
+ }
+]Input schema / properties / code / descriptionRemoved value: -"Code to process"Input schema / properties / lang / descriptionRemoved value: -"Lang to process"Input schema / properties / text / descriptionRemoved value: -"Text to process"Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are supplied, so the description carries the full burden and mostly drops it. It does not say what a review produces (findings? severity? line references?), whether the call is synchronous, whether it is a paid x402 endpoint, or what limits apply to 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.
Is the description appropriately sized, front-loaded, and free of redundancy?
One short front-loaded sentence with no filler, which is structurally fine. The brevity is under-specification rather than genuine conciseness, since almost no useful information is conveyed.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With no annotations, no output schema, and 0% parameter coverage, the description would need to do substantial work and does none. An agent cannot determine required inputs, expected output, or cost from this definition.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0% and the description explains none of the three parameters. Critically, the schema's anyOf requires either "code" or "text" without explaining how the two differ or what "lang" expects, and the description does nothing to resolve that ambiguity.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
"Review code for bugs" gives a verb and a resource, so the basic action is legible. But it is generic enough to be indistinguishable from several siblings (ai-diff-review, code-review-lite, api-review, code-diagnose), and "with AI" adds no discriminating information.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no when-to-use guidance, no prerequisites, and no mention of when a different review/diagnose tool would be a better fit. The agent is left to infer everything about routing from the name alone.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.