Scenario
An incident remediation agent receives an alert about elevated error rates. It searches Sentry for related issues and reports findings. You want this traced in Apie before adding guardrails.Step 1 — Create the client
Monitor mode is the default — guardrails evaluate but never block.Step 2 — Start a run
One investigation = one run.Step 3 — Instrument the Sentry search
UsewithCanonicalToolAction to map the Sentry call to consistent metadata:
Step 4 — Complete the run
What you’ll see
A single run in the dashboard with one tool call (sentry.search_issues), action type read, resource type incident, and your output summary.
What to try next
- Declare capabilities for
sentry.search_issues - Run in monitor mode with deploy/vault scenarios from Guardrail packs
- Add more tool calls as your agent’s capabilities grow
Next steps
Platform connectors
Sentry, Datadog, PagerDuty helpers.
Production release gate
Pipeline with risky actions.
