Establish an Automated LLM-as-a-Judge Rubric for Tool Calls

Create a structured 1-to-5 grading rubric to verify the accuracy, necessity, and completeness of multi-step AI tool calls.

Agent prompt for Claude and ChatGPT

Prompt

Prompt
Act as an AI quality assurance engineer. Create a 1-to-5 point scoring rubric to evaluate logs where an AI model makes tool calls. Apply these rules: 1. Assign a 5 for perfect execution where every argument is valid and the goal is met. 2. Assign a 1 if the model makes an unnecessary or hallucinated tool call. 3. Include a binary check for missing required follow-up calls. 4. Ensure every score level includes a specific condition regarding parameter format. 5. Output a structured grading table. Output format: 1. Scoring Rubric (Table: Score, Criteria, Penalty). 2. Evaluation Checklist (Numbered list of binary checks). 3. Scoring Logic (Summary of when to trigger a failure). This is not a substitute for human oversight in critical production environments; consult a senior engineer for safety-critical systems. Wait for me to paste the tool call logs.

Example output

Example for: an internal customer support bot that queries a SQL database to resolve billing tickets.

Scoring Rubric
ScoreCriteriaPenalty
5Perfect tool syntax and logical necessity.None
4Correct tool, but unnecessary secondary parameter included.-1 point
3Valid tool call, but missed a required follow-up step.-2 points
2Incorrect argument type or missing required field.-3 points
1Hallucinated tool or completely irrelevant call.-4 points
Evaluation Checklist
  1. Does the function name match the allowed schema exactly?
  2. Are all required parameters present in the argument object?
  3. Is the data type of each parameter consistent with the API definition?
  4. Was a follow-up call required to complete the user request?
  5. Did the model avoid making redundant calls for information already retrieved?
Scoring Logic
  • Score 5: The agent successfully retrieved the correct billing record and stopped.
  • Score 3: The agent retrieved the record but failed to call the 'send_email' tool as dictated by the protocol.
  • Score 1: The agent attempted to call 'delete_account' when the user only asked for a balance inquiry. Any hallucinated function triggers an immediate automatic failure score of 1 regardless of other parameters.
Written by AI from this prompt. Your results will vary.

Tips and common edits

Why this works

  • Forces binary checks to reduce subjectivity in agent evaluation.
  • Uses a clear penalty system to highlight critical failures like hallucinations.
  • Categorizes tool usage by both syntax correctness and logical workflow completeness.

Use this to build an evaluation framework for your agentic workflows. Paste your raw JSON or text logs of tool calls into ChatGPT, Claude, or Gemini after the prompt to receive an automated audit of your agent's performance.

Common edits

  • Adjust the penalty points if your specific agent is more prone to minor syntax errors versus logical errors.
  • Add a row to the rubric for latency thresholds if your agent needs to perform within specific time limits.

Reuse it: Use in a workflowAdapt in the builder

Prompt details

By
Prompts-GPT editors
Published
How prompts are written and checked

Did this prompt work?

More in Agentic AI
Agentic AIClaude

Audit Agent Tool Definitions to Fix Routing Errors

This prompt analyzes your AI agent tool descriptions to eliminate overlap, define clear boundaries, and prevent incorrect tool routing by adding explicit anti-use guidance.

Agentic AIClaude

Generate Adversarial Evaluation Transcripts for AI Agents

Create three distinct multi-turn conversation logs designed to test your AI agent for social engineering, tool hallucination, and silent goal drift.

Agentic AIClaude

Red Team Agent System Prompts for Injection Vulnerabilities

Assess the security of your agent system prompt against five common indirect prompt injection vectors using a structured risk analysis table.

Agentic AIClaude

Model Tier Budget and Latency Breakdown for Multi-Turn Agents

Generates a structured cost and p95 latency trade-off table across small, mid-tier, and flagship models based on context accumulation across multi-turn agent runs.

Agentic AIClaude

Should This Be an Agent? Single Agent, Workflow or Plain Script Decision

Scores a task you want to automate on variability, tool needs, error tolerance and cost, then recommends a plain script, a fixed LLM workflow, a single agent or multi-agent, with the cheapest first build.

Agentic AI

Tool Permission Matrix and Function Spec for a Tool-Using Agent

Produces a least-privilege tool inventory, function definitions, and approval rules for an agent that calls APIs or internal systems.