align_sync
Check connected source sync status or start a background refresh of the local graph, and estimate AI classification costs without handling tokens.
Instructions
Check on, or start, the refresh of the sources the user has ALREADY connected into the local graph on this machine. action "status" says per source when it last synced, whether it needs the person to re-authenticate, and what is still waiting; use it when the user asks whether the graph is up to date or why something is missing. action "run" starts a background refresh now (it only reads from the sources, makes no LLM calls, and returns at once). action "classify_estimate" says what typing the imported items with the user's own AI key would cost, plus the command for the user to run; it cannot start that. It never takes a token or key: for a source that is not connected, or whose saved token was refused, the reply gives the exact align connect <source> command for the user to run themselves. Do not ask the user to paste a token into the chat.
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": {
"action": "<action>"
},
"name": "align_sync"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | With "classify_estimate": how many items the person would classify (default 25) | |
| action | Yes | What to do | |
| source | No | With "run": only this source. Default: every connected source |