engineering_context_tool
Assembles engineering context from tagged memories and current-task relevance, then scores, orders, and truncates results to a token budget while preserving conflicts and warnings.
Instructions
Assemble engineering context with output ordering.
Pipeline: tag match -> score -> sort -> truncate -> serialize. Conflicts and warnings are NEVER dropped for budget.
Args: tags: Tags to match against task: Optional task description (shown in output header) token_budget: Optional token budget for truncation types: Filter by memory types include_stale: Whether to include potentially stale items current_task: Description of what you're working on right now. Boosts scoring for memories relevant to this task. max_item_chars: Cap a single item so it cannot dominate the budget as_of: Evaluate temporal validity at this ISO timestamp include_expired: Include memories outside their validity window include_file_state: Include operational file-state TLDRs (default false) paths: Filter items whose evidence matches these file paths project: Optional project root path. Auto-detected from git root if omitted.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tags": "<tags>"
},
"name": "engineering_context_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | Yes | ||
| task | No | ||
| as_of | No | ||
| paths | No | ||
| types | No | ||
| project | No | ||
| current_task | No | ||
| token_budget | No | ||
| include_stale | No | ||
| max_item_chars | No | ||
| include_expired | No | ||
| include_file_state | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |