/rasa-agent-skills:rasa-calling-mcp-tools-from-flowsfrom rasa-agent-skills
Calls MCP tools directly from Rasa flow steps, mapping slot values to tool parameters and extracting results into slots. Replaces custom action code for simple API integrations.
Ships in rasa-agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
MCP tools can be invoked directly from flow steps using a call step with explicit
input/output mappings. This replaces the need for custom action code when you only need
to call an external API.
MCP servers must be defined in endpoints.yml before calling their tools. See the
rasa-configuring-mcp-server skill for server setup and authentication.
This feature is in beta and available starting from Rasa 3.14.0.
Use an MCP tool call when:
Use a custom action instead when:
See rasa-writing-custom-actions for custom action guidance.
endpoints.yml
(see rasa-configuring-mcp-server skill).call step with mcp_server and mapping
(see "Calling an MCP tool from a flow").Use a call step with mcp_server and mapping to invoke a tool directly.
| Key | Required | Description |
|---|---|---|
call | yes | Tool name as exposed by the MCP server |
mcp_server | yes | Must exactly match a name in endpoints.yml. Fails at runtime if mismatched |
mapping.input | yes | Maps slot values to tool parameters. Each entry: param (tool parameter name) + slot (Rasa slot name) |
mapping.output | yes | Maps tool results back to slots. Each entry: slot (target slot) + value (Jinja2 expression to extract the result) |
flows:
buy_order:
description: helps users place a buy order for a particular stock
steps:
- collect: stock_name
- collect: order_quantity
- action: check_feasibility
next:
- if: slots.order_feasible is True
then:
- call: place_buy_order
mcp_server: trade_server
mapping:
input:
- param: ticker_symbol
slot: stock_name
- param: quantity
slot: order_quantity
output:
- slot: order_status
value: result.structuredContent.order_status.success
- else:
- action: utter_invalid_order
next: END
MCP tools return results in one of two formats. Handle both in your output mapping.
When the tool defines an output schema, Rasa returns structured data. Access specific
values using dot notation in the value field:
# Tool returns: {"result": {"structuredContent": {"order_status": {"success": true, "order_id": "abc123"}}}}
output:
- slot: order_status
value: result.structuredContent.order_status.success
- slot: order_id
value: result.structuredContent.order_status.order_id
When the tool has no output schema, the entire result is a serialized string. Capture it in a single slot for downstream processing:
# Tool returns: {"result": {"content": [{"type": "text", "text": "{\"order_status\": ...}"}]}}
output:
- slot: order_data
value: result.content
mcp_server value in a flow call step must
exactly match a name in endpoints.yml. A typo means the call fails at runtime
with no compile-time warning.call doesn't exist on the
referenced MCP server, the call fails at runtime.result.content, not as result.structuredContent.
Always account for both formats.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub rasahq/rasa-agent-skills --plugin rasa-agent-skillsOther plugins' skills for the same job
18 skills in this plugin
/rasa-building-flowsBuilds conversation flows for Rasa CALM assistants using YAML. Use when creating or editing flows, designing flow architecture, adding branching logic, writing flow and collect step descriptions, or connecting flows with call and link steps.
/rasa-building-skillsBuilds skills (capabilities) for a Rasa CALM assistant. Use when the user asks to create, add, or build a skill, capability, or feature for their Rasa assistant.
/rasa-configuring-assistantConfigures config.yml and endpoints.yml for Rasa CALM assistants. Covers pipeline (command generators, flow retrieval), policies (FlowPolicy), action endpoint, and language settings. Use when setting up a new project or modifying pipeline components.