Skip to main content
Glama

Publish a report to the public website

save_strategy
DestructiveIdempotent

PUBLIC: anyone can see the saved page. Publish a completed report to the public website after the user asks to save it. Use the reportId returned by report, a public slug, and client-authored page and presentation choices. Never submit or invent result numbers. Adds it to the strategy directory without rerunning the strategy. Existing slugs require expectedKey to replace a different result. setAsHome changes the home page only when explicitly requested.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "save_strategy"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties
      Removed value: -{
      -  "expectedKey": {
      -    "description": "Current published key, required only when replacing a different saved result at this slug.",
      -    "pattern": "^reports\\/[a-f0-9]{64}\\.json$",
      -    "type": "string"
      -  },
      -  "id": {
      -    "description": "Public page slug. New slugs add a page; existing slugs require expectedKey to replace.",
      -    "pattern": "^[a-z][a-z0-9-]{0,63}$",
      -    "type": "string"
      -  },
      -  "page": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "category": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "description": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "exit": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "headline": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "signal": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "title": {
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "title",
      -      "description",
      -      "category"
      -    ],
      -    "type": "object"
      -  },
      -  "presentation": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "chartSeries": {
      -        "description": "Additional price-panel plots. Reference named engine report series. Set a legend label, line or bar type, line pattern, and optional hex color.",
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "color": {
      -              "pattern": "^#[0-9a-fA-F]{6}$",
      -              "type": "string"
      -            },
      -            "label": {
      -              "maxLength": 80,
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "seriesId": {
      -              "maxLength": 100,
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "style": {
      -              "default": "solid",
      -              "enum": [
      -                "solid",
      -                "dashed",
      -                "dotted"
      -              ],
      -              "type": "string"
      -            },
      -            "type": {
      -              "default": "line",
      -              "enum": [
      -                "line",
      -                "bar"
      -              ],
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "seriesId"
      -          ],
      -          "type": "object"
      -        },
      -        "maxItems": 12,
      -        "type": "array"
      -      },
      -      "company": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "mainTicker": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "scoreSeries": {
      -        "anyOf": [
      -          {
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "sections": {
      -        "items": {
      -          "enum": [
      -            "rule",
      -            "performance",
      -            "equity",
      -            "widget"
      -          ],
      -          "type": "string"
      -        },
      -        "maxItems": 4,
      -        "type": "array"
      -      },
      -      "stats": {
      -        "items": {
      -          "enum": [
      -            "period",
      -            "tradeCount",
      -            "fillCount",
      -            "finalValue",
      -            "returnPct",
      -            "maxDrawdownPct",
      -            "benchmarkFinalValue",
      -            "returnVsSpyPct",
      -            "winRatePct"
      -          ],
      -          "type": "string"
      -        },
      -        "maxItems": 9,
      -        "type": "array"
      -      },
      -      "strategyExplanation": {
      -        "description": "In 1 to 3 plain sentences, explain what the strategy trades, what triggers buys and sells or rebalancing, and one key assumption when relevant. Use the run rules. Leave historical results for the report.",
      -        "maxLength": 600,
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "mainTicker",
      -      "company",
      -      "stats",
      -      "strategyExplanation",
      -      "sections"
      -    ],
      -    "type": "object"
      -  },
      -  "reportId": {
      -    "description": "The reportId returned by report. Do not submit prices, trades, or statistics.",
      -    "pattern": "^[a-f0-9]{64}$",
      -    "type": "string"
      -  },
      -  "setAsHome": {
      -    "default": false,
      -    "description": "Also select this strategy for the home page. Otherwise preserve the current home strategy.",
      -    "type": "boolean"
      -  }
      -}
    • removedInput schema / required
      Removed value: -[
      -  "reportId",
      -  "id",
      -  "presentation",
      -  "page"
      -]
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

The annotations already flag a destructive, open-world, idempotent write, and the description goes beyond them by disclosing visibility ('anyone can see the saved page'), that the strategy is not rerun, and that an existing slug can be overwritten only when expectedKey matches a different result. That is exactly the kind of consequence detail a destructive write needs. It does not describe the response or failure behavior on slug conflicts.

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?

Every sentence earns its place: the visibility warning is front-loaded, prerequisites follow, then the numbered-data prohibition and the slug/setAsHome edge cases. No filler or restatement of the title.

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

Completeness3/5

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

For a destructive, open-world publish operation with no output schema, the description covers visibility, idempotency-by-slug, and the no-invented-numbers rule well. But the empty input schema means the enumerated inputs are never actually specified, so an agent still cannot construct a valid call from the definition alone.

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?

The input schema declares no properties, so the description carries the full burden and does supply meaning for reportId (must come from the report tool), slug, expectedKey, setAsHome, and the page/presentation choices. However it gives no types, requiredness, or format rules, and the referenced fields are absent from the schema, leaving the actual call shape ambiguous.

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 gives a specific verb and resource ('Publish a completed report to the public website') and opens with a scope marker ('PUBLIC: anyone can see the saved page') that separates it from a likely private-share sibling. It stops short of naming a sibling alternative directly, so the differentiation is implied rather than explicit.

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 real triggering conditions: only after the user asks to save, only with a reportId returned by the report tool, and setAsHome only when explicitly requested. It also sets a negative rule ('Never submit or invent result numbers') and a replacement precondition for existing slugs. What it lacks is a named alternative for non-public saving.

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.

Resources