Find by Constraint
find_by_constraintFind functions by syntactic constraint tag (AUTH, DB_ACCESS, THROWS, PURE, NETWORK_IO, VALIDATED) or by database table read/write, answering which code touches a given table.
Instructions
Find every function with a specific syntactic constraint tag — AUTH (requires authentication), DB_ACCESS (touches database), THROWS (explicit throw statement), PURE (no side effects), NETWORK_IO (makes HTTP calls), VALIDATED (has input validation). Also supports table-level queries: pass table="walks" to find every function that reads or writes the walks table (answers "what touches this table?" for schema migrations). Constraints are extracted from source syntax, not inferred. For semantic/behavioral properties (e.g., "can fail transitively"), use query_traits instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | No | Optional: filter to functions that touch a specific database table (e.g., "walks", "users"). Returns structured db_operations showing read/write/mutate per function. | |
| project | No | Project name (required in multi-project mode). Use list_projects to see available projects. | |
| constraint | Yes | Constraint tag to search for: AUTH, VALIDATED, PURE, THROWS, DB_ACCESS, NETWORK_IO, IMP, etc. |