Skip to main content
Glama

Judge the script

judge_script

The house critic's judgement of a script version — the same independent critic the writing pipeline uses, reading the deterministic quality report alongside. Returns scores 0-100 (global, fidelity to the material, channel voice, rhythm), per-scene notes with severity, and the quality report. Each note says where it comes from (source): critic is the model's reading, audit is a contradiction checked against the research material without a model. factualAudit is the deterministic half: per scene, which facts it cites (citations), whether that backing was cited by the script, inferred from its text, or is text the author dictated in the request (dictated_in_the_request: a disclosure or a closing line — it is not a factual claim and is left out of factualScenes), and what happened to each on-screen figure the material does not carry (onScreenClaims[].outcome): notAsserted = it is not shown (stripped from the text, or its magnitude withheld from the chart), drawnWithoutFigure = plotted without its number, stillAsserted = left on screen; placeholders counts, also without a model, text that names with a letter or an order number what the source does not name («Repository A», «Server 1») or leaves a template marker («N/A», «TODO»), per scene and surface (narration, screen, caption); inputs.script says which document was judged (vbp = the version's blueprint, with its citations). scope states what the critic judges (judges: script) and what it does not see (seesCharts, seesPeriods): the charts and each figure's period are covered by the fidelityReport of the project status. Judgement only: it does not rewrite. The verdict is kept on the version as the critic wrote it; the critic judges in one language for every reader, and the notes returned are presented in the reader's language (notesLanguage says which, and whether they were translated). Defaults to the head version. Requires write. Spends one critic call (small, seconds), plus a short translation of its notes when the reader's language is not the critic's.

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": {
      "project_id": "<project_id>"
    },
    "name": "judge_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYes
version_idNoOptional: a specific version; default the project's head.

Output Schema

NameRequiredDescriptionDefault
nextNo
notesNo
scopeNowhat the critic judges and what it does not see
inputsNo
rhythmNo
versionIdNo
scoreGlobalNo
channelVoiceNo
factualAuditNo
placeholdersNo
materialFidelityNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "The house critic's verdict on a script version, with its deterministic audit and its scope.",
      +  "properties": {
      +    "channelVoice": {
      +      "maximum": 100,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "factualAudit": {
      +      "properties": {},
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "inputs": {
      +      "properties": {},
      +      "type": "object"
      +    },
      +    "materialFidelity": {
      +      "maximum": 100,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "next": {
      +      "type": "string"
      +    },
      +    "notes": {
      +      "items": {
      +        "properties": {
      +          "problem": {
      +            "type": "string"
      +          },
      +          "sceneIndex": {
      +            "type": "integer"
      +          },
      +          "severity": {
      +            "type": "string"
      +          },
      +          "source": {
      +            "description": "`critic` is the model's reading; `audit` is checked against the material without a model",
      +            "enum": [
      +              "critic",
      +              "audit"
      +            ],
      +            "type": "string"
      +          },
      +          "suggestion": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "placeholders": {
      +      "properties": {},
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "rhythm": {
      +      "maximum": 100,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "scope": {
      +      "description": "what the critic judges and what it does not see",
      +      "properties": {
      +        "judges": {
      +          "description": "what the house critic judges",
      +          "enum": [
      +            "script"
      +          ],
      +          "type": "string"
      +        },
      +        "note": {
      +          "type": "string"
      +        },
      +        "seesCharts": {
      +          "type": "boolean"
      +        },
      +        "seesPeriods": {
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "scoreGlobal": {
      +      "maximum": 100,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "versionId": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.2/5.0
Behavior5/5

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

With only a non-readonly, non-destructive annotation set, the description carries substantial extra weight: it discloses that the verdict is persisted on the version, that a critic call and possible translation are spent, that permissions require `write`, and how the critic's language differs from the reader's (`notesLanguage`). It also discloses the scope limits (`seesCharts`, `seesPeriods` false) that an agent would otherwise have to discover.

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 front-loads the purpose, but the body is a single dense paragraph with deep nested parentheses cataloguing output fields (`notAsserted`, `drawnWithoutFigure`, `stillAsserted`, `placeholders`) that an output schema already covers. The typology of `source` and `outcome` values is genuinely useful, but the length and structure are heavier than needed.

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?

For a write, billable, multilingual judging tool, the description covers costs, permissions, persistence, defaulting, language handling, and explicit scope exclusions. The only real gap is that the required `project_id` receives no explanation anywhere, forcing the agent to infer its meaning from the sibling tool family.

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 50%: `version_id` is already documented as defaulting to the head, and the description merely restates that default. `project_id` is undocumented in both schema and description, so the description does not compensate for the coverage gap; 3 is the minimum-viable baseline for a two-parameter ID tool.

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?

States a specific verb and resource ('the house critic's judgement of a script version') and immediately distinguishes the operation from rewriting ('Judgement only: it does not rewrite'), which separates it from rewrite_script in the sibling list.

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 clear operating context — defaults to the head version, requires `write`, and spends one critic call plus a short translation — and routes the adjacent concern elsewhere by noting charts and figure periods are covered by the `fidelityReport` of the project status. It never states an explicit when-not condition, but the boundary against rewriting is clear.

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