Switch language한국어
Back to the list

Your Database MCP Is Lying to You

TL;DR AI

Key summary

2 min read
  1. A Postgres MCP agent misread a jsonb field and reported zero express-delivery orders because it queried the wrong key.

  2. The empty result looked legitimate, showing how schema inference errors can hide inside apparently valid SQL output.

  3. Row sampling alone is not enough; in-database recursive CTEs and functions like jsonb_each, jsonb_array_elements, and jsonb_typeof can reveal the real JSON structure.

  4. Server-side traversal and aggregation make semi-structured data safer for agents by reducing confident but wrong claims.

Read the original