Skip to main content
Glama
GetABrain🧠 | Live Human-in-the-Loop MCP for AI Agents

GetABrain🧠 | Live Human-in-the-Loop MCP for AI Agents

rate_response

Rate a worker's response 1–5 with optional feedback to update their quality score and reputation, rewarding good answers or flagging poor ones for future eligibility.

Instructions

Rate a single worker's response 1-5 to feed the worker quality/reputation system, optionally with free-text feedback. Use after reviewing a response from get_responses/wait_for_responses, to reward good answers and flag poor ones -- this affects the worker's quality score and future eligibility (e.g. queries with min_worker_quality set) and can trigger rewards/suspension server-side. Side effect: writes a rating record and returns the updated worker quality score; does not resubmit or modify the original response. Disambiguation: rates a response you already have -- does not fetch new responses (use get_responses/wait_for_responses first).

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": {
      "query_id": "<query_id>",
      "response_id": "<response_id>",
      "score": "<score>"
    },
    "name": "rate_response"
  }
}

Input Schema

NameRequiredDescriptionDefault
scoreYesQuality rating for the response, 1 (worst) to 5 (best). Feeds the worker's ongoing quality score.
query_idYesThe id of the query the response belongs to (from submit_query).
response_idYesThe id of the specific response to rate (from get_responses/wait_for_responses output).
feedback_textNoOptional free-text comment explaining the rating, visible to the worker.

Output Schema

NameRequiredDescriptionDefault
scoreNo
response_idNo
feedback_textNo
worker_suspendedNo
total_reward_centsNo
reward_credited_centsNoPlatform-funded feedback credit earned by THIS rating (0 for simulated / test-mode responses).
worker_new_rating_countNo
worker_new_quality_scoreNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changedv0.2.4
    • addedOutput schema / properties / feedback_text
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • removedOutput schema / properties / message
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / response_id
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / reward_credited_cents
      Added value: +{
      +  "description": "Platform-funded feedback credit earned by THIS rating (0 for simulated / test-mode responses).",
      +  "type": "number"
      +}
    • addedOutput schema / properties / score
      Added value: +{
      +  "type": "number"
      +}
    • removedOutput schema / properties / success
      Removed value: -{
      -  "type": "boolean"
      -}
    • addedOutput schema / properties / total_reward_cents
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / worker_new_quality_score
      Added value: +{
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / worker_new_rating_count
      Added value: +{
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • removedOutput schema / properties / worker_quality_score
      Removed value: -{
      -  "type": "number"
      -}
    • addedOutput schema / properties / worker_suspended
      Added value: +{
      +  "type": "boolean"
      +}
  2. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare the write/non-idempotent/no-destructive profile; the description goes well beyond by disclosing that the call writes a rating record, returns the updated quality score, affects future worker eligibility (min_worker_quality queries), can trigger server-side rewards or suspension, and does not resubmit or modify the original response. That is exactly the consequential context an agent needs before mutating a reputation score.

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 purpose and usage, then effects, then disambiguation -- a logical ordering with no filler sentences. It is dense (multi-clause sentences with em-dashes) and the disambiguation sentence partially restates the earlier mention of get_responses/wait_for_responses, which keeps it from a 5.

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 non-idempotent mutation with four parameters and an output schema, the description covers purpose, prerequisites, side effects, eligibility consequences, and return shape. Nothing an agent needs in order to call it correctly or safely is missing.

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 earns a bump by tying the score parameter to a concrete downstream consequence (queries filtered by min_worker_quality), which the schema only weakly gestures at. It does not add syntax or format detail beyond the schema, so it stops short of 5.

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 (rate a single worker's response), the scale (1-5), and the downstream effect (feeds worker quality/reputation). A final disambiguation sentence separates it from get_responses/wait_for_responses, so an agent can distinguish it from siblings without opening any 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?

Gives explicit timing ("Use after reviewing a response from get_responses/wait_for_responses"), the intent (reward good answers, flag poor ones), and an explicit when-not ("does not fetch new responses -- use get_responses/wait_for_responses first"). Both the prerequisites and the alternative tools are named.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.