Smithery
tool_router.session.update
Partially updates the configuration of an existing tool router session. Only the fields provided in the request body will be updated. Uses optimistic concurrency control to prevent lost updates. The previous config is stored in config history.
Remote smithery/composio
Other tools also called tool_router.session.update?
See providers with this name
Input Schema
{
"type": "object",
"properties": {
"tags": {
"anyOf": [
{
"type": "array",
"items": {
"enum": [
"readOnlyHint",
"destructiveHint",
"idempotentHint",
"openWorldHint"
],
"type": "string"
}
},
{
"type": "object",
"properties": {
"enable": {
"type": "array",
"items": {
"enum": [
"readOnlyHint",
"destructiveHint",
"idempotentHint",
"openWorldHint"
],
"type": "string"
}
},
"disable": {
"type": "array",
"items": {
"enum": [
"readOnlyHint",
"destructiveHint",
"idempotentHint",
"openWorldHint"
],
"type": "string"
}
}
}
}
],
"example": {
"enable": [
"openWorldHint"
],
"disable": [
"destructiveHint"
]
},
"description": "Global MCP tool annotation hints for filtering. Array format is treated as enabled list. Object format supports both enabled (tool must have at least one) and disabled (tool must NOT have any) lists. Toolkit-level tags override this. Toolkit enabled/disabled lists take precedence over tag filtering."
},
"tools": {
"type": "object",
"example": {
"gmail": {
"enable": [
"GMAIL_SEND_EMAIL",
"GMAIL_FETCH_EMAILS"
]
},
"slack": {
"disable": [
"SLACK_ADD_EMOJI"
]
},
"slackbot": {
"tags": {
"enable": [
"destructiveHint"
],
"disable": [
"openWorldHint"
]
}
}
},
"description": "Tool-level configuration per toolkit. Allows you to enable, disable, or filter by tags for specific tools within each toolkit. Every slug passed in `enable` / `disable` must be a valid Composio tool slug for that toolkit — invalid or typo'd slugs fail session creation with a clear error listing which ones didn't match.",
"additionalProperties": {
"anyOf": [
{
"type": "object",
"required": [
"enable"
],
"properties": {
"enable": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"GMAIL_SEND_EMAIL",
"GMAIL_FETCH_EMAILS"
],
"description": "Only these specific tools will be available for this toolkit"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"disable"
],
"properties": {
"disable": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"SLACK_ADD_EMOJI"
],
"description": "These specific tools will be disabled for this toolkit"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"tags"
],
"properties": {
"tags": {
"anyOf": [
{
"type": "array",
"items": {
"enum": [
"readOnlyHint",
"destructiveHint",
"idempotentHint",
"openWorldHint"
],
"type": "string"
}
},
{
"type": "object",
"properties": {
"enable": {
"type": "array",
"items": {
"enum": [
"readOnlyHint",
"destructiveHint",
"idempotentHint",
"openWorldHint"
],
"type": "string"
}
},
"disable": {
"type": "array",
"items": {
"enum": [
"readOnlyHint",
"destructiveHint",
"idempotentHint",
"openWorldHint"
],
"type": "string"
}
}
}
}
],
"example": {
"enable": [
"openWorldHint"
],
"disable": [
"destructiveHint"
]
},
"description": "MCP tags to filter tools. Array format is treated as enabled list. Object format supports both enabled and disabled lists."
}
},
"additionalProperties": false
}
]
}
},
"preload": {
"type": "object",
"properties": {
"tools": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"GMAIL_FETCH_EMAILS",
"SLACK_SEND_MESSAGE"
],
"description": "Composio tool slugs to preload. Each slug must be allowed by the session filters (`toolkits`, `tools`, `tags`) — unknown, blocked, meta, or custom slugs return a 400 at session creation."
}
},
"description": "Preload configuration for Composio tools. Controls which tools appear in `session.tools` and the MCP server tool list so the agent can call them directly without going through search first. Custom tools use `preload` on the custom tool/toolkit definition instead. Not supported when multi-account is enabled. Each preloaded tool adds to the agent context window, so keep the list at or under ~20 tools.",
"additionalProperties": false
},
"toolkits": {
"anyOf": [
{
"type": "object",
"required": [
"enable"
],
"properties": {
"enable": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"gmail",
"slack",
"github"
],
"description": "Only these specific toolkits will be enabled"
}
},
"description": "Enable only specific toolkits (allowlist)",
"additionalProperties": false
},
{
"type": "object",
"required": [
"disable"
],
"properties": {
"disable": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"gmail",
"slack"
],
"description": "These specific toolkits will be disabled"
}
},
"description": "Disable specific toolkits (denylist)",
"additionalProperties": false
}
],
"description": "Toolkit configuration - specify either enable toolkits (allowlist) or disable toolkits (denylist). Mutually exclusive."
},
"workbench": {
"type": "object",
"nullable": true,
"properties": {
"enable": {
"type": "boolean",
"example": true,
"description": "Set to false to disable the workbench entirely. When disabled, no code execution tools are available in the session."
},
"sandbox_size": {
"enum": [
"standard",
"medium",
"large",
"xlarge"
],
"type": "string",
"example": "large",
"description": "Sandbox compute tier: standard (1 vCPU / 1 GB), medium (2 vCPU / 2 GB), large (4 vCPU / 4 GB), xlarge (8 vCPU / 8 GB). Patching this value recreates the sandbox on next access — sandbox FS state is lost, but /mnt/files/ R2 mount persists."
},
"auto_offload_threshold": {
"type": "number",
"example": 20000,
"minimum": 0,
"description": "Character threshold for automatic offloading. When workbench response exceeds this threshold, it will be automatically offloaded. Default is picked automatically based on the response size.",
"exclusiveMinimum": true
},
"enable_proxy_execution": {
"type": "boolean",
"example": true,
"description": "Whether proxy execution is enabled. When enabled, workbench can call URLs and APIs directly."
}
},
"description": "body parameter",
"additionalProperties": false
},
"session_id": {
"type": "string",
"format": "toolRouterSessionId",
"example": "trs_1a2b3c4d5e6f",
"description": "The unique identifier of the tool router session"
},
"auth_configs": {
"type": "object",
"example": {
"gmail": "ac_1a2b3c4d5e6f",
"slack": "ac_7g8h9i0j1k2l"
},
"description": "The auth configs to use for the session. This will override the default behavior and use the given auth config when specific toolkits are being executed",
"additionalProperties": {
"type": "string",
"format": "authConfigId"
}
},
"experimental": {
"type": "object",
"nullable": true,
"properties": {
"permissions": {
"type": "object",
"required": [
"default"
],
"properties": {
"default": {
"enum": [
"allow_all",
"ask_every_call",
"ask_once_per_session"
],
"type": "string",
"description": "Default elicitation behavior when no override matches. `allow_all` runs every tool without prompting; `ask_every_call` prompts on each invocation; `ask_once_per_session` prompts once and remembers the answer for the rest of the session."
},
"overrides": {
"type": "object",
"description": "Per-tool overrides keyed by `${toolSlug}:${connectedAccountId ?? \"__none__\"}`, plus account-wide overrides keyed by `*:${connectedAccountId ?? \"__none__\"}`. Exact tool overrides take precedence over account-wide overrides. `always_allow` skips the prompt and runs the tool; `always_deny` blocks the tool; `ask_once` prompts once per session (allow/deny) and remembers; `ask_always` prompts on every call with allow-once/allow-session/deny, ignoring any cached session allow. Overrides take precedence over `default`.",
"additionalProperties": {
"enum": [
"always_allow",
"always_deny",
"ask_once",
"ask_always"
],
"type": "string"
}
}
},
"description": "Per-tool elicitation permission config. Replaces the stored block when provided."
},
"link_url_overwrite": {
"type": "string",
"format": "uri",
"description": "Experimental base URL override for connection link redirects created from this tool-router session. When set, link creation returns `${link_url_overwrite}/link/{link_token}` instead of the default Composio Connect base URL. Use only when your integration needs links to open through a custom Connect host.",
"x-experimental": true
}
},
"description": "body parameter",
"additionalProperties": false
},
"multi_account": {
"type": "object",
"nullable": true,
"properties": {
"enable": {
"type": "boolean",
"example": true,
"description": "When true, enables multi-account mode for this session. When not set, falls back to org/project-level configuration."
},
"max_accounts_per_toolkit": {
"type": "integer",
"example": 5,
"maximum": 10,
"minimum": 2,
"description": "Maximum number of connected accounts allowed per toolkit. Must be between 2 and 10."
},
"require_explicit_selection": {
"type": "boolean",
"example": false,
"description": "When true, the agent must explicitly select which account to use. When false (default), the first/default account is used automatically."
}
},
"description": "body parameter",
"additionalProperties": false
},
"connected_accounts": {
"type": "object",
"example": {
"github": "ca_3m4n5o6p7q8r"
},
"description": "Per-toolkit connected account override (single nano-ID). Each connected account must exist (not deleted or disabled) and belong to the same `user_id` as the session.",
"additionalProperties": {
"type": "string",
"example": "ca_3m4n5o6p7q8r"
}
},
"manage_connections": {
"type": "object",
"nullable": true,
"properties": {
"enable": {
"type": "boolean",
"example": true,
"nullable": true,
"description": "Whether to enable the connection manager for automatic connection handling. If true, we will provide a tool your agent can use to initiate connections to toolkits if it doesnt exist. If set to false, then you have to manage connections manually."
},
"callback_url": {
"type": "string",
"format": "uri",
"example": "https://your-app.com/auth/callback",
"description": "The URL to redirect to after a user completes authentication for a connected account. This allows you to handle the auth callback in your own application."
},
"enable_connection_removal": {
"type": "boolean",
"nullable": true,
"description": "Enable the \"remove\" action in COMPOSIO_MANAGE_CONNECTIONS to allow deleting connected accounts. Default true."
},
"enable_wait_for_connections": {
"type": "boolean",
"example": false,
"nullable": true,
"description": "When true, the COMPOSIO_WAIT_FOR_CONNECTIONS tool is available for agents to poll connection status after sharing auth URLs. Default is false (disabled). May not work reliably with GPT models."
}
},
"description": "body parameter",
"additionalProperties": false
}
}
}