Mission · Set limits

Track what your agent does — and draw clear limits

Your agent is running. To finish, you learn two things: to read and interpret the state of an order — and to set durable limits on which Tools your agent may use at all. That's how you stay in control even when you're not sitting next to every single call.

Lesson 04 · ~7 minutes · Knowledge & practice

What you'll be able to do

Read the status — get_order_status

You don't have to memorize order numbers. Ask your agent in plain language, and it calls get_order_status (only after your permission, of course) and translates the answer. The platform moves an order through fixed stages — the names are in English, because that's how they appear in the app and in the log too:

The history shows the path with no gaps — e.g. prepared → approval_requested → rejected. So you can read back at any time what happened to your agent's order, and who moved it when.

Set limits — only these Tools

In the Agentowner course you set Auftrags-Limits (order limits) for your agent. Here you draw the line at the build level: which Tools it may call at all. You already know your instrument for that — the permission dialog:

With the command /permissions you see at any time what you've allowed, and can revoke it. The decisive protection: the dialog always names the exact Tool name. If your agent unexpectedly reaches for mcp__lys__prepare_orders (the batch variant) or even mcp__lys__task_execute, you see it — and say No.

Pin it down durably (optional)

To anchor the whitelist for good, add the allowed Tools to the settings file settings.json under permissions.allow — for example mcp__lys__search_skillanbieter and mcp__lys__prepare_order. For the course the dialog is entirely enough; this is just the way to hold it across projects.

Deliberately left out

task_execute, auto_approve and the ⏵⏵ auto mode skip your Freigabe. That's exactly why you don't allow them in this course: they contradict the through-line that you keep the last word.

When the platform draws limits

Two errors you'll see sooner or later. Claude Code shows both directly in the chat when a tool call fails:

Keep learning

You've built an AI agent in the terminal, had it search and order, and set it limits — never giving up control. Two sources take you deeper:


Your turn

Test yourself — retrieving from memory is what builds real retention.

Knowledge check

How do you durably allow your agent only certain Tools?

LinkYourSkill Designed in the LinkYourSkill design system