query_decisions
Retrieve and filter decision records from a knowledge graph to answer why specific code architecture or technical choices were made, linking decisions directly to code elements.
Instructions
Query the decision knowledge graph. Filter by type, subproject, code symbol, file path, tag, or time. Returns decisions linked to code — "why was this architecture chosen?" answered with the actual decision record. Use service_name to filter by a specific subproject within the project.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Filter by decision type | |
| service_name | No | Filter by subproject name (e.g., "auth-api") | |
| symbol_id | No | Filter by linked symbol FQN | |
| file_path | No | Filter by linked file path | |
| tag | No | Filter by tag | |
| search | No | Full-text search query (FTS5 with porter stemming) | |
| as_of | No | Only decisions active at this ISO timestamp | |
| include_invalidated | No | Include invalidated decisions (default: false) | |
| limit | No | Max results (default: 50) |