Reproduction
Verified against openai/skills main at 49f948faa9258a0c61caceaf225e179651397431.
skills/.curated/notion-spec-to-implementation/reference/progress-tracking.md documents:
WHERE "Related Tasks" CONTAINS "plan-page-id"
The current Notion query_data_sources tool contract says SQL mode executes read-only SQLite queries. CONTAINS is not a SQLite infix operator, so this query fails before it can filter a relation property.
Expected
The example should use a parameterized predicate that is valid for the fetched SQLite schema and the actual serialized relation value.
Suggested narrow fix
- Fetch the data-source schema first.
- Replace
CONTAINS with a supported, parameterized SQLite predicate appropriate to the relation representation.
- Add a focused syntax/fixture test that executes the documented query against a representative relation value.
This was reproduced from tool schema and source only; no Notion workspace data was queried.
Reproduction
Verified against
openai/skillsmain at49f948faa9258a0c61caceaf225e179651397431.skills/.curated/notion-spec-to-implementation/reference/progress-tracking.mddocuments:The current Notion
query_data_sourcestool contract says SQL mode executes read-only SQLite queries.CONTAINSis not a SQLite infix operator, so this query fails before it can filter a relation property.Expected
The example should use a parameterized predicate that is valid for the fetched SQLite schema and the actual serialized relation value.
Suggested narrow fix
CONTAINSwith a supported, parameterized SQLite predicate appropriate to the relation representation.This was reproduced from tool schema and source only; no Notion workspace data was queried.