# flash_setup

Connect a Definitive account for trading on Flash. The primary setup path is the interactive wizard the user runs in their OWN terminal — npx -y @definitive-fi/flash-mcp setup — which handles the API key, funder wallets, and RPCs; direct the user there rather than collecting credentials in chat. Call this tool with no arguments to see what's configured and get the exact instructions to relay. It also accepts apiKey (safe in chat — it cannot move funds) and rpc overrides. Wallet private keys are NEVER accepted here and must never be pasted into the conversation.

Agent View of the PolicyLayer registry record for `flash_setup`. HTML page: https://policylayer.com/tools/definitive-fi-flash-mcp/flash-setup

## Facts

- Tool: `flash_setup`
- Server: Flash (`@definitive-fi/flash-mcp`) — https://policylayer.com/tools/definitive-fi-flash-mcp.md
- Install: `npx -y @definitive-fi/flash-mcp`
- Homepage: https://www.npmjs.com/package/@definitive-fi/flash-mcp
- Risk category: Write (Medium risk)
- Registry record: grade F, identity unverified
- Server rate-limited: no
- Parameters: 3
- Recommended policy verdict: Rate-limited

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `rpc` | object | no | Optional custom RPC URLs per chain, e.g. { "base": "https://…" }. Recommended — the public defaults are rate-limited. Pass an empty string to clear a chain's ov |
| `apiKey` | string | no | Definitive Flash API key (starts with dpka_) |
| `organization` | string | no | Your Definitive organization slug (optional). Stored for reference; the setup page uses whichever organization you're logged into, so this is no longer needed t |

Parameters from the server's own tool schema.

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "flash_setup",
    "arguments": {}
  }
}
```

## Why flash_setup is rated Medium

This tool creates or modifies account configuration and API credentials needed for trading. While it does not directly move funds (hence not Financial), it irreversibly establishes the authentication and RPC configuration that enables all downstream financial operations. It is Write (configuration modification) rather than Execute because it sets up persistent state rather than triggering one-time operations.

From the tool's own definition: "Tool description states it 'Connect[s] a Definitive account for trading on Flash' and 'handles the API key, funder wallets, and RPCs'. It accepts `apiKey` and `rpc` overrides, which modifies account configuration."

Risk signals: Handles credentials or secrets (apiKey)

## Use case

AI agents use flash_setup to create or update resources in Flash, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Flash environment.

## Recommended policy (PolicyLayer)

Verdict: **Rate-limited**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Flash:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "flash_setup": {
      "limits": [
        {
          "counter": "flash_setup_rate",
          "window": "minute",
          "max": 30,
          "scope": "grant"
        }
      ]
    }
  }
}
```

## Other tools on Flash (7)

- `flash_cancel_order` — Destructive — https://policylayer.com/tools/definitive-fi-flash-mcp/flash-cancel-order.md
- `flash_submit_order` — Financial — https://policylayer.com/tools/definitive-fi-flash-mcp/flash-submit-order.md
- `flash_balances` — Read — https://policylayer.com/tools/definitive-fi-flash-mcp/flash-balances.md
- `flash_get_order` — Read — https://policylayer.com/tools/definitive-fi-flash-mcp/flash-get-order.md
- `flash_list_orders` — Read — https://policylayer.com/tools/definitive-fi-flash-mcp/flash-list-orders.md
- `flash_quote` — Read — https://policylayer.com/tools/definitive-fi-flash-mcp/flash-quote.md
- `flash_status` — Read — https://policylayer.com/tools/definitive-fi-flash-mcp/flash-status.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=definitive-fi-flash-mcp · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/definitive-fi-flash-mcp
