get_anti_pattern_violations_for
Reverse lookup: given an entity id, return anti-pattern violations whose `target_entities` include the entity's type. Use after `validate_graph` to drill into one entity's implicated patterns. Matches by entity type today; tightens to specific ids in a future revision. Underpins the Inspect approach.
Validationatomic (read-only)
Arguments
entity_idstringrequiredNode id to look up.
Returns
Shape
{ entity_id, type, violations: [...] }Examples
Live call against the Notion example graph.
Input
{
"entity_id": "ec3d5479-4947-4bd9-9e77-b5ee01beb851"
}Output
{
"entity_id": "ec3d5479-4947-4bd9-9e77-b5ee01beb851",
"type": "product",
"violations": []
}Warnings
⚠
Phase 1 matches by entity TYPE, not specific id. Every entity of the same type shares the same violation set. Phase 1.x will tighten to per-id matching once `target_entities` carries ids.