> For the complete documentation index, see [llms.txt](https://docs.ionos.com/cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ionos.com/cloud/ai/mcp-server/use-cases/query-billing-data.md).

# Query Billing and Cost Data

**Who this is for:** Finance teams, account owners, and DevOps engineers who must understand <code class="expression">space.vars.ionos\_cloud</code> spending, validate invoices, or build cost-attribution reports, without digging through the DCD billing console.

Use the Billing tools to inspect invoices, review usage, and understand your <code class="expression">space.vars.ionos\_cloud</code> spending through natural language.

## View invoices

> List my last three invoices.

> Get the details of invoice `INV-2026-05`.

> Show me all invoices from Q1 2026.

## Analyze usage

> Show my resource usage for this month.

> What is my usage for Frankfurt data centers this week?

> Compare my daily usage for the last seven days.

## Review traffic

> How much outbound traffic have I used this month?

> Show my traffic for the last billing period.

## Check pricing

> What is the current price for a dedicated core server?

> List the pricing catalog for Object Storage.

## Common patterns

Combine multiple Billing tools to answer complex questions:

> What were my top three cost drivers last month based on usage?

> How does my usage this month compare to last month?

{% hint style="info" %}
**Note:** Billing tools are always available at startup; no loader step is required.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ionos.com/cloud/ai/mcp-server/use-cases/query-billing-data.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
