Skip to content

Check an AI employee’s tool arguments before they reach a system

Validate every tool argument against a typed schema, the caller’s permissions and the current target state before execution. Reject malformed or out-of-scope values outside the model and record the reason.

What you need

For an engineering or workflow owner whose AI employee prepares API, database or business-system actions.

  • A tool schema and accepted value ranges.
  • A safe test environment with harmless records.
  • Expected allow and deny cases, with the policy owner identified.

Verify that malformed tool arguments cannot trigger a business action

  1. Write the valid argument shape, allowed identifiers and value bounds.
  2. Test one valid request and negative cases for missing fields, wrong types, unknown IDs and out-of-scope values.
  3. Inspect the execution boundary to confirm validation occurs before the system changes state.
  4. Record the rejection reason and verify that no partial change occurred.

A valid amount cannot rescue an unknown record ID

Synthetic test values. No real payment or customer record is used.

Scroll the table to see all columns.

Synthetic tool argument test
RequestSchema checkAuthorization checkState changed?Result
order_id=A-17; amount=500PassPassNo; lookup onlyPass
order_id missing; amount=500FailNot runNoReject
order_id=A-999; amount=500PassFail: unknown IDNoReject
order_id=A-17; amount=-500Fail: below zeroNot runNoReject

A-999 is well-formed but not authorized, so schema validation alone is insufficient. The execution boundary must reject it before any write.

What to hand over

A tool-input acceptance table with the request, validation result, state change and reviewer decision.

Limitation. Schema validation catches malformed input but does not establish that a valid request is appropriate; authorization and business rules still need checks.

Next step

Bring one redacted tool definition and the rules that decide which records and values are in scope. Turn them into allow and deny cases.

Discuss an AI workflow test

Sources