Skip to main content
Glama

Check a render against its reference

check_render
Read-only

After rendering a video from a reference, check it against that film's measured timeline and get concrete fixes: cut timing to the frame, pace, brightness curve, motion per shot, loudness for the platform, and format. First measure your render: run node scripts/measure.mjs <file> from the Refs starter kit (curl -sL https://refs.video/starter.zip -o refs-starter.zip && unzip refs-starter.zip; it unpacks to refs-starter/) and pass the JSON it prints as render. Returns a score out of 100, a table of checks and a numbered fix list (frames at your render's frame rate), then the same as JSON. Costs 2 credits, so fix, re-measure and check again. Needs a Refs account with Pro; without one, the app asks the user to sign in. search_videos is free.

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": {
      "id": "<id>",
      "render": "<render>"
    },
    "name": "check_render"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe reference you built from: REF-0005, a refs.video/v/… link, a YouTube/X link, or an id from search_videos
renderYesThe JSON printed by `node scripts/measure.mjs <your video>`, as an object (or that JSON as text)
targetNoWhere it will be posted; sets the loudness target: x, youtube, instagram and meta −14 LUFS, tiktok −14 to −10, web −16, true peak ≤ −1 dBTP. Default: the reference's platform

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / render / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "audio": {
      -        "properties": {
      -          "has_audio": {
      -            "type": "boolean"
      -          },
      -          "integrated_lufs": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          },
      -          "range_lu": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          },
      -          "true_peak_dbtp": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          }
      -        },
      -        "required": [
      -          "has_audio",
      -          "integrated_lufs",
      -          "true_peak_dbtp",
      -          "range_lu"
      -        ],
      -        "type": "object"
      -      },
      -      "cuts": {
      -        "items": {
      -          "properties": {
      -            "frame": {
      -              "maximum": 9007199254740991,
      -              "minimum": 0,
      -              "type": "integer"
      -            },
      -            "score": {
      -              "type": "number"
      -            },
      -            "t": {
      -              "minimum": 0,
      -              "type": "number"
      -            }
      -          },
      -          "required": [
      -            "t",
      -            "frame",
      -            "score"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "duration_s": {
      -        "exclusiveMinimum": 0,
      -        "type": "number"
      -      },
      -      "file": {
      -        "type": "string"
      -      },
      -      "fps": {
      -        "exclusiveMinimum": 0,
      -        "maximum": 1000,
      -        "type": "number"
      -      },
      -      "height": {
      -        "exclusiveMinimum": 0,
      -        "maximum": 9007199254740991,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "refs-render-measure",
      -        "type": "string"
      -      },
      -      "luma": {
      -        "properties": {
      -          "mean": {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          "p95": {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          "step_s": {
      -            "exclusiveMinimum": 0,
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "step_s",
      -          "mean",
      -          "p95"
      -        ],
      -        "type": "object"
      -      },
      -      "motion": {
      -        "properties": {
      -          "diff": {
      -            "items": {
      -              "type": "number"
      -            },
      -            "type": "array"
      -          },
      -          "step_s": {
      -            "exclusiveMinimum": 0,
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "step_s",
      -          "diff"
      -        ],
      -        "type": "object"
      -      },
      -      "version": {
      -        "type": "number"
      -      },
      -      "width": {
      -        "exclusiveMinimum": 0,
      -        "maximum": 9007199254740991,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "version",
      -      "duration_s",
      -      "fps",
      -      "width",
      -      "height",
      -      "cuts",
      -      "luma",
      -      "motion",
      -      "audio"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": {},
      -    "propertyNames": {
      -      "type": "string"
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "audio": {
      +        "properties": {
      +          "has_audio": {
      +            "type": "boolean"
      +          },
      +          "integrated_lufs": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "range_lu": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "true_peak_dbtp": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "has_audio",
      +          "integrated_lufs",
      +          "true_peak_dbtp",
      +          "range_lu"
      +        ],
      +        "type": "object"
      +      },
      +      "cuts": {
      +        "items": {
      +          "properties": {
      +            "frame": {
      +              "maximum": 9007199254740991,
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "score": {
      +              "type": "number"
      +            },
      +            "t": {
      +              "minimum": 0,
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "t",
      +            "frame",
      +            "score"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "duration_s": {
      +        "exclusiveMinimum": 0,
      +        "type": "number"
      +      },
      +      "file": {
      +        "type": "string"
      +      },
      +      "fps": {
      +        "exclusiveMinimum": 0,
      +        "maximum": 1000,
      +        "type": "number"
      +      },
      +      "height": {
      +        "exclusiveMinimum": 0,
      +        "maximum": 9007199254740991,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "refs-render-measure",
      +        "type": "string"
      +      },
      +      "luma": {
      +        "properties": {
      +          "mean": {
      +            "items": {
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          "p95": {
      +            "items": {
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          "step_s": {
      +            "exclusiveMinimum": 0,
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "step_s",
      +          "mean",
      +          "p95"
      +        ],
      +        "type": "object"
      +      },
      +      "motion": {
      +        "properties": {
      +          "density": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "median_change": {
      +                "type": [
      +                  "number",
      +                  "null"
      +                ]
      +              },
      +              "moving_pct": {
      +                "type": "number"
      +              },
      +              "still_pct": {
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "moving_pct",
      +              "still_pct",
      +              "median_change"
      +            ],
      +            "type": "object"
      +          },
      +          "diff": {
      +            "items": {
      +              "type": "number"
      +            },
      +            "type": "array"
      +          },
      +          "step_s": {
      +            "exclusiveMinimum": 0,
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "step_s",
      +          "diff"
      +        ],
      +        "type": "object"
      +      },
      +      "version": {
      +        "type": "number"
      +      },
      +      "width": {
      +        "exclusiveMinimum": 0,
      +        "maximum": 9007199254740991,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "version",
      +      "duration_s",
      +      "fps",
      +      "width",
      +      "height",
      +      "cuts",
      +      "luma",
      +      "motion",
      +      "audio"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": {},
      +    "propertyNames": {
      +      "type": "string"
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "string"
      +  }
      +]
  2. Changed3 schema fields changed
    • removedInput schema / properties / context
      Removed value: -{
      -  "description": "Explain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as \"a user\", \"the customer\", or \"an account\". Example: \"Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution.\"",
      -  "type": "string"
      -}
    • removedInput schema / properties / llm_model
      Removed value: -{
      -  "description": "The exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. \"claude-opus-4-8\", \"gpt-5.2\"). Used for analytics only. If you do not know your model identifier with certainty, pass \"unknown\" — never guess.",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "id",
      -  "render",
      -  "context",
      -  "llm_model"
      -]New value: +[
      +  "id",
      +  "render"
      +]
  3. Changed2 schema fields changed
    • changedInput schema / properties / target / description
      Previous value: -"Where it will be posted; sets the loudness target: x and youtube −14 LUFS, tiktok −14 to −10, web −16, true peak ≤ −1 dBTP. Default: the reference's platform"New value: +"Where it will be posted; sets the loudness target: x, youtube, instagram and meta −14 LUFS, tiktok −14 to −10, web −16, true peak ≤ −1 dBTP. Default: the reference's platform"
    • changedInput schema / properties / target / enum
      Previous value: -[
      -  "x",
      -  "youtube",
      -  "tiktok",
      -  "web"
      -]New value: +[
      +  "x",
      +  "youtube",
      +  "tiktok",
      +  "instagram",
      +  "meta",
      +  "web"
      +]
  4. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing credit cost (2 credits), the Pro-account/auth requirement and sign-in fallback, the prerequisite measurement script, and the return shape (score out of 100, check table, numbered fix list, then JSON). The credit spend is consistent with idempotentHint=false.

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 prerequisite are front-loaded and most sentences carry information. The inline curl/unzip one-liner is bulky and interrupts the flow, but it is actionable setup content rather than filler.

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

Completeness5/5

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

For a 3-parameter tool with no output schema, the description covers the workflow, cost, auth, and return values, leaving nothing an agent needs in order to call it correctly.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description adds real value by explaining how to produce the required `render` payload via `node scripts/measure.mjs` and noting fix frames use the render's own frame rate. It does not restate the `target` loudness defaults, which the schema already covers.

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: check a rendered video against a reference's measured timeline and return concrete fixes. Names the concrete dimensions checked (cut timing, pace, brightness, motion, loudness, format), so the agent can distinguish it from siblings like search_videos or get_blueprint.

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 precondition ('after rendering a video from a reference') and a required prior step ('first measure your render'), plus cost-aware guidance to fix and re-check. It also notes 'search_videos is free', hinting at an alternative, but never states explicitly when not to call this tool.

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