Skip to main content
Glama

WATR Software Oracle — estándar de arquitectura por rule_id

judge_code

Opinión del corpus sobre un fragmento, con una probabilidad por regla.

Diferencia con review_code: ahí recibes las reglas y juzgas tú, así que dos clientes sobre el mismo diff pueden discrepar. Aquí el corpus se moja: una pregunta por regla en alcance, y el stance decide qué umbral aplica.

⚠️ NO es una compuerta, y no lo cuelgues de un CI. Medido sobre 13 pares reales (26 mediciones, 6 autores, 2018–2026): deja pasar el 38% de las violaciones, y el barrido completo de umbrales no encuentra nada mejor porque el límite es la resolución del instrumento, no dónde se corta. Para lo que sí sirve: ordenar qué mirar primero y decirte con qué regla, que son 11 aciertos de 13 al comparar un antes contra un después.

⚠️ Manda el fragmento a api.typesafe.ai, un tercero. review_code no sale de esta máquina: si el código no puede salir, usa ése.

Input Schema

NameRequiredDescriptionDefault
codeYes
languageNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it discloses third-party egress to api.typesafe.ai, admits a quantified false-negative rate rather than overselling, and frames the output as non-authoritative probabilities. It omits operational details such as authentication, rate limits, latency, or cost, which keeps it short of a 5 for a no-annotation tool.

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?

Purpose and the sibling contrast are front-loaded, then the two warnings follow in descending importance, which is the right order. It runs long and the measured-statistics sentence could be tightened, but nearly every sentence adds decision-relevant information rather than filler.

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 probabilistic judgment tool with network egress and no annotations, the definition covers purpose, alternatives, accuracy limits, and privacy risk, and an output schema exists so return values need not be explained. The gaps are real: the `language` parameter is unaddressed, and the description invokes a stance/threshold mechanism without saying how a caller supplies or influences it.

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%, so the description must compensate, and it largely does not: `code` is only alluded to as 'el fragmento' and the `language` parameter is never mentioned at all. It also references a 'stance' and threshold selection that have no corresponding parameter in the schema, leaving the agent unsure how that mechanism is controlled.

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 opening states the resource (a code fragment) and what comes back (a probability per rule), and the second paragraph explicitly contrasts it with `review_code`: here the corpus judges, there you judge. The phrase 'opinión del corpus' is slightly metaphorical, but combined with the sibling contrast an agent can tell the two apart without opening either schema.

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

Usage Guidelines5/5

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

It gives explicit when-to-use (order what to review first and say which rule), explicit when-NOT-to-use (not a gate, do not wire it into CI, with measured evidence of 38% of violations passing), and an explicit alternative for the privacy case (use `review_code` if the code cannot leave the machine). Nothing is left for the agent to infer.

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