- Write the read_note argument schema and allowed collection.
- Classify four proposed calls by syntax, structure and authorization.
- Design distinct success, not_found and denied observations.
A language model proposing a JSON tool call does not establish that the action is valid or permitted. The application must check the tool name, arguments and authorization. Use a fictional note-reader tool to separate these decisions.
Define a narrow tool interface
The read_note tool accepts a noteId from an approved collection and returns a structured observation. It does not accept a shell command, arbitrary URL or extra destination field. Describe required types and reject unknown or malformed arguments according to the interface contract. A model-generated request can be syntactically valid JSON while still naming an unsupported tool or an out-of-scope note. Parsing is the beginning of validation, not its conclusion.
Authorize independently of the model
Check the user’s permission and task scope at execution time. Do not trust a field such as approved:true merely because the model supplied it. The fixture allows reading N1 and N2 but not the private N9. A clear refusal should identify the unavailable operation category without leaking the private note content. AI can explain a proposed call, but the explanation cannot substitute for the service’s authoritative access check.
Return observations with useful boundaries
Include the requested note identity, result category and relevant source reference in the tool response. Keep errors distinct from successful empty results. Do not turn an authorization failure into a fabricated note so the conversation continues smoothly. Test the allowed read, an unknown tool, a wrong argument type and an unauthorized note. A good agent loop handles these observations honestly rather than treating every received string as evidence of success.
Fictional worked example — Typed call
Supplied input
read_note({noteId:"N9",approved:true}); allowed note IDs=[N1,N2]Example result to inspect
Denied; model-supplied approval has no authority
The execution boundary checks scope independently and does not disclose N9.
This is an authored teaching example, not a recorded live provider run or an independent performance test.
Make the idea concrete.
- Write the read_note argument schema and allowed collection.
- Classify four proposed calls by syntax, structure and authorization.
- Design distinct success, not_found and denied observations.
What a useful outcome looks like
Authorization must be enforced outside the model-generated proposal.
Ask for reasoning you can verify.
Use fictional or permitted data. This is a copyable brief for a separate approved model; no model is called from this article.
Help me review this fictional designing bounded ai agents exercise: Validate requested actions before a tool can execute them. I will supply the original input, my expected result and the actual transformation. Explain execution authorization, identify unsupported assumptions about observation categories, and propose one bounded negative control. Keep observations separate from hypotheses; do not invent output or act on external systems.
Turn reading into a reviewed checkpoint.
Complete the manual exercise, review each item, then answer the evidence question. This records self-study, not independent assessment of expertise.
Review the checklist and pass the question to save this lesson.
Primary references
References support further checking; cited organizations do not endorse AgentX. This guide is original AI-assisted educational content with illustrative examples. Read the editorial policy or report a correction.
Continue with a related task.
Give an agent a bounded completion condition
Define success as observable work rather than an open-ended instruction to help.
Keep retrieved instructions below user authority
Separate instructions that govern the agent from text it is analyzing.
Separate a plan from a completed step
Update agent state from observed results, not predicted outcomes.