LESSON 155 / 215·2 min readAdvanced

Tools and their safe contracts

Must knowConcept lesson
01 Understand02 Recall03 Prepare

Words made simple

A few useful meanings before you read the explanation.

Retrieval
Finding and fetching information that is useful for the current question.
Durable
Able to retain progress and recover across interruptions. Durable workflows require appropriate storage and retry behavior.
Idempotency
Making a repeated request have the same intended business effect as one request. It helps avoid duplicate submissions or payments.
More words from this lesson
Tenant
A customer or organization whose data must stay separate from other customers in a shared application.
ToolArguments from modelTrusted server context/checksMinimal resultFailure behavior
Customer lookupCustomer reference if neededTenant, caller, permitted customer relationshipPermitted display/profile fieldsDeny access without leaking existence
Policy lookupPolicy ID or safe selectorOwnership, validity, allowed product/regionPolicy/version IDs and permitted summary fieldsClarify selector or return unavailable
Claim statusClaim IDTenant, policy/customer ownership, read scopeStatus code, safe reason, required-doc typesDenied, not found under safe policy, or transient unavailable
Create claimApproved draft referenceExact approval, current rules, idempotency keyClaim ID and durable receiptReject invalid draft; reconcile unknown commit
Email draft/sendDraft ID / permitted recipient selectionRole, consent, recipient/attachment/content checks, send approvalDraft or message receiptNo send on invalid approval; reconcile uncertain send
Document searchBounded queryTenant, document ACLs, policy/version/date filtersBounded excerpts and source IDsNo evidence versus retrieval failure kept distinct
  • Never accept a model's customerId as proof of the current customer.
  • Never let the model supply an unrestricted email URL, SQL query, database filter, or role field.
PAUSE & RECALL

Can you explain it without the notes?

Tools and their safe contracts

Use your own words. Explain an example and one limitation before checking the explanation.

Check your explanation

Never accept a model's customerId as proof of the current customer. Never let the model supply an unrestricted email URL, SQL query, database filter, or role field.

CONNECT IT TO YOUR INTERVIEW

Turn this concept into a clear answer.

Practice this concept
YOUR NEXT STEP

Keep connecting the ideas.

Next lesson: Data model

Adapted from 13_AI.MD · “Tools and their safe contracts”. Examples are study fragments; framework behavior can depend on your version.