MCP Server

Reference documentation for the CloudZero MCP server tools that provide secure access to your cost data.

The CloudZero MCP server exposes tools that skills use to query your cost data. While skills handle the analysis workflow, MCP tools provide the underlying data access. This reference documents all available tools, their parameters, and which skills use them.

Tools Overview

ToolCapabilityDescription
get_cost_dataQueryQuery cost data with filters and groupings
get_recent_query_historyQueryView recent cost queries
get_available_dimensionsAllocationsList dimensions for filtering/grouping
get_dimension_valuesAllocationsGet values for a specific dimension
get_org_contextContextRetrieve organization-specific context
set_org_contextContextSet organization context for queries
get_org_context_versionsContextList available context versions
get_reference_infoReferenceGet reference documentation
get_user_organizationsReferenceList accessible organizations
get_optimize_recsOptimizationGet cost optimization recommendations
get_telemetry_dataTelemetryRetrieve telemetry metrics
get_telemetry_streamsTelemetryList available telemetry streams

get_cost_data

Purpose

Queries cost data from CloudZero with support for grouping, filtering, and time-based analysis. This is the primary tool for retrieving cost information.

Parameters

ParameterRequiredDescription
group_byNoDimensions to group results by
filtersNoFilter criteria to narrow results
date_rangeNoTime period to query
granularityNoTime granularity: hourly, daily, weekly, monthly
cost_typeNoType of cost metric (default: real_cost)
limitNoMaximum results to return

Used by

  • cost-spike-investigation
  • top-cost-drivers
  • cost-trend-analysis
  • cost-comparison
  • service-cost-deep-dive
  • custom-dimension-analysis
  • cost-anomaly-detection
  • tag-coverage-analysis

get_recent_query_history

Purpose

Retrieves the history of recent cost queries made during the session, useful for reviewing past analysis or debugging.

Parameters

ParameterRequiredDescription
limitNoMaximum number of queries to return

Used by

  • All skills (for context and debugging)

get_available_dimensions

Purpose

Lists all available dimensions that can be used for filtering or grouping cost data, including both standard CloudZero dimensions and custom User:Defined dimensions.

Parameters

ParameterRequiredDescription
filterNoFilter dimensions by name pattern
limitNoMaximum dimensions to return
force_refreshNoBypass cache and fetch fresh data
include_hiddenNoInclude hidden dimensions in results

Used by

  • understand-cloudzero-organization
  • custom-dimension-analysis
  • tag-coverage-analysis

get_dimension_values

Purpose

Retrieves the available values for a specific dimension, such as all account names, service types, or team values.

Parameters

ParameterRequiredDescription
dimensionYesThe dimension to get values for
date_rangeNoTime period to scope the values
matchNoFilter values by pattern
limitNoMaximum values to return

Used by

  • understand-cloudzero-organization
  • custom-dimension-analysis
  • tag-coverage-analysis
  • cost-comparison

get_org_context

Purpose

Retrieves organization-specific context including custom dimensions, workflows, naming conventions, and cost allocation policies.

Parameters

ParameterRequiredDescription
versionNoSpecific context version to retrieve

Used by

  • understand-cloudzero-organization
  • All other skills (consume cached context)

set_org_context

Purpose

Sets the organization context that will be used for subsequent queries. This configures how cost data is interpreted and analyzed.

Parameters

ParameterRequiredDescription
contextYesThe context configuration to set

Used by

  • understand-cloudzero-organization

get_org_context_versions

Purpose

Lists all available versions of organization context, allowing you to review historical context configurations or switch between versions.

Parameters

None.

Used by

  • understand-cloudzero-organization

get_reference_info

Purpose

Retrieves reference documentation about CloudZero concepts, workflows, and best practices.

Parameters

ParameterRequiredDescription
reference_typeYesType of reference to retrieve

Reference types

  • cost_types - Documentation on available cost metrics
  • dimensions - Documentation on standard dimensions
  • cost_analysis_workflow - Best practices for cost analysis
  • custom_dimensions_workflow - Working with custom dimensions
  • filtering_workflow - How to filter cost data effectively
  • cost_analyst_instructions - General Cost Analyst guidance

Used by

  • understand-cloudzero-organization
  • All skills (for reference lookups)

get_user_organizations

Purpose

Lists all organizations the current user has access to, useful for multi-organization environments.

Parameters

None.

Used by

  • understand-cloudzero-organization

get_optimize_recs

Purpose

Retrieves cost optimization recommendations from CloudZero, including rightsizing, Reserved Instance, and Savings Plan opportunities.

Parameters

ParameterRequiredDescription
statusNoFilter by recommendation status
limitNoMaximum recommendations to return
offsetNoPagination offset
sort_keyNoField to sort results by
sort_orderNoSort direction: asc or desc

Status values

  • not_started - Recommendations not yet acted upon
  • in_progress - Recommendations being implemented
  • addressed - Completed recommendations
  • ignored - Dismissed recommendations

Used by

  • service-cost-deep-dive (for optimization opportunities)

get_telemetry_data

Purpose

Retrieves telemetry metrics from configured telemetry streams, useful for correlating costs with operational metrics.

Parameters

ParameterRequiredDescription
streamNoSpecific telemetry stream to query
date_rangeNoTime period for telemetry data
granularityNoTime granularity: hourly, daily, weekly, monthly

Used by

  • service-cost-deep-dive (for usage correlation)
  • cost-trend-analysis (for metric correlation)

get_telemetry_streams

Purpose

Lists all available telemetry streams configured in your CloudZero organization.

Parameters

None.

Used by

  • service-cost-deep-dive
  • cost-trend-analysis

Parameter Reference

Cost types

The cost_type parameter accepts the following values:

ValueDescription
real_costActual cost after all discounts (default)
billed_costCost as it appears on your bill
on_demand_costCost at on-demand pricing
amortized_costCost with upfront payments spread over term
discounted_costCost showing discount amounts
discounted_amortized_costAmortized cost with discounts applied

Granularity options

The granularity parameter accepts:

  • hourly - Hour-by-hour breakdown
  • daily - Day-by-day breakdown
  • weekly - Week-by-week breakdown
  • monthly - Month-by-month breakdown
  • None - Total for the period (no time breakdown)