Skip to main content
Glama
@segnals/mcp

@segnals/mcp

by eidostein

segnals_explain_config

Review a trading bot's configuration for risk before starting it, returning the config plus warnings for martingale, leverage above 10x, and a missing or zero stop-loss.

Instructions

Review a bot's current configuration for risk. Returns the config together with warnings for three settings: martingale enabled (MARTINGALE.ENABLED), leverage above 10x (TRADING_PARAMS.LEVERAGE), and a stop-loss that is missing or 0 (STOP_LOSS.VALUE_PCT). Use this to review a bot's setup before starting it. Requires scope: read:bots. Example: segnals_explain_config({ bot_id: 42 })

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_explain_config"
  }
}

Input Schema

NameRequiredDescriptionDefault
bot_idYesThe ID of the bot to explain
accountNoThe account to act on. Optional: this program holds one account, "default".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 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
  2. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the disclosure burden and does it well: it declares the return payload (config + warnings), the exact thresholds that trigger each warning (martingale enabled, leverage above 10x, stop-loss missing or 0), and the required auth scope read:bots. It stops short of confirming the call is non-mutating and advisory only, and says nothing about error behavior for an unknown bot_id.

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

Conciseness4/5

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

The text is front-loaded with purpose and return contents, then moves to usage, auth, and an example – a sensible order with no filler. The trailing example is marginally redundant given full schema coverage but is short and confirms argument shape.

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?

This is a simple two-parameter read tool with no output schema, so the description must describe the return value itself, and it does so concretely by naming both the config and the three warning conditions. Nothing essential is missing for correct invocation; only the read-only/advisory nature and failure modes are left implicit.

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

Parameters3/5

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

Schema description coverage is 100%, so both bot_id and the optional account field are already documented in the schema. The description only reinforces bot_id via the example call; it adds no meaning about the account parameter or about what an invalid or foreign bot_id yields. Baseline 3 is appropriate.

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?

The description gives a specific verb and resource ("Review a bot's current configuration for risk") and then enumerates exactly what the review produces: the config plus warnings on three named settings with their field paths (MARTINGALE.ENABLED, TRADING_PARAMS.LEVERAGE, STOP_LOSS.VALUE_PCT). This distinguishes it from a plain config fetch such as segnals_get_bot without the agent needing to open either schema.

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

Usage Guidelines4/5

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

It states a clear use context: "Use this to review a bot's setup before starting it." That is a concrete when-to-use trigger. It does not name a when-not condition or point to a sibling alternative (e.g. when a full config dump without risk flags is wanted), so it falls short of the 5 bar.

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