MCP Shipyard
← Rules catalog

Fixture result is missing the expected facts: check data freshness and filters

A fixture call succeeded but the result lacked the strings you said it should contain. Check data freshness, filters and default parameters.

majorerrors.expectation-unmetGeneral

Find out why a successful tool call returned data without the facts you expected. The rule errors.expectation-unmet is a major finding for any client. It fails when a fixture call has expected strings configured and the response lacks them.

What you see

  • A scan reports <tool> result missed an expected value.
  • The call itself did not error (errors.fixture-failed would catch that), but the content differs from what you marked as correct.

Why it happens

You define fixtures in MCP Shipyard: a safe call with arguments, and optional strings the result must contain, such as an order id ORD-1042 or a carrier name. The rule checks the text of the response for those strings. Common reasons for a miss:

  1. The fixture record was deleted, archived or changed in your database.
  2. A default filter hides it, such as a default date range or status=open.
  3. Data pipelines are late, so recent records are missing.
  4. A formatting change: the id now appears in a nested field the preview did not include, or the response is truncated by pagination.
  5. The expectation itself is stale.

Claude's review criteria say reviewers run every tool and that every tool must return a successful response with valid parameters. A tool that succeeds but returns the wrong thing is a different problem and a worse one, because nothing errors.

Check it yourself

Call the tool with the fixture arguments and read the whole result:

curl -s -X POST https://mcp.acme.example/mcp \
  -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' \
  -H "Authorization: Bearer $TOKEN" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_order","arguments":{"order_id":"ORD-1042"}}}' \
 | jq '.result'

Compare it with the expected strings in the fixture.

Fix

  • Restore or replace the fixture record, then update the fixture to point at stable data (a seeded test order that never changes).
  • Make defaults explicit in the schema and description so the model and reviewers see them.
  • If the response changed shape on purpose, update the expectation.
  • If data is stale, fix the pipeline and add a freshness field to the output.

Verify

Re-run the fixture and confirm the expected strings appear, then re-scan.

Which clients care

General, per the rule. It is tagged for all clients and uses the Claude review criteria as its source.

Source

Claude review criteria: https://claude.com/docs/connectors/building/review-criteria

Run a free scan at https://mcpshipyard.com/scan to check every rule at once.

Check every rule at once

A free scan runs this check and the other 152 against your live URL.

Scan a server