# Spending and limits

> How the MCP server keeps an agent's spending under your control, with per-agent limits, confirmations and charges at actual cost.

Source: https://deeperesearch.com/docs/mcp/spending/

An agent can only spend what you allow. Every paid call goes through four checks: the cost ceiling the agent set, this connection’s limits, your confirmation above a threshold, and your account’s own budget and balance.

## Default limits

Each connected agent (one per OAuth sign-in or API key) has its own limits:

| Limit                            | Agents that sign in | Agents using an API key |
| -------------------------------- | ------------------- | ----------------------- |
| Most one research can cost       | $5                  | $5                      |
| Most the agent can spend a month | $10                 | $25                     |
| Asks you first above             | $2                  | $2                      |

You pick the limits when you sign in. You can change them, or disconnect the agent, any time in [Settings → Connections](https://deeperesearch.com/app/settings/connections). Your account’s daily budget and credit balance apply on top of these.

## What happens when an agent starts research

1. **The agent sets a ceiling.** `start_research` needs `max_cost_usd`. If the worst-case cost of the chosen providers is above it, nothing starts and the agent gets `exceeds_max_cost`. `estimate_research` tells the agent the worst case beforehand.
2. **The connection’s limits are checked.** If the run would go over the per-research or monthly limit, the agent gets `limit_reached` and is told to ask you.
3. **You confirm above the threshold.** If the worst case is above the connection’s “ask first” amount, you approve it before anything is charged. See below.
4. **The worst case is held, then the actual cost is charged.** While research runs, its worst-case cost is held from your credit. When it finishes, you’re charged what the providers actually cost and the rest of the hold is released.

The same checks apply to `merge_research` and to a `merge` passed to `start_research`.

## How confirmation works

How you’re asked depends on what your client supports:

- **Clients that can show a form** (MCP elicitation) show you the question directly, for example “Start research for up to $4.80?”. Approve, and the research starts. Decline, and the agent gets `declined`; nothing is started or charged.
- **Other clients** get a `needs_confirmation` error that tells the agent the worst-case cost and asks it to check with you. If you agree, the agent calls the tool again with the same arguments and `confirmed: true`.

Caution

With clients that don’t support forms, `confirmed: true` relies on the agent actually asking you. Keep the “ask first” amount and the monthly limit low for agents you don’t watch closely.

## Retries never charge twice

If an agent calls `start_research` again with the same question, providers, `max_cost_usd`, attachments and merge settings within 15 minutes, it gets the original research back (`created: false`) instead of starting and paying for a new one. You’re not asked to confirm again either. After 15 minutes, the same call starts fresh research.

## Cancelling

`cancel_research` stops research that is queued or running. Providers that haven’t finished aren’t charged. Reports that already finished are kept.

## Seeing what agents spent

Each research shows which agent started it in the web app, and [Settings → Connections](https://deeperesearch.com/app/settings/connections) shows each agent’s spending this month.
