Skip to content

Intent Routing

Intent routing lets users describe the goal and have the bridge choose the likely tool.

mcp(action="intent", intent="find my tasks for today")

Configured via intentRouting.embedding:

  • auto (default): tries gemini, openai, ollama, then keyword fallback
  • gemini: requires GEMINI_API_KEY
  • openai: requires OPENAI_API_KEY
  • ollama: local model runtime
  • keyword: offline fallback (less semantic quality)
{
"intentRouting": {
"embedding": "auto",
"minScore": 0.3
}
}

minScore sets the confidence threshold (0-1). The index is built lazily on first intent call.

Related: Tool Resolution and Recipes metadata.