Reference
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,localon the URL lists those toolsets' tools too, andalllists 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_accessandsnowai. - 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.
{
"name": "wallet_balance",
"arguments": {}
}{
"name": "call_tool",
"arguments": {
"name": "search_google",
"arguments": {
"query": "hubspot crm pricing"
}
}
}{
"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 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 withcall_tool, passing the exactnameand theargumentsitsinput_schemadescribes. Tools that change data are listed and called as themselves. - Tell the person what each call cost, from
cost_credits,cost_usdand the balance. partialmeans the deadline cut the work short and only what came back was charged.workingmeans call again with the same arguments afterretry_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 theconfirmation_token. content_write_articletakes 2 to 4 minutes: say so before starting.