Skip to main content

AI tool usage

The public API can be exposed to AI assistants as tools. Use the AI tool schema when a framework accepts JSON tool definitions, and use the OpenAPI schema when a framework imports OpenAPI directly. Give the assistant this policy before allowing write access:

Tool selection

Risk levels

The API does not currently have an inactive status field. If the user asks to cancel a subscription, clarify whether they mean deleting the local tracking record or cancelling the service outside this app.

Example flow

User:
Assistant:
  1. Calls list_subscriptions.
  2. Finds the Netflix record.
  3. Asks:
  1. Calls update_subscription only after confirmation:

Error recovery

Errors use a stable shape:
Use field and suggestedFix to correct the next request. For writes, ask for confirmation again if the corrected payload changes the effective action.