#4664·mcp

cloudwatch-applicationsignals-mcp-server: evals fail with OpenAI GPT-6 Sol/Luna/Astra on Bedrock (temperature always sent, LLM judge misreads Luna and gpt-oss replies)

Author: kimnamuCreated Sep 24, 2026Updated Sep 24, 2026

Thanks for the Application Signals eval framework (#1618, #1735). One BedrockLLMProvider behind both the agent loop and the judge made the OpenAI GPT-6 models on Bedrock quick to try.

Describe the bug

With MCP_EVAL_MODEL_ID set to a GPT-6 profile (us./global.openai.gpt-6-sol, -luna, -astra), evals/core fails in three places:

  1. BedrockLLMProvider.converse always sends inferenceConfig.temperature (llm_provider.py:104). Converse rejects that field for these models at any value, including 1, so the first agent turn and the judge both get a 400. MCP_EVAL_TEMPERATURE must parse as a float, so the field can't be left out.
  2. LLMJudgeValidator reads content[0]['text'] (validator.py:138). GPT-6 Luna and openai.gpt-oss-120b-1:0 return a reasoningContent block before the text, so the judge fails with Validation error: 'text'. FinalResponseCaptor (captor.py) already takes the first block with text.
  3. _parse_llm_response only matches [PASS]/[FAIL] (validator.py:199). gpt-oss often and Luna sometimes write 1. PASS ... without brackets; that criterion is reported as not evaluated.

Expected Behavior

Temperature can be left out for models that reject it, and the judge finds its verdict in the text block, bracketed or not.

Current Behavior

main @ 3e0418f, us-east-1:

MCP_EVAL_MODEL_ID agent turn (converse) LLM judge
us. / global.openai.gpt-6-sol ❌ ValidationException (temperature) ❌ same
us. / global.openai.gpt-6-luna ❌ ValidationException (temperature) ❌ same
us. / global.openai.gpt-6-astra ❌ ValidationException (temperature) ❌ same
GPT-6 + MCP_EVAL_TEMPERATURE=1 ❌ same 400 ❌
GPT-6 + MCP_EVAL_TEMPERATURE=none ❌ ValueError: could not convert string to float: 'none' at import ❌
openai.gpt-oss-120b-1:0 ✅ blocks [reasoningContent, text] ❌ Validation error: 'text' 4/4
Luna judge, temperature removed from the request (3 runs) ✅ blocks [reasoningContent, text] ❌ Validation error: 'text' 3/3
Sol / Astra judge, same (3 runs each) ✅ blocks [text] ✅ PASS
Luna, python -m evals with 1 and 2 patched (9 runs) ✅ Tool Call PASS 9/9 ❌ 5/9 "LLM did not provide evaluation"

Reproduction Steps

From src/cloudwatch-applicationsignals-mcp-server with Bedrock credentials:

python
import asyncio
from evals.core import BedrockLLMProvider, LLMJudgeValidator, ValidationPromptType
from evals.core.captor import FINAL_RESPONSE

provider = BedrockLLMProvider()  # model from MCP_EVAL_MODEL_ID
provider.converse(messages=[{'role': 'user', 'content': [{'text': 'Say pong.'}]}])

judge = LLMJudgeValidator(ValidationPromptType.DATA_INTERPRETATION, provider, ['Names the monitored services'])
print(asyncio.run(judge.validate({FINAL_RESPONSE: 'Two services are monitored: checkout and auth.'})))
print(judge._parse_llm_response('1. PASS Both services are named.', judge.rubric))

GPT-6 Sol/Luna/Astra, first call:

botocore.errorfactory.ValidationException: An error occurred (ValidationException) when calling the Converse operation: This model doesn't support the temperature field. Remove temperature and try again.

openai.gpt-oss-120b-1:0:

{'validator_name': 'LLM Judge', 'overall_pass': False, 'error': "Validation error: 'text'", 'criteria_results': []}
[{'criterion': 'Names the monitored services', 'status': 'FAIL', 'reasoning': 'LLM did not provide evaluation for this criterion'}]

Possible Solution

Proposed patch (3 files in evals/core, one README line, offline tests)
  • eval_config.py: MCP_EVAL_TEMPERATURE=none sets TEMPERATURE = None. Default 0.0 unchanged.
  • llm_provider.py: add inferenceConfig only when temperature is not None.
  • validator.py: take the first block with text (a reply with no text block still fails), and read an uppercase PASS/FAIL right after the item number as the verdict. Bracketed verdicts are parsed as before.
diff
-TEMPERATURE = float(os.environ.get('MCP_EVAL_TEMPERATURE', str(_DEFAULT_TEMPERATURE)))
+# 'none' omits temperature (e.g. OpenAI GPT-5.6/GPT-6 on Bedrock Converse reject the field)
+_TEMPERATURE = os.environ.get('MCP_EVAL_TEMPERATURE', str(_DEFAULT_TEMPERATURE))
+TEMPERATURE = None if _TEMPERATURE.lower() == 'none' else float(_TEMPERATURE)
diff
-            'inferenceConfig': {'temperature': temperature},
         }
+        if temperature is not None:
+            converse_params['inferenceConfig'] = {'temperature': temperature}
diff
-            response_text = response['output']['message'][MESSAGE_CONTENT][0][CONTENT_TEXT]
+            # Reasoning models can return a reasoningContent block before the text block
+            content = response['output']['message'][MESSAGE_CONTENT]
+            texts = [block[CONTENT_TEXT] for block in content if CONTENT_TEXT in block]
+            if not texts:
+                raise ValueError('LLM judge response has no text block')
+            response_text = texts[0]
diff
+            # Some models drop the brackets around the verdict: "1. PASS reasoning"
+            line = re.sub(r'^(\d+\.\s*)(PASS|FAIL)\b', r'\1[\2]', line)
             line_upper = line.upper()

With this patch and MCP_EVAL_TEMPERATURE=none, a one-task file written per the README's "Creating Task Files" (one list_monitored_services call, mocked boto3) passes the tool check and the judge for GPT-6 Sol (4/4), Luna (11/11) and Astra (us. and global., 4/4 each). I have a branch with offline regression tests ready and will open a PR linked to this issue.

Additional Information/Context

Only the dev-only evals/ harness is affected; the server's tools don't call a Bedrock model.

OS

macOS

Server

cloudwatch-applicationsignals-mcp-server

Server Version

main @ 3e0418f

Region experiencing the issue

us-east-1

Service quota

  • I have reviewed the service quotas for this construct