Skip to main content
Glama
claude-bedrock-mcp-server

claude-bedrock-mcp-server

by Code-Ninety

bedrock_evaluate_rag_response

Evaluates RAG answers for hallucinated citations and claim-level lexical grounding against retrieved context chunks to verify response faithfulness.

Instructions

Evaluate an answer for hallucinated citations and claim-level lexical grounding against retrieved context chunks.

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": {
      "answer": "<answer>",
      "chunks": "<chunks>"
    },
    "name": "bedrock_evaluate_rag_response"
  }
}

Input Schema

NameRequiredDescriptionDefault
answerYes
chunksYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden; it does disclose the two evaluation dimensions (citation hallucination and lexical grounding), which is real behavioral context. However, it says nothing about whether this invokes a model, latency/cost, whether it is purely read-only, or what the verdict granularity is, leaving key traits undisclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single dense sentence with zero padding, and the two evaluation criteria are front-loaded alongside the target resource. Every clause earns its place.

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

Completeness3/5

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

With an output schema present, the description need not explain return values, so that gap is covered. But for a 2-parameter tool relying on untyped chunk objects and with no annotations, the definition leaves the chunk shape, invocation cost, and situational guidance unspecified.

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 description coverage is 0% for 2 parameters, so the description must compensate. It does map both: 'answer' and 'retrieved context chunks' for chunks, clarifying the chunks must be retrieval output. But it does not explain the expected structure of chunk objects (additionalProperties true, no item schema), so an agent cannot tell which chunk fields are read.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Evaluate') and resource ('an answer') and names two concrete checks: hallucinated citations and claim-level lexical grounding against retrieved context chunks. That is far more specific than a sibling like bedrock_grounded_rag or bedrock_retrieve_knowledge, though the description never explicitly contrasts itself with them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: an agent can infer the tool belongs after retrieval, when you already have an answer and its chunks and want quality assessment. There is no statement of when to prefer this over bedrock_grounded_rag, no prerequisite that the chunks must be the ones used to generate the answer, and no exclusions.

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