capabilities.work

Tool Router Session

A 3-step recipe with Composio. We can help you get access.

Recipe · 3 steps

Tool Router Session

Create a tool router session, search it by use case, and execute a tool.

  1. Create a tool router session for the user with the requested toolkits enabled, returning a session id and MCP endpoint.
  2. Search the session for tools matching the natural-language use case so the agent can confirm the desired tool is available.
  3. Execute the chosen tool within the session using the supplied arguments.
What you'll need to have ready
  • apiKey: Composio project API key sent in the x-api-key header.
  • userId: The end-user identifier the session is created for.
  • enabledToolkits: The list of toolkit slugs to enable in the session.
  • useCase: A natural-language description of what the agent wants to accomplish.
  • toolSlug: The slug of the tool to execute once a match is confirmed.
  • arguments: The argument map passed to the executed tool.
For your developer

Arazzo workflow composio:tool-router-session, 3 operations: postToolRouterSession → postToolRouterSessionBySessionIdSearch → postToolRouterSessionBySessionIdExecute. Specs on APIs.io.