Tool Boundary
Where does a suggestion become an action?
Reference notes by Min · Reviewed October 12, 2026
Definition
A tool boundary is the point where an agent’s proposed action becomes an operation on an external system. It is a useful place to enforce authorization and validate parameters.
The boundary connects an agent’s proposed operation to a real service action. It is an application control point, not simply the function name listed in a prompt. Follow the call until the resource is actually read, changed or transmitted.
What it covers
- Request
- The operation and its concrete arguments.
- Authority
- Verified actor and delegated task scope.
- Effect
- The actual read, write or external side effect.
Separate request validation, authorization and side-effect handling. A well-formed request may still be unauthorized, and a permitted request may fail partway through its execution. Record these outcomes distinctly.
In practice
Practical design patterns by Min.
- Validate arguments against an explicit schema.
- Bind approval to the executed request.
- Keep credentials out of model-visible tool responses.
Use typed arguments and constrain destinations, resource identifiers and operation types. Apply task authority using verified context rather than self-reported agent claims.
For retried writes, use idempotency or another duplicate-prevention mechanism where supported. Treat partial completion as an operating state with recovery instructions.
Research notes
Source-grounded details and editorial applications. Follow each link for the original document.
Treat tool arguments as the real request
A friendly tool label does not describe every possible effect. Review the concrete method, resource identifier, destination and parameters before the external service acts. OWASP advises minimizing exposed extensions and preserving the user’s authorization scope in downstream calls.
Source: OWASP LLM06:2025 ↗
Separate a proposal from a committed effect
An agent may draft a command, email or transaction without authority to execute it. The service that performs the side effect can act as the enforcement point: it requests a decision and blocks a call that does not satisfy the applicable policy. This is an application of XACML’s PEP role, not a requirement to use XACML itself.
Source: OASIS XACML 3.0 ↗
Working example
Sending a message
An agent proposes a message to a customer.
- Validate recipient and content scope.
- Check permission and required approval.
- Only then call the messaging service.
Why the controls matter
A payment proposal becomes a transaction only after a service validates authority and commits it. A retry should reference the same operation identity rather than create a second payment accidentally.
Common pitfalls
- Relying on the agent to self-report policy compliance.
- Checking one tool while another performs the same action.
A friendly tool name can conceal unrestricted execution. Review the implementation and alternate parameter paths.
Questions for operational review
Use these questions to decide what evidence your team needs. They are editorial prompts, not a compliance checklist.
- Where does the effect become real?
- Which arguments change its scope?
- How are retries and partial failures handled?
Articles linking here
- Least Privilege
- Policy Enforcement Point
- Prompt Injection
- Excessive Agency
- Sandboxing
- Model Context Protocol
- Purpose-Bound Authorization
- Tool Poisoning
- Agent Data Exfiltration
- Idempotency & Compensation
- Agent Output Validation
- SSRF in Agent Fetching Tools
- Acceptable Use for AI Agents
- Designing Reliable Tools for Agents
References
Primary documents reviewed for this entry. Examples and implementation patterns are editorial synthesis.
- MCP: Security best practices ↗Accessed October 12, 2026
- OWASP LLM06:2025 ↗Accessed October 12, 2026
- OASIS XACML 3.0 ↗Accessed October 12, 2026