ck_external_service
Track external API calls from agents: record interactions with PII redaction, summarize by service, check rate limits, and rank top services by volume and cost.
Instructions
Track and govern agent interactions with external SaaS APIs. Rate limits per service, cost attribution, and PII redaction. Modes: record (log an interaction with auto-redaction), summary (aggregated view per service), rate_limit_status (current rates against limits), top_services (ranked by volume and cost).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Operation mode. Defaults to summary. | |
| limit | No | Max results for top_services mode. Default: 10. | |
| method | No | HTTP method (GET, POST, etc.). | |
| task_id | No | Task identifier for scoping the interaction. | |
| endpoint | No | Sanitized endpoint path. PII is auto-redacted. | |
| metadata | No | Additional metadata. | |
| cost_cents | No | Estimated cost in cents. | |
| latency_ms | No | Request latency in milliseconds. | |
| session_id | Yes | Session identifier. | |
| status_code | No | HTTP status code or result code. | |
| service_name | No | External service name (e.g., github, slack, jira). | |
| interaction_type | No | Type of interaction. Defaults to api_call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| summary | No | ||
| recorded | No | ||
| services | No | ||
| rate_limits | No |