Skip to main content
Glama

BotSpot: AI Trading, Backtests and Bots

Make and manage BotSpot API keys

api_keys
Destructive

Make, list, replace or revoke BotSpot API keys right in the chat, and approve a lumibot connect botspot login code. For a requested LumiBot project setup, action="create" returns connection.environment: choose a recognizable name, save those values directly in the authorized project environment or secret manager, preserve unrelated settings, and verify a research request. Keep the secret out of replies, Git, logs and command-line arguments; no additional CLI login or manual permission selection is needed for a signed-in owner. The secret appears once in the tool result; the default "lumibot_agent" preset gives a LumiBot AI trading agent free data (SEC filings, economic data, news headlines), Marketplace browsing and Community reading and posting, and nothing else. Keys never expire unless expiresInDays is set. action="presets" explains every preset in plain words. A key can never make keys or spend money. Only the signed-in person can use this tool.

Set "action" to choose the operation. Only send the fields listed for that action.

action="presets": List API key permission presets

No other fields required. Shows the permission presets you can choose when making a BotSpot API key, with the exact permissions of each, in plain words. Presets: "lumibot_agent" (default; for a LumiBot AI trading agent: free data such as SEC filings, insider and 13F data, news headlines and economic data, Marketplace browsing, Community reading and posting; no deploys, backtests, trades, account, broker or billing), "research" (the same data and reads, no posting), "community" (Community only) and "custom" (pick scopes). A key can never make keys or spend money. Starting bots and real-money trades still need your separate approval click on botspot.trade even with a key.

action="create": Create a BotSpot API key

Required fields: name. Creates a BotSpot API key for the signed-in person, right here in the chat. The secret is shown once in this tool result. For a requested LumiBot setup, save it directly in the authorized project environment without printing it in your reply. BotSpot keeps only a fingerprint. Default preset is "lumibot_agent" (LumiBot agent), made for a LumiBot AI trading agent. Presets: "lumibot_agent" (default; for a LumiBot AI trading agent: free data such as SEC filings, insider and 13F data, news headlines and economic data, Marketplace browsing, Community reading and posting; no deploys, backtests, trades, account, broker or billing), "research" (the same data and reads, no posting), "community" (Community only) and "custom" (pick scopes). A key can never make keys or spend money. Starting bots and real-money trades still need your separate approval click on botspot.trade even with a key. Expiry is optional: the key never expires unless you pass expiresInDays (1 to 365). Free accounts can make keys. Up to 5 active keys per account. Choose a recognizable name yourself, use the default LumiBot preset, save connection.environment in the project environment or secret manager, and verify a research request. Preserve existing unrelated settings and keep the secret out of Git, logs, replies and command-line arguments. No extra CLI login is needed for an already signed-in owner session. If project file access is unavailable, explain the manual setup option.

action="list": List your BotSpot API keys

No other fields required. Lists the signed-in person's active API keys: name, first characters, permissions preset, expiry and last use. Never shows a secret.

action="rotate": Replace an API key with a new secret

Required fields: keyId. Makes a new secret with the same name, permissions and expiry, shows it once, and stops the old key immediately. Update every place that used the old key (for LumiBot: run lumibot connect botspot again).

action="revoke": Revoke an API key

Required fields: keyId. Stops an API key immediately. Anything using it loses access. This cannot be undone.

action="approve_device": Approve a LumiBot command-line login

Required fields: userCode. Approves (or denies) a login code shown by lumibot connect botspot or another BotSpot command-line tool. After approval, that tool receives a "LumiBot agent" key straight into its .env file; the key never passes through this chat. Only approve a code the person just started themselves and read to you; ask them to confirm the code before calling this.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>"
    },
    "name": "api_keys"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoA name the person will recognize, e.g. "My LumiBot agent". Used with action="create". Required for action="create".
keyIdNoThe id from api_keys(action="list"). Used with action="rotate", action="revoke". Required for action="rotate", action="revoke".
actionYesWhich operation to run: "presets", "create", "list", "rotate", "revoke", "approve_device". See the tool description for each one.
presetNoPermission preset. Default lumibot_agent. Used with action="create".
scopesNoOnly with preset "custom": the exact tool permissions. Used with action="create".
decisionNoDefault approve. Used with action="approve_device".
userCodeNoThe code shown in the terminal, e.g. BCDF-GHJK. Used with action="approve_device". Required for action="approve_device".
expiresInDaysNoOptional. Leave out for a key that never expires. Used with action="create".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only give the coarse profile (destructive=true, openWorldHint=true, non-idempotent); the description adds the operation-specific consequences that matter: the secret is shown exactly once and only a fingerprint is retained, rotate "stops the old key immediately" so every consumer must be updated, revoke "cannot be undone", and up to 5 active keys per account with no expiry unless expiresInDays is passed. It also discloses a security boundary not inferable from annotations — a key can never mint keys or spend money, and bot starts/real-money trades still need a separate approval click.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Headings keyed to each action value make it navigable, but the content is heavily duplicated: the full four-preset enumeration appears three times verbatim, "A key can never make keys or spend money" three times, and the LumiBot setup/secret-handling instructions twice. For a definition of this length that redundancy is substantial token waste an agent pays on every call.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With six actions, eight parameters and no output schema, the description still tells the agent what each action returns (a one-time secret, an environment value, or a key list of name/prefix/preset/expiry/last use) and never leaves a caller guessing about irreversibility or limits. Nothing material is missing for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, so the baseline is 3, but the description earns extra credit by giving the preset enums real meaning (what lumibot_agent, research, community and custom each grant, and what they explicitly do not grant) and by tying each field to an action. It stops short of documenting scope string syntax for preset="custom", which is the one field whose semantics remain opaque.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Each of the six operations is stated with a concrete verb and resource ("Create a BotSpot API key", "Replace an API key with a new secret", "Approve a LumiBot command-line login") under its own heading, prefixed by an explicit "Set action to choose the operation" routing sentence. An agent can pick the right action without touching the schema, and the presets-vs-create-vs-list-vs-rotate split is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Use conditions are given per action, plus an explicit exclusion for the riskiest one: "Only approve a code the person just started themselves and read to you; ask them to confirm the code before calling this." It also states a prerequisite chain (sign-in required, no extra CLI login for a signed-in owner) and a fallback ("If project file access is unavailable, explain the manual setup option"), and it routes preset discovery to action="presets" rather than guessing scopes.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.