Skip to main content
Glama

BotSpot: AI Trading, Backtests and Bots

Publish a strategy to the public marketplace

publish_to_marketplace
DestructiveIdempotent

Publishes a strategy to the public marketplace where users can discover it. A new listing needs a running or scheduled bot (paper is fine); without one it returns listed=false and the next step: offer to start a bot, then publish again. Marketplace listing status is the public contract; bot deployments remain private. Publishing automatically preserves or derives valid scheduleMetadata on the published revision so cloners start on the intended schedule instead of defaulting to 24/7. Tags can be set for categorization (holdingPeriod, riskLevel, plan tier). Free and paid monthly listings are supported. Paid listings force code protection. If already published, updates and returns the existing listing. For private 1:1 sharing, use strategy_share_link(action="create") instead.

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": {
      "strategyId": "<strategyId>"
    },
    "name": "publish_to_marketplace"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoCategorization tags for the listing
accountIdNoExact owned proof account; paper and real use separate listings.
backtestIdNoExact owned successful headline backtest. Reuse the current published ID to preserve its statistics; a different run must cover at least 180 days.
strategyIdYesThe Strategy entity ID (required)
protectCodeNoHide strategy code. Paid monthly listings always force this true.
pricingModelNoMarketplace pricing. Default free.
priceCurrencyNoISO currency code. Default usd.
priceAmountCentsNoMonthly price in cents. Required for pricingModel=monthly.
allowHoldingsViewNoWhether public listing viewers can see positions. Omit to use the default: shown on a first publish.
allowPerformanceViewNoWhether public listing viewers can see performance history. Omit to use the default: shown on a first publish.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / allowHoldingsView / description
      Previous value: -"Whether public listing viewers can see holdings."New value: +"Whether public listing viewers can see positions. Omit to use the default: shown on a first publish."
    • addedInput schema / properties / allowPerformanceView
      Added value: +{
      +  "description": "Whether public listing viewers can see performance history. Omit to use the default: shown on a first publish.",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / backtestId
      Added value: +{
      +  "description": "Exact owned successful headline backtest. Reuse the current published ID to preserve its statistics; a different run must cover at least 180 days.",
      +  "format": "uuid",
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=true, idempotentHint=true, openWorldHint=true), the description discloses the failure mode and return signal (listed=false with a suggested next step), the idempotent update-existing-listing behavior, the public/private boundary between listing status and bot deployments, and that paid listings force code protection. It also explains a side effect the schema cannot express: scheduleMetadata is preserved or derived on the published revision.

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?

Purpose and the bot precondition are front-loaded, followed by listing options and then the sibling alternative, so the ordering serves an agent's decision flow. It is dense and slightly overpacked in the middle sentences (scheduleMetadata, pricing, code protection) but no sentence is filler.

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?

For a 10-parameter destructive mutation with no output schema, the description supplies what is missing: the success/failure signal, the already-published case, and what becomes publicly visible. An agent has enough to decide, call, and explain the outcome to a user.

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 coverage is 100% and each parameter already carries its own description, so the schema does the heavy lifting and a 3 is the baseline. The description reinforces a few rules (tags categories, free vs paid monthly, forced code protection) but adds no format or syntax detail that the schema does not already contain, and it says nothing about accountId/backtestId selection.

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 ('Publishes a strategy to the public marketplace') plus the user-facing effect ('where users can discover it'). It also explicitly distinguishes itself from the sibling strategy_share_link, so an agent can route correctly without opening 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 Guidelines5/5

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

Gives an explicit precondition (a running or scheduled bot, paper accepted), a remediation path when the precondition fails ('offer to start a bot, then publish again'), and a named alternative with its action argument ('For private 1:1 sharing, use strategy_share_link(action="create")'). Both when-to-use and when-not-to-use are covered.

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.