ami_record_calls
Log completed API call records with model, timestamps, and token counts to measure agent workflow costs for the AMI survey.
Instructions
Telemetry entry point for agents NOT running in Claude Code. Post the provider-reported usage for each API call the workflow made. Every record needs model, start_time, end_time, input_tokens, output_tokens - values read from real API responses, never estimated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| calls | Yes | Call records. | |
| run_id | No | ||
| adapter | No | Name of the runtime/SDK the records came from. | |
| replace | No | ||
| runtime_metadata | No | e.g. {platform, runtime, version}. |