Tools and API
Everything in flurry can be done through MCP and the API.
Every screen in flurry runs on the same API your code can call. Your agent builds, tests, publishes, versions and certifies apps through MCP. The same permission checks apply either way. The admin, write and audit routes are API-only and never exposed as MCP tools, except compute (flurry_compute, coming in release 2.0.3).
Connecting
- MCP is at
/mcpon your flurry address. flurry is also registered as a Snowflake custom MCP server. - The API is under
/api/v0. - Identity is the Snowflake sign-in. Behind Snowflake's ingress, flurry takes the signed-in person from Snowflake and checks it against
CURRENT_USER(). - Claude Code sends
Authorization: Snowflake Token="<PAT>". - Cortex Code connects with
--snowflake-connection. - A person who holds no flurry app role gets a 403.
Connect
-- Your flurry address (run in a Snowflake worksheet)
CALL FLURRY.app_public.app_url();# Claude Code
claude mcp add --transport http flurry https://<your-app-url>/mcp \
--header 'Authorization: Snowflake Token="<PAT>"'
# Cortex Code
cortex mcp add -t http --snowflake-connection <CONNECTION> \
flurry https://<your-app-url>/mcpOne tool call
Call flurry_query_test with:
{
"sql": "SELECT REGION, SUM(AMOUNT) FROM SALES.CRM.DEALS WHERE STAGE = :stage GROUP BY 1",
"params": { "stage": "Won" },
"param_types": { "stage": "string" }
}It runs as you, with your role's grants, and returns:
{
"columns": [...],
"rows": [...],
"row_count": 4,
"row_count_total": 4,
"row_cap": null,
"truncated": false,
"elapsed_ms": 212,
"ran_as": "MAYA",
"ran_at": "..."
}More detail: Connect your AI.
The tools
flurry has 15 MCP tools. Coming in release 2.0.3: a sixteenth, flurry_compute. A change note is a sentence of at least three words saying why. Tools that change state take a preview argument that shows the result and writes nothing.
| Tool | What it does | Arguments | Change note | API routes |
|---|---|---|---|---|
flurry_reference | Build reference for agents. Call it first in every session. | topic, section | No | MCP only |
flurry_data_explore | Columns and up to 50 sample rows of a table, read as you. | table, sample | No | MCP only |
flurry_query_test | Test one SELECT as you, with :name parameters, before it goes in an app. | sql, params, param_types, limit | No | MCP only |
flurry_app_list | List and filter apps, with facet counts. | q, owner, status, table, space, stage, sort, trusted_only | No | GET /api/v0/appsGET /api/v0/library/facets |
flurry_app_get | One app's metadata, files and lineage. | app_id, version | No | GET /api/v0/apps/{id}GET /api/v0/apps/{id}/filesGET /api/v0/apps/{id}/versions/{v}/lineage |
flurry_app_scaffold | Create a new draft app that already validates. | app_id, name, brief, tables, change_note, preview, space, skills | Required | MCP only |
flurry_app_edit | Edit a draft's files and get a diff per changed file back. | app_id, change_note, files, replacements, preview, meta, skills | Required | PATCH /api/v0/apps/{id}/meta (meta only) |
flurry_app_validate | Run every check on the draft and build it. | app_id | No | MCP only |
flurry_app_preview | Build the draft's bundle so you can view it. | app_id | No | MCP only |
flurry_app_publish | Publish the draft as the next immutable version. | app_id, change_note, prompt, preview | Required | POST /api/v0/apps/{id}/publish |
flurry_app_history | List versions, with a unified diff between two of them. | app_id, diff_from, diff_to | No | GET /api/v0/apps/{id}GET /api/v0/apps/{id}/diff |
flurry_app_rollback | Create a new version copied from an earlier one. | app_id, to_version, change_note, preview | Required | POST /api/v0/apps/{id}/rollback |
flurry_app_stage | Move an app through its lifecycle: share, unshare, promote, certify, demote, deprecate, retire, restore, pin, unpin, approve, reject, flag. Preview defaults to true. | app_id, action, change_note, preview, version, replaced_by, roles | Required | POST /api/v0/apps/{id}/stage |
flurry_app_comment | List, add, resolve and reopen comments on an app. | app_id, action, body, parent_id, comment_id, anchor, app_version, provenance, state, change_note, preview | On actions that change state | GET /api/v0/apps/{id}/commentsPOST /api/v0/apps/{id}/commentsPOST /api/v0/apps/{id}/comments/{cid}/resolve |
flurry_skill | List, read, diff, create, update, share and certify org skills, which are versioned. | action, skill_id, name, kind, summary, trigger, body, visibility, shared_with, copy_of, base_version, scope, sort, change_note, preview, space_id, tags, kind_filter, owner, tag, trust, app, q, version, from_version, to_version, restore_from, grants, certified | On actions that change state | GET /api/v0/skillsPOST /api/v0/skillsPUT /api/v0/skills/{id}POST /api/v0/skills/{id}/sharePOST /api/v0/skills/{id}/certifyGET /api/v0/skills/{id}/diffGET /api/v0/skills/{id}/versions/{v} |
flurry_compute coming in release 2.0.3 | List, read and change compute settings: suspend, resume, scale, idle and budget limits. An agent's request to spend more is approved only by an admin in the shell. | action, target, app_id, size, min_nodes, max_nodes, idle_stop_secs, budget_cr, on_budget, request_id, days, change_note, preview | On actions that change state | /api/v0/admin/compute*/api/v0/apps/{id}/compute* |
Argument names are as the tool accepts them. Where a tool takes an action, the action decides whether a change note is needed.
API-only routes
These are HTTP only. They are not MCP tools, except the compute routes, which flurry_compute calls from release 2.0.3.
POST /api/v0/apps/{id}/write/{policy}: Apply a declared write rule, or preview it.GET /api/v0/audit: The write audit. GET /api/v0/audit/{id}/chain follows one write back to its version, change note, prompt and builder./api/v0/admin/*: The admin pages: overview, apps, people, access and policy./api/v0/spaces: Spaces./api/v0/settings: Settings.GET /api/v0/whoami: The signed-in person and role.