Skip to main content
Glama

BotSpot: AI Trading, Backtests and Bots

Set strategy asset and data requirements

set_strategy_requirements
DestructiveIdempotent

Explicitly overrides the automatically analyzed assetClasses and dataRequirements metadata for this owned strategy revision only. Optionally correct aiEnabled after inspecting that exact revision; omitted classification is preserved. Use this when the user asks for an override or the saved-code analysis needs a deliberate correction. Future revisions are analyzed fresh and do not inherit this override. This updates revision database metadata only; it does not edit strategy files.

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": {
      "revisionId": "<revisionId>",
      "assetClasses": "<assetClasses>",
      "dataRequirements": "<dataRequirements>"
    },
    "name": "set_strategy_requirements"
  }
}

Input Schema

NameRequiredDescriptionDefault
aiEnabledNoExplicit classification after inspecting this exact revision: true when executable code uses AI for decisions, false for Python rules. Omit to preserve the saved classification.
revisionIdYesAiStrategyRevision.id to update
strategyIdNoStrategy.id for ownership resolution
aiStrategyIdNoAiStrategy.id for ownership resolution
assetClassesYesAsset classes the strategy actually trades.
dataRequirementsYesAsset classes whose market data the strategy reads.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / assetClasses / items / enum
      Previous value: -[
      -  "stocks",
      -  "options",
      -  "crypto",
      -  "futures",
      -  "indexes"
      -]New value: +[
      +  "stocks",
      +  "options",
      +  "crypto",
      +  "futures",
      +  "indexes",
      +  "prediction_contract"
      +]
  2. Changed1 schema field changed
    • addedInput schema / properties / aiEnabled
      Added value: +{
      +  "description": "Explicit classification after inspecting this exact revision: true when executable code uses AI for decisions, false for Python rules. Omit to preserve the saved classification.",
      +  "type": "boolean"
      +}
  3. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description adds information they cannot convey: the override applies to one revision only, future revisions are analyzed fresh and do not inherit it, omitted classification is preserved, and no strategy files are touched. That resolves the likely worry raised by a destructive flag and explains exactly what is overwritten versus preserved.

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 override scope is front-loaded in the first sentence and each following clause carries distinct value (optional correction, trigger condition, non-inheritance, file safety). The aiEnabled caveat is a slightly dense clause, but nothing is padding.

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 parameters, full schema description coverage, and no output schema, the definition covers everything an agent needs: scope, persistence, side effects, and how to treat optional fields. The 'metadata only, not files' note closes the one ambiguity a destructive mutation would otherwise leave.

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 still adds meaning: aiEnabled is framed as an optional correction to be made only after inspecting that exact revision, and omission preserves the saved classification. The assetClasses/dataRequirements pair is clarified as what the strategy actually trades versus what market data it reads, which the schema descriptions only partly capture.

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

Purpose4/5

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

The description states a specific verb and resource: it 'explicitly overrides the automatically analyzed assetClasses and dataRequirements metadata for this owned strategy revision only.' That is far more informative than the name alone, and the closing line ('updates revision database metadata only; it does not edit strategy files') bounds the operation. It stops short of a 5 because it never names the neighboring tool (set_strategy_revision) it is meant to be distinguished from.

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 gives an explicit trigger condition: 'Use this when the user asks for an override or the saved-code analysis needs a deliberate correction,' and notes the optional aiEnabled correction should come 'after inspecting that exact revision.' What is missing is a negative case or a named alternative for when a full revision update is the right call instead.

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.