Skip to main content
Glama
@segnals/mcp

@segnals/mcp

by eidostein

segnals_update_bot

Updates a trading bot's configuration by merging only the keys you change, with a preview-and-confirm step that flags risky settings before applying them.

Instructions

Update a bot's configuration. Requires scope: write:bots.

TWO-STEP CONFIRMATION: Call without confirm to preview changes and see risk warnings. Call with confirm: true to apply. The config is merged into the stored one, so send only the keys you change, nested as segnals_get_bot shows them, e.g. { TRADING_PARAMS: { LEVERAGE: 5 } }. The preview reads the bot (scope read:bots) to warn about the config it would hold after the update: martingale enabled, leverage above 10x, stop-loss missing or 0. IMPORTANT: Never include exchange API keys/secrets in the config — users enter those in the dashboard.

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": {
      "bot_id": "<bot_id>"
    },
    "name": "segnals_update_bot"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoNew bot name
bot_idYesBot ID to update
configNoConfiguration key-value pairs to update
accountNoThe account to act on. Optional: this program holds one account, "default".
confirmNoSet to true to execute after previewing

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.2.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / account
      Added value: +{
      +  "description": "The account to act on. Optional: this program holds one account, \"default\".",
      +  "type": "string"
      +}
    • addedInput schema / properties / bot_id / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / config / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  2. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full disclosure burden and does so: it names the write:bots scope, explains that config is merged (patch, not replace) so only changed keys should be sent, lists the concrete risk warnings the preview surfaces (martingale, leverage >10x, missing stop-loss), and warns against including exchange API keys. These are behavioral traits unavailable anywhere in the structured fields.

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

Conciseness5/5

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

Front-loaded with the operation and scope, then clearly labeled blocks for the confirmation protocol, merge semantics, preview behavior, and the API-key warning. Every sentence carries actionable information and nothing is repeated from the schema.

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

Completeness4/5

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

For a mutation tool with no annotations and no output schema, the definition covers scope, merge semantics, preview risks, and secret handling. It stops short of saying what the applying call returns or whether the preview must be repeated after changes are made, which would fully close the loop.

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 100%, so the baseline is 3, but the description adds genuinely new semantics: merge behavior for config (send only changed keys), the nesting convention tied to segnals_get_bot, a concrete example ({TRADING_PARAMS: {LEVERAGE: 5}}), and the preview-versus-apply meaning of confirm. It does not elaborate on name or account beyond what the schema says, which keeps it from a perfect score.

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?

States a specific verb and resource ("Update a bot's configuration") and immediately ties it to a required scope, which cleanly separates it from siblings like segnals_create_bot, segnals_restart_bot, or segnals_stop_bot. An agent can identify the operation and its authorization requirement without opening the schema.

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?

Explicitly prescribes the two-call protocol: call without confirm to preview, call with confirm: true to apply. It further routes the agent to segnals_get_bot for the expected config shape and states the read:bots scope the preview needs, so when/when-not guidance is complete.

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