A Rasa Mantle skill built as an ordered block ran its tool twice after the customer said yes once: Claude called the tool while it saved the answer, and then the block’s own step ran it again. Here’s how it showed up in the Rasa Inspector, why Claude could call the block’s tool at all, and the gate that leaves the call to the block.
Seen on Rasa Pro 3.22.0 with the Mantle engine and Claude Sonnet 5.5.
What I Was Doing
I was writing Rasa Tutorial — Part 10: Ordered Blocks: Run Steps in a Fixed Order. Its new Lost or Stolen Card skill is one ordered block: it asks for the last four digits of the card, asks whether to freeze it, runs the freeze_card tool with an execute_tool: step, and sends a message with the reference. This was the skill:
---
name: Lost or Stolen Card
description: Lost or stolen debit card - freeze it straight away
---
:::ordered_block id=freeze_card
steps:
- id: ask_card
collect: card_last_four
utterance: utter_ask_card_last_four
- id: ask_confirmation
collect: freeze_confirmed
utterance: utter_ask_freeze_confirmation
next:
- if: "session.lost_card.freeze_confirmed == True"
then: freeze
- else: not_frozen
- id: freeze
execute_tool: freeze_card
next: frozen
- id: frozen
utter: utter_card_frozen
next: END
- id: not_frozen
utter: utter_card_not_frozen
- id: END
:::
What I Expected
Rasa’s Ordered block steps (opens in a new tab) reference says an execute_tool: step runs its tool directly, without the LLM. So after the customer’s yes, Claude would save the answer, and the block would run freeze_card once.
What I Got
The chat looked right: one message with one reference. In Inspect mode, though, the events under Yes, please. showed two tool calls:

Against a real card system, that’s two freeze requests for one yes.
What I Checked
I clicked the LLM call under Yes, please. to see what Claude had been offered and what it answered:
![The LLM call panel of the Rasa Inspector for the call after “Yes, please.”: model claude-sonnet-5-5, the tools activate, search_knowledge, cancel, correct, set_memory and freeze_card, with set_memory and freeze_card highlighted as called, part of the system prompt, and the response “[assistant] → set_memory, freeze_card”.](https://i0.wp.com/jd-bots.com/wp-content/uploads/2026/11/fixed-rasa-tool-twice-02-claude-calls-freeze-card.webp?resize=728%2C1371&ssl=1)
freeze_card was in Claude’s Tools, and the Response was set_memory, freeze_card: Claude saved the yes and froze the card in the same answer. Then the block reached its freeze step and ran the tool again, as it’s meant to.
Rasa’s Tools (opens in a new tab) reference explains both halves. A skill’s own tools come from its tools.py and are offered to the LLM, and “the same function can be run directly by an ordered-block execute_tool: step.”
Why It Happens
- Rasa offers every tool in a skill’s
tools.pyto Claude while the skill is active. An ordered block doesn’t change that: while the block waits for an answer, Claude seesfreeze_cardin its tools. - An
execute_tool:step runs its tool whatever Claude has done. Nothing tells the block that Claude has already called it. - So when the customer’s yes gave Claude a reason to freeze the card, it did, and then the block did too.
The Fix
Hide the tool from Claude with a requires condition in tool_constraints, the gate from Part 8. Rasa takes a tool off Claude’s list while its condition is false, and an execute_tool: step checks the same condition before it runs the tool. Add this to the frontmatter of skills/lost_card/skill.md, under description:
tool_constraints:
- freeze_card:
requires: "session.lost_card.freeze_confirmed == True"
- Until the customer says yes,
freeze_confirmedisn’t true, so Claude never seesfreeze_card. - When the block reaches its
freezestep, the yes is saved, the condition holds, and the block runs the tool. - Rasa’s Ordered Blocks (opens in a new tab) guide gates its own card-replacement tool the same way, on the order confirmation.
Train again and restart the agent:
rasa train
rasa inspect
After the Fix
The same conversation after training again. The LLM call under Yes, please. now looks like this:
![The LLM call panel of the Rasa Inspector after the fix: the tools activate, search_knowledge, cancel, correct and set_memory, with freeze_card greyed out because it isn’t offered, part of the system prompt, and the response “[assistant] → set_memory”.](https://i0.wp.com/jd-bots.com/wp-content/uploads/2026/11/fixed-rasa-tool-twice-03-freeze-card-not-offered-after-fix.webp?resize=728%2C1371&ssl=1)
freeze_card is greyed out under Tools, and Claude’s response is only set_memory. Under the yes, the event list now shows one Tool call: freeze_card: the block’s.
Common Mistakes
| Mistake | Do this instead |
|---|---|
Relying on execute_tool: alone to decide when a tool runs | Gate every tool a block runs with requires, or Claude may call it too. |
| Gating on a condition the block’s path never makes true | An execute_tool: step waits until its tool’s condition holds. Gate on the answer the step before it collects. |
| Removing the block’s tool step once the gate is in | Keep it: the gate only decides when the tool may run, and the block’s step is what runs it. |
Troubleshooting
| Problem | Fix |
|---|---|
| Two Tool call rows for the same tool after one answer | Add a requires gate to the tool, as above. |
| The block stops at the tool step | The tool’s requires condition isn’t true yet. Check the saved value in the Memory panel in Inspect mode: a bool must equal True. |
FAQ
Why doesn’t Rasa hide a block’s tool from Claude by itself?
Rasa offers a skill’s tools to Claude whatever else runs them. Only a requires condition takes one off Claude’s list (Rasa’s Tool Constraints (opens in a new tab) guide).
Does the gate stop the block from running the tool?
No. The block’s step checks the same condition, and by then the yes is saved, so the tool runs.
Does the customer notice the double call?
Not in the chat: they get one message. The extra call shows only in Inspect mode, or in the system the tool talks to.
Conclusion
The tool ran twice because Claude could see it while the block waited for the yes. A requires gate on the answer hides it from Claude until the block needs it, so the block runs it, once.
Additional Resources
- Ordered Blocks (opens in a new tab) (Rasa docs)
- Ordered block steps (opens in a new tab) (Rasa docs)
- Tools (opens in a new tab) reference (Rasa docs)
- Tool Constraints (opens in a new tab) (Rasa docs)
Related
- Rasa Tutorial — Part 10: Ordered Blocks: Run Steps in a Fixed Order, where this skill is built
- Rasa Tutorial — Part 8: Tool Constraints: Make Your Agent Ask Before It Acts
- Rasa Tutorial for Beginners: Mastering Rasa Pro in Python, with every part of the series
Rasa, Claude and other names mentioned are trademarks of their respective owners. JD Bots isn’t affiliated with or endorsed by Rasa Technologies or Anthropic.
0 comments