record_cost
Record a cost in your workspace, such as a vendor or infrastructure cost, so the Value Receipt and the cost analytics count it: pass amount, and optionally currency (default USD), cost_type (default usage), agent_id, customer_id and metadata. This writes a record that is not undone by another tool, so record what was really spent. Needs a claimed Last Price credential. Needs a claimed workspace: a sandbox key from self-registration is refused (403) until a person claims the workspace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | What it cost, in the currency. | |
| agent_id | No | The agent: its id, as it shows in your workspace. An agent's own credential can name only its own agent. | |
| currency | No | The currency code. Defaults to USD. | |
| metadata | No | Anything worth keeping with the record. | |
| cost_type | No | What kind of cost it is. Defaults to usage. | |
| customer_id | No | The customer: its id, as it shows in your workspace. |