---
title: "MCP - Reference | SnowAI"
description: "The SnowAI MCP server: transport, OAuth discovery, scopes, how tools are listed and called, errors and progress."
url: "https://trysnow.ai/docs/reference/mcp"
---

# MCP

> One stateless MCP server over streamable HTTP. It lists the account tools and the tools that change data, finds every other tool with `find_tools` and runs it with `call_tool`, through the same gateway as REST.

## The server

- **Endpoint**: `https://api.trysnow.ai/mcp`
- **Transport**: Streamable HTTP. A new server per request, so there are no sessions to resume.
- **Server**: `snowai`, titled SnowAI
- **Listed tools**: The account tools. `?toolsets=seo,ai,local` on the URL lists those toolsets' tools too, and `all` lists every allowed tool.

The endpoint takes a bearer token only. A browser cookie never drives it, and it answers only on its own host.

## Authentication

- A request without a token answers 401 with `WWW-Authenticate: Bearer resource_metadata="..."`.
- The protected resource metadata is at `https://api.trysnow.ai/.well-known/oauth-protected-resource/mcp`. It names the authorization server, `https://api.trysnow.ai/auth`.
- The authorization server's metadata is at `https://api.trysnow.ai/.well-known/oauth-authorization-server`.
- Clients register themselves, by dynamic client registration or a client ID metadata document. PKCE is required.
- The scopes are `openid`, `profile`, `email`, `offline_access` and `snowai`.
- Without a browser, use the device flow. The metadata lists `device_authorization_endpoint`, and a person approves the code at `/device`.
- An API key works as a bearer token: `Authorization: Bearer snow_live_...`.

An access token works on the REST API too.

## Tools

`tools/list` returns each tool with `name`, `title`, `description`, `inputSchema`, `outputSchema` and `annotations`. The description has four lines: Use when, Not for, Returns and Price. `readOnlyHint` is false only for tools that write.

A default connection lists the account tools, `wallet_balance`, `wallet_usage`, `list_brands`, `brand_get`, `brand_update`, `brand_add_memory`, `brand_search_memory`, `find_tools`, `call_tool`, and `submit_feedback`, plus `content_write_article` and `console_submit_sitemap` while their toolsets are on. `find_tools` returns each read-only match's `name`, `title`, `toolset`, `price`, `use_when` and `input_schema`. `call_tool` takes that `name` and its `arguments`, and answers as the tool itself would. It refuses tools that change data, which are called directly. Tools in a toolset an admin switched off are left out of `find_tools` and refused with 403 `forbidden`.

`tools/call` takes `name` and `arguments`. The result has the answer twice: as JSON text in `content`, and as an object in `structuredContent`.

**tools/call params**

```json
{
  "name": "wallet_balance",
  "arguments": {}
}
```

**tools/call params for a data tool**

```json
{
  "name": "call_tool",
  "arguments": {
    "name": "search_google",
    "arguments": {
      "query": "hubspot crm pricing"
    }
  }
}
```

**Result**

```
{
  "content": [{ "type": "text", "text": "<the answer as JSON>" }],
  "structuredContent": <the answer: the tool's fields and the billing fields>
}
```

## Errors

A failed call returns `isError: true`. The problem object is in `structuredContent`, with the same fields REST uses. [Errors and limits](https://trysnow.ai/docs/billing/errors) lists each one.

## Progress

Send a progress token in the request's `_meta` and tools that wait send `notifications/progress` with `progress`, `total` and `message`.

## Server instructions

On connect the server sends instructions to the model. In short:

- Prices are in credits, and 1,000 credits are $1. Every description ends with its price.
- Find a read-only data tool with `find_tools`, then run it with `call_tool`, passing the exact `name` and the `arguments` its `input_schema` describes. Tools that change data are listed and called as themselves.
- Tell the person what each call cost, from `cost_credits`, `cost_usd` and the balance.
- `partial` means the deadline cut the work short and only what came back was charged. `working` means call again with the same arguments after `retry_after_seconds`.
- Failed calls are free. On `insufficient-funds`, tell the person what is needed and that they top up on the Billing page.
- On `approval-required`, ask the person to approve the cost, then call again with the same arguments and the `confirmation_token`.
- `content_write_article` takes 2 to 4 minutes: say so before starting.

Every docs page as Markdown: https://trysnow.ai/llms.txt
