get_cost_by_service
Analyze Oracle Cloud Infrastructure spending by retrieving cost breakdowns per service for a specified tenancy and time period.
Instructions
Get cost breakdown by service 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)
Returns:
List of costs grouped by service with total cost per service
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_by_service"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tenant_id | Yes | ||
| time_usage_started | Yes | ||
| time_usage_ended | Yes |