query_decisions
Find the actual decision record behind any architecture choice. Filter by type, code symbol, file path, tag, or time; read-only answers 'why was this chosen?'
Instructions
Query the decision knowledge graph. Filter by type, subproject, code symbol, file path, tag, or time — answers "why was this architecture chosen?" with the actual decision record. Defaults to approved decisions; use include_pending or review_status for other tiers. Read-only. Returns JSON: { decisions: [{ id, title, type, content, tags, review_status, cluster_ids? }], clusters_summary?, total_results }. Supports output_format: "toon".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Filter by tag | |
| type | No | Filter by decision type | |
| as_of | No | Only decisions active at this ISO timestamp | |
| limit | No | Max results (default: 50) | |
| search | No | Full-text search query (FTS5 with porter stemming) | |
| verify | No | Verify linked code is still fresh (default true); stale rows are flagged `stale: true`. false skips the check. | |
| order_by | No | Result ordering: "recency" (default), "created_at", or "heat" (popular + fresh; falls back to recency when disabled) | |
| file_path | No | Filter by linked file path | |
| symbol_id | No | Filter by linked symbol FQN | |
| git_branch | No | Branch filter: "current" (default), "all", or a branch name | |
| index_only | No | Omit full `content` (default false) — pick ids cheaply, then pull content with `get_decision` | |
| service_name | No | Filter by subproject name (e.g., "auth-api") | |
| verification | No | Filter by verification verdict (implies verify=true): "stale" or "ok" | |
| output_format | No | Output format: "json" (default), "markdown" (tool-specific), or "toon" (30-60% fewer tokens on tabular data). | |
| review_status | No | Restrict to one review tier ("pending" = review queue; overrides default) | |
| include_pending | No | Also return pending review-queue decisions (default: approved only) | |
| include_invalidated | No | Include invalidated decisions (default: false) |