get_cost_usage_summary
Retrieve cost and usage summaries for Oracle Cloud tenancies by specifying date ranges and granularity to analyze spending across services and compartments.
Instructions
Get cost and usage summary for a tenancy.
Args:
tenant_id: OCID of the tenancy
time_usage_started: Start time in ISO format (YYYY-MM-DD)
time_usage_ended: End time in ISO format (YYYY-MM-DD)
granularity: Granularity of the data (DAILY or MONTHLY), defaults to DAILY
Returns:
List of cost and usage summaries with amounts, services, and compartments
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tenant_id": "<tenant_id>",
"time_usage_started": "<time_usage_started>",
"time_usage_ended": "<time_usage_ended>"
},
"name": "get_cost_usage_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tenant_id | Yes | ||
| time_usage_started | Yes | ||
| time_usage_ended | Yes | ||
| granularity | No | DAILY |