Skip to main content
Glama

Polyrank AI Lab: edit a strategy

polyrank_update_strategy
Idempotent

Writes to the user's AI Lab: ask the user before calling, then pass confirm: true. Rename a saved strategy and/or replace its strategy spec (a changed spec makes it a draft again: its earlier backtests stay, tested on the old rules). The server validates the spec and answers with the reason when it refuses. Needs a signed-in Polyrank account on a plan with the AI Lab (every paid plan, from Pro Trader: https://polyrank.app/pricing).

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": {
      "id": "<id>",
      "confirm": "<confirm>"
    },
    "name": "polyrank_update_strategy"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
nameNo
specNo
confirmYesRequired: true, and only after the user agreed to this call in the conversation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / confirm
      Added value: +{
      +  "const": true,
      +  "description": "Required: true, and only after the user agreed to this call in the conversation.",
      +  "type": "boolean"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "id"
      -]New value: +[
      +  "id",
      +  "confirm"
      +]
  2. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Goes well past the annotations by disclosing a non-obvious side effect: a changed spec reverts the strategy to draft while earlier backtests remain and stay tied to the old rules. It also states that the server validates the spec and returns a refusal reason, and specifies account/plan prerequisites (every paid plan from Pro Trader), which the annotations do not convey.

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?

Front-loads the consent requirement, then behavior, then prerequisites — a sensible order with no filler sentences. It is dense to the point of being clause-heavy (nested parentheticals, URL inline), which costs a little readability.

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?

For a mutation tool with no output schema, it covers consent, side effects, validation failure behavior, and plan gating. The only real gap is what a successful response contains (e.g., updated strategy object vs. acknowledgement), which an agent might want before chaining calls.

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 only 25% (only `confirm` is described), so the description must compensate — and it does for the hardest parameter, explaining that a `spec` change downgrades the strategy to draft and that `name` is a rename. The `id` parameter is left unexplained and `confirm` is partly restated from the schema, keeping it below a 5.

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?

"Rename a saved strategy and/or replace its strategy spec" gives a specific verb (rename/replace) and resource (saved strategy), and "Writes to the user's AI Lab" scopes it to a mutation on an existing object. An agent can distinguish it from create/get siblings by the "saved strategy" phrasing, though no sibling is named explicitly.

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?

Strong precondition guidance: "ask the user before calling, then pass confirm: true" tells the agent exactly what must happen in the conversation first. It does not explicitly state when to prefer this over polyrank_create_strategy or when a rename-only vs spec-replace call is appropriate, so it stops short of full when/when-not coverage.

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.