Find chains
find_chainsFind tools that turn one kind of input into another: single tools that do it in one capability, and chains of two tools in a row with the type passed between them. Use it when search_tools finds no single tool for a step. Give a query saying what the chain is for, so the best chains come first.
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": {
"have": "<have>",
"want": "<want>"
},
"name": "find_chains"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| have | Yes | What the step starts with. One of: words (words: text, query, message, social-post); photos (photos and images: image, image-mask, 3d); video (video: video); sound (voice and sound: audio-speech, audio, audio-music, audio-sfx); documents (documents: document); links (web links: url, webpage); places (places: geo); data (numbers and data: structured, timeseries, event-stream, embedding); code (code: code); money (money: money); people (people: profile); dates (dates and events: schedule). A type id in parentheses also works, and stands for the id before it. | |
| want | Yes | What the step should produce. One of: words (words: text, query, message, social-post); photos (photos and images: image, image-mask, 3d); video (video: video); sound (voice and sound: audio-speech, audio, audio-music, audio-sfx); documents (documents: document); links (web links: url, webpage); places (places: geo); data (numbers and data: structured, timeseries, event-stream, embedding); code (code: code); money (money: money); people (people: profile); dates (dates and events: schedule); done (something done: action:publish, action:message, action:money, action:world, action:software, action:browser, action:schedule, action:record, physical-item). A type id in parentheses also works, and stands for the id before it. “done” means the tool acts: it posts, sends, pays, books or changes something. | |
| limit | No | Tools and chains to list of each kind, 1 to 10. Default 5. | |
| query | No | What the chain is for, in a few words, like “post clips to tiktok”. Both lists then hold only what the query fits, best first; without it, chains rank by how well the two tools fit the step, then by notability. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| have | Yes | ||
| want | Yes | ||
| one_step | Yes | Tools that do the whole step in one capability, best first. | |
| ranked_by | Yes | ||
| two_steps | Yes | ||
| one_step_total | Yes | ||
| two_steps_total | Yes | ||
| one_step_matching | Yes | With a query, how many of the single tools match it; one_step lists those. 0: none does, and one_step lists the most notable. Null without a query. | |
| two_steps_matching | Yes | With a query, how many chains fit it; two_steps lists only those. Null without a query. |