Skip to main content
Glama

IA-QA — 152 QA & Dev Tools for AI Agents

response_quality_score

Read-onlyIdempotent

Score an LLM response against the criteria you pass: coverage of expected_keywords and compliance with max_length. Returns a 0-100 score over the criteria actually measured — or total_score null with the reason when none is given, because relevance and correctness cannot be read off word overlap (a correct one-word answer shares no words with its question). Meaning against a reference answer: run_semantic_tests. Also returns unscored signals: question-term overlap, average sentence length, markdown.

Input Schema

NameRequiredDescriptionDefault
questionYesThe original question/prompt
responseYesThe LLM response to score
max_lengthNoMaximum character length. Scored as a proportional penalty beyond it.
expected_keywordsNoKeywords a correct answer must contain, as whole words (case-insensitive; a plural in -s/-es counts). Scored as coverage.

Output Schema

NameRequiredDescriptionDefault
gradeNo
statsNo
reasonNo
signalsNo
breakdownNo
max_scoreNo
total_scoreNo
not_measuredNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / expected_keywords / description
      Previous value: -"Keywords a correct answer must contain (case-insensitive). Scored as coverage."New value: +"Keywords a correct answer must contain, as whole words (case-insensitive; a plural in -s/-es counts). Scored as coverage."
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "question": "q",
      +    "response": "anything"
      +  }
      +]
  3. Changed5 schema fields changed
    • changedInput schema / properties / expected_keywords / description
      Previous value: -"Keywords that should appear in a good answer"New value: +"Keywords a correct answer must contain (case-insensitive). Scored as coverage."
    • changedInput schema / properties / max_length / description
      Previous value: -"Ideal max character length (penalize if exceeded)"New value: +"Maximum character length. Scored as a proportional penalty beyond it."
    • addedOutput schema / properties / not_measured
      Added value: +{
      +  "type": "array"
      +}
    • addedOutput schema / properties / reason
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / signals
      Added value: +{
      +  "type": "object"
      +}
  4. Changed1 schema field changed
    • addedOutput schema / properties
      Added value: +{
      +  "breakdown": {
      +    "type": "object"
      +  },
      +  "grade": {},
      +  "max_score": {
      +    "type": "number"
      +  },
      +  "stats": {
      +    "type": "object"
      +  },
      +  "total_score": {}
      +}
  5. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  6. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.