QuestionQ18

Tool Design & MCP Integration

An expense-reimbursement agent processes employee requests through a process_reimbursement tool. Company policy requires manager approval before funds are disbursed for reimbursements above $500. The agent handles hundreds of requests each day, and the threshold enforcement must be tamper-proof regardless of how the agent is prompted.

Which design ensures that the $500 approval threshold cannot be bypassed?

Explanation

A trusted reimbursement tool must enforce the authorization rule itself before it disburses funds. By converting any reimbursement above $500 into a pending manager-approval request rather than a disbursement, the rule remains effective even if the agent is induced to issue an unsafe tool call. Model prompts, model-supplied approval fields, tool-selection instructions, and audit logs do not provide the same enforcement boundary. OpenAI’s API documentation also directs implementers to validate generated function arguments in application code before invoking a function.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!