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 /mcp on 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>/mcp

One 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.

ToolWhat it doesArgumentsChange noteAPI routes
flurry_referenceBuild reference for agents. Call it first in every session.topic, sectionNoMCP only
flurry_data_exploreColumns and up to 50 sample rows of a table, read as you.table, sampleNoMCP only
flurry_query_testTest one SELECT as you, with :name parameters, before it goes in an app.sql, params, param_types, limitNoMCP only
flurry_app_listList and filter apps, with facet counts.q, owner, status, table, space, stage, sort, trusted_onlyNoGET /api/v0/apps
GET /api/v0/library/facets
flurry_app_getOne app's metadata, files and lineage.app_id, versionNoGET /api/v0/apps/{id}
GET /api/v0/apps/{id}/files
GET /api/v0/apps/{id}/versions/{v}/lineage
flurry_app_scaffoldCreate a new draft app that already validates.app_id, name, brief, tables, change_note, preview, space, skillsRequiredMCP only
flurry_app_editEdit a draft's files and get a diff per changed file back.app_id, change_note, files, replacements, preview, meta, skillsRequiredPATCH /api/v0/apps/{id}/meta (meta only)
flurry_app_validateRun every check on the draft and build it.app_idNoMCP only
flurry_app_previewBuild the draft's bundle so you can view it.app_idNoMCP only
flurry_app_publishPublish the draft as the next immutable version.app_id, change_note, prompt, previewRequiredPOST /api/v0/apps/{id}/publish
flurry_app_historyList versions, with a unified diff between two of them.app_id, diff_from, diff_toNoGET /api/v0/apps/{id}
GET /api/v0/apps/{id}/diff
flurry_app_rollbackCreate a new version copied from an earlier one.app_id, to_version, change_note, previewRequiredPOST /api/v0/apps/{id}/rollback
flurry_app_stageMove 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, rolesRequiredPOST /api/v0/apps/{id}/stage
flurry_app_commentList, add, resolve and reopen comments on an app.app_id, action, body, parent_id, comment_id, anchor, app_version, provenance, state, change_note, previewOn actions that change stateGET /api/v0/apps/{id}/comments
POST /api/v0/apps/{id}/comments
POST /api/v0/apps/{id}/comments/{cid}/resolve
flurry_skillList, 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, certifiedOn actions that change stateGET /api/v0/skills
POST /api/v0/skills
PUT /api/v0/skills/{id}
POST /api/v0/skills/{id}/share
POST /api/v0/skills/{id}/certify
GET /api/v0/skills/{id}/diff
GET /api/v0/skills/{id}/versions/{v}
flurry_compute coming in release 2.0.3List, 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, previewOn 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.