Skip to main content
Glama

ai_grade

Read-only

AI grader / LLM-as-judge with rubric — Score any text (an LLM answer, essay, email, support reply, summary) against your rubric: each criterion gets a 1-10 score with a one-line reason, weighted overall score, PASS / REVISE / FAIL verdict against your threshold, blocking criteria, strengths, weaknesses and specific fixes. Optional task= (what the writer was asked) and reference= (ideal answer) for correctness checks, pass= threshold (default 7). Use it to evaluate agent outputs or gate content before sending. Price: $0.008 USDC (Base, via x402).

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": {
      "text": "<text>"
    },
    "name": "ai_grade"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesthe output to evaluate
rubricNooptional criteria separated by ; (append :2 to weight), e.g. accuracy:2;clarity;tone

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description adds substantive context beyond them: output structure (per-criterion scores, reasons, weighted total, verdict, blocking criteria, strengths, weaknesses, fixes), the default pass threshold of 7, and an explicit price of $0.008 USDC via x402 on Base. This is a paid, open-world call, and the description surfaces both the cost and the return shape in the absence of an output schema. It does not cover failure modes, latency, or what happens when text is empty.

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?

Front-loaded with the core action and output shape, then parameters, use case, and price in a logical order with no filler sentences. The single dense paragraph is long but every clause carries information, apart from the phantom parameter list which adds noise rather than value.

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?

With no output schema, the description rightly spends effort describing the return payload, which makes it largely self-sufficient. However, by advertising task/reference/pass inputs absent from the schema, it leaves the agent with an inaccurate picture of how to configure correctness checks or thresholds, which is a material gap for a tool whose value depends on that configuration.

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 coverage is 100%, so the baseline would be 3, but the description actively introduces parameters that do not exist in the schema: 'task=' (what the writer was asked), 'reference=' (ideal answer), and 'pass=' (threshold, default 7). Only text and rubric are actually accepted, so an agent following the description may attempt arguments that will be rejected. The rubric weighting syntax it mentions ('append :2 to weight') merely repeats the schema description.

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?

States a concrete verb and resource: score arbitrary text against a rubric, returning per-criterion 1-10 scores, weighted overall, and a PASS/REVISE/FAIL verdict. That output shape implicitly distinguishes it from siblings like ai_classify or ai_moderate, but no sibling is named, so differentiation is inferred rather than explicit.

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

Usage Guidelines4/5

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

Gives a clear usage context — 'evaluate agent outputs or gate content before sending' — which tells the agent when this tool fits. It offers no when-not guidance and names no alternative tool for simpler classification or pairwise comparison, so the agent must infer the boundary from the output description.

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