cloudscope
v0.3.3Azure + GCP cost management: spending, forecasts, anomalies, budgets, idle resources, and tags.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_cost_summary Cloud Cost Summary
Returns a cost breakdown for a date range grouped by service, resource group, tag, or region. Defaults to current month if dates are omitted. Output includes a sorted table with each group name, cost in USD, and percentage of total. Includes a total row, daily average, and collapses groups beyond the top 10 into an "Other" row. Returns an error if the date range is invalid. Use this when the user asks "how much am I spending", "what costs the most", "show me my cloud bill", or wants a spending overview.
| Parameter | Type | Description |
|---|---|---|
end_date | string | End date (YYYY-MM-DD). Defaults to today. |
group_by | string | How to group costs: service, resource_group, tag, or region |
provider | string | Cloud provider to query (azure or gcp) |
start_date | string | Start date (YYYY-MM-DD). Defaults to first of current month. |
detect_anomalies Detect Cost Anomalies
Compares daily spending over the last N days against the prior N days to find cost spikes. Returns a list of services where spending increased above the threshold percentage, sorted by increase amount. Each entry includes service name, previous cost, current cost, percentage change, and absolute change in USD. Returns an empty list if no anomalies found. Use this when the user asks about unexpected cost increases, billing surprises, or wants to know if anything changed recently.
| Parameter | Type | Description |
|---|---|---|
days | number | Number of days to compare (default: 7) |
provider | string | Cloud provider to query (azure or gcp) |
threshold | number | Minimum percentage increase to flag (default: 20) |
list_recommendations Cost Optimization Recommendations
Fetches cost-saving recommendations filtered by category. Returns a list of recommendations each containing: title, category, impact level (high/medium/low), estimated annual savings in USD, affected resource ID, and a short description of the suggested action. Returns an empty list if no recommendations exist for the selected category. Use this when the user wants to reduce costs, find waste, or optimize resource usage.
| Parameter | Type | Description |
|---|---|---|
category | string | Filter by category: all, compute, storage, or networking |
provider | string | Cloud provider to query (azure or gcp) |
get_cost_forecast Cost Forecast
Projects future cloud spending for the next N days using a linear trend based on the last 30 days of actual costs. Returns the forecast period dates, projected total cost in USD, average daily projected cost, and the confidence basis (number of historical days used). Use this when the user asks "how much will I spend this month", wants to predict upcoming bills, or needs to plan budgets. Returns an error if insufficient historical data exists.
| Parameter | Type | Description |
|---|---|---|
days | number | Number of days to forecast (default: 30) |
provider | string | Cloud provider to query (azure or gcp) |
check_budgets Budget Status
Check budget status: current spend vs limit, percentage used, forecast, and overage risk. For GCP, requires GCP_BILLING_ACCOUNT_ID to be set.
| Parameter | Type | Description |
|---|---|---|
provider | string | Cloud provider to query (azure or gcp) |
compare_periods Compare Cost Periods
Compare costs between two date ranges, showing per-service absolute and percentage changes.
| Parameter | Type | Description |
|---|---|---|
period_a_end * | string | Period A end date (YYYY-MM-DD) |
period_a_start * | string | Period A start date (YYYY-MM-DD) |
period_b_end * | string | Period B end date (YYYY-MM-DD) |
period_b_start * | string | Period B start date (YYYY-MM-DD) |
group_by | string | How to group costs: service or resource_group |
provider | string | Cloud provider to query (azure or gcp) |
top_spending_resources Top Spending Resources
Find the N most expensive individual resources over a time period. On GCP, requires the detailed billing export for resource-level data.
| Parameter | Type | Description |
|---|---|---|
days | number | Number of days to look back (default: 30) |
limit | number | Number of resources to return (default: 10) |
provider | string | Cloud provider to query (azure or gcp) |
get_cost_by_tag Cost by Tag
Breaks down costs by a specific tag or label key such as team, environment, or project. Returns a sorted table with each tag value, cost in USD, and percentage of total. Includes a total row and daily average. Returns an error if the date range is invalid or no tagged costs exist. Use this when the user asks about costs per team, per environment, cost allocation, chargeback, or wants to understand spending by any custom tag or label.
| Parameter | Type | Description |
|---|---|---|
tag_key * | string | Tag/label key to group costs by (e.g. team, environment, project) |
end_date | string | End date (YYYY-MM-DD). Defaults to today. |
provider | string | Cloud provider to query (azure or gcp) |
start_date | string | Start date (YYYY-MM-DD). Defaults to first of current month. |
find_idle_resources Find Idle Resources
Finds cloud resources that are provisioned but not actively used — unattached disks, orphaned network interfaces, unused IPs, idle VMs, and empty compute plans. Returns each resource with its name, type, resource group/project, reason it is idle, and estimated monthly cost in USD. Returns an empty list if no idle resources are found. Use this when the user asks about waste, idle or unused resources, cleanup opportunities, or wants to find resources to delete to reduce costs.
| Parameter | Type | Description |
|---|---|---|
provider | string | Cloud provider to query (azure or gcp) |
find_untagged_resources Find Untagged Resources
Finds resources that have no tags or labels applied. Returns each resource with its name, type, resource group/project, and location. Untagged resources cannot be attributed to teams or projects, making cost allocation and chargeback impossible. Returns an empty list if all resources are tagged. Use this when the user asks about tagging compliance, governance, cost attribution gaps, or wants to identify resources that need tags or labels.
| Parameter | Type | Description |
|---|---|---|
provider | string | Cloud provider to query (azure or gcp) |
get_current_date Current Date
Returns today's date and the start/end of current and previous months in YYYY-MM-DD format
get_cross_subscription_costs Cross-Subscription Cost Summary
Returns a combined cost breakdown across multiple Azure subscriptions sorted by total spend. Each subscription shows its name, total cost in USD, and percentage of the combined total. Handles partial failures gracefully — if some subscriptions are inaccessible, returns results for the rest with a warning. Use this when the user asks about costs across all subscriptions, wants to compare subscription spending, or needs an organization-wide cost overview.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Cloud provider (Azure-only tool) |
end_date | string | End date (YYYY-MM-DD). Defaults to today. |
start_date | string | Start date (YYYY-MM-DD). Defaults to first of current month. |
subscription_ids | array | Subscription IDs to include. Defaults to all enabled subscriptions. |
list_subscriptions List Azure Subscriptions
Returns all Azure subscriptions the current credential can access, with name, ID, and state. Shows which subscription is currently active. Use this when the user has multiple subscriptions and wants to see which ones are available, or to confirm which subscription is being queried.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Cloud provider (Azure-only tool) |
list_projects List GCP Projects
Returns all GCP projects the current credential can access, with name, ID, and state. Shows which project is currently active. Use this when the user has multiple GCP projects and wants to see which ones are available, or before calling get_cross_project_costs.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Cloud provider (GCP-only tool) |
get_cross_project_costs Cross-Project Cost Summary
Returns a combined cost breakdown across multiple GCP projects sorted by total spend. Each project shows its name, total cost in USD, and percentage of the combined total. Use this when the user asks about costs across all GCP projects, wants to compare project spending, or needs an organization-wide cost overview.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Cloud provider (GCP-only tool) |
end_date | string | End date (YYYY-MM-DD). Defaults to today. |
project_ids | array | Project IDs to include. Defaults to all known projects. |
start_date | string | Start date (YYYY-MM-DD). Defaults to first of current month. |