Skip to main content
Glama

Publish strategy

publish_strategy

Answers 'publish this backtest as a public, reproducible strategy page.' Give a spec (same format as run_backtest), a title (1-120 characters) and your hypothesis (what would falsify it); visibility public or private. Returns the new strategy's slug and page URL. Runs the backtest on the server and publishes it at data.finzdata.com/s/, forward-tracked daily from today; only server-computed results are stored. Costs one backtest; free accounts may publish 3 a day. Free keys publish over the last 12 months; full history with a FinzData plan.

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": {
      "spec": "<spec>",
      "title": "<title>"
    },
    "name": "publish_strategy"
  }
}

Input Schema

NameRequiredDescriptionDefault
specYesBacktest spec (see run_backtest).
as_ofNoPoint-in-time cutoff (YYYY-MM-DD). Nothing dated after this is returned, preventing look-ahead bias. Defaults to today (UTC).
titleYes1-120 characters.
visibilityNo
descriptionNoHypothesis: why it should work and what would falsify it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations, it discloses that the backtest is executed server-side, only server-computed results are stored, the page is forward-tracked daily from today, and publishing consumes one backtest credit with a daily cap. These are non-obvious cost, provenance, and side-effect facts an agent needs before calling a non-idempotent write operation.

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 purpose and core inputs are front-loaded in the first sentence, with cost and quota details following. It is dense but each clause carries information; the pricing/closing sentence is slightly packed but still relevant.

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?

With no output schema, the description correctly states the return value (slug and page URL) and covers the important operational facts (server-side execution, forward tracking, quota, history limits). Only minor gaps remain, such as the as_of point-in-time behavior, which the schema already handles.

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 already 80%, with title length, visibility enum, as_of semantics, and the hypothesis field documented in the schema. The description mostly restates title length and the hypothesis/visibility meaning, and never mentions as_of, so it adds limited value over the structured fields.

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 names a specific verb and resource (publish a backtest as a public, reproducible strategy page) and ties the input spec to run_backtest, which clearly separates it from siblings like register_strategy, fork_strategy, or plain run_backtest.

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 concrete preconditions and constraints: spec must match run_backtest's format, a quota of 3 publishes/day for free accounts, and a 12-month history limit for free keys. It does not explicitly contrast with sibling tools such as register_strategy or fork_strategy, so routing is only partially addressed.

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.