v2.4 ships trace replay. Rerun any production run, step by step.

v2.4 ships trace replay. Rerun any production run, step by step.

[01] BLOG

Designing tools agents can actually use

Most agent failures start with a vague tool. Five rules we now apply to every tool schema before it ships.

AUTHOR

Dev Raman

CATEGORY

Engineering

DATE

Most agent failures we see in traces don’t start with the model. They start with a tool that was easy for a human to understand and confusing for an agent.

1. One job per tool

A tool called manage_ticket that creates, updates and closes is three tools pretending to be one. Split it, and the agent stops guessing which mode it is in.

2. Name arguments for meaning

Prefer customer_email over id. The model reads names as instructions.

3. Return what the next step needs

Return the fields the agent will use next, not the whole record. Smaller results mean fewer tokens and fewer distractions.

4. Fail loudly and specifically

“Invalid input” teaches nothing. “customer_email must be a valid address, got ‘n/a’” fixes itself on the next step.

5. Make side effects explicit

  • Mark tools that write, send or pay.

  • Require approval for anything irreversible.

  • Declare whether calling twice is safe.

If a new teammate would need to ask how a tool works, the agent will get it wrong.

The payoff

Teams that applied these rules cut failed steps by 41% in a month, without touching a prompt.

[10] GET STARTED

FIRST RUN IN FIVE MINUTES.

NOW SHIP YOURS.

No credit card

·

Cancel anytime

·

A human replies within one business day

[10] GET STARTED

FIRST RUN IN FIVE MINUTES.

NOW SHIP YOURS.

No credit card

Cancel anytime

A human replies within one business day

[10] GET STARTED

FIRST RUN IN FIVE MINUTES.

NOW SHIP YOURS.

No credit card

·

Cancel anytime

·

A human replies within one business day

[ FRAMER TEMPLATE ]

Get Meridel.

Designed by Zavati Studio. Remix it for your own AI startup in an afternoon.

[ CUSTOM SETUP ]

$249

Template included. I swap in your colours, fonts and copy. Live in 3 days.

Bigger changes or more languages? Ask for a quote.

[ FRAMER TEMPLATE ]

Custom setup from $249, template included. Colours, fonts and copy, live in 3 days. More? Ask.

Create a free website with Framer, the website builder loved by startups, designers and agencies.