-
From your IDE or AI assistant, authenticate into your org.
-
In the prompt field, ask the agent to apply a policy to a specific API.
For example, use this prompt: Help me set up a rate-limiting policy on my Stripe API.
The agent calls prepare_policy_creation to fetch available policies for the target API instance:
{
"name": "prepare_policy_creation",
"arguments": {
"organization_id": "<organization_id>",
"asset_id": "<asset_id>",
"policy_name_hint": "rate-limiting"
}
}
This returns a list of applicable policies for the target API instance. The user selects a policy, and the agent calls get_policy_template_form to present configuration options. After the user specifies the policy configuration, the agent calls apply_policy_to_instance to apply the policy immediately.