synapse_causal_window
Identifies candidate causes by correlating temporal facts that share entities with the effect, returning ranked pairings within a search window.
Instructions
Find candidate causes by temporal correlation.
Surfaces facts whose valid_from falls in the window
[before - within_days, before] and that share at least one
entity with facts about effect_entity.
This is exactly the "track everything you ate to find what caused the headaches" pattern — you record symptom onset, you record meals and medications, then this tool surfaces co-occurring events as candidates. The tool returns correlation; the human (or a downstream reasoning step) decides what caused what.
Args: effect_entity: The thing whose causes you're hunting (e.g. "headache", "rash", "build failure"). before: ISO date/datetime — when the effect was observed. within_days: How far back to search. Default 30.
Returns: Ranked list of candidate cause-effect pairings with day deltas.
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": {
"effect_entity": "<effect_entity>",
"before": "<before>"
},
"name": "synapse_causal_window"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| before | Yes | ||
| within_days | No | ||
| effect_entity | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |