Skip to main content
Glama

Polyrank AI Lab: save a strategy

polyrank_create_strategy

Writes to the user's AI Lab: ask the user before calling, then pass confirm: true. Save a strategy to your AI Lab: a name plus a strategy spec (wallet source — any Builder ranking, a history ranking, a static wallet list or a copy-engine sleeve — and market, entry, sizing and exit rules), or a template_id to copy a template. 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": {
      "name": "<name>",
      "confirm": "<confirm>"
    },
    "name": "polyrank_create_strategy"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
specNoA strategy spec (see polyrank_list_lab_templates).
confirmYesRequired: true, and only after the user agreed to this call in the conversation.
template_idNo

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: -[
      -  "name"
      -]New value: +[
      +  "name",
      +  "confirm"
      +]
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only mark this as a non-read-only, non-destructive, non-idempotent write. The description adds materially more: mandatory user consent gate, signed-in account plus paid-plan requirement with a pricing link, server-side spec validation, and error behavior ('answers with the reason when it refuses').

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 most decision-relevant fact — ask the user first, then confirm: true — before the mechanics. Dense but every clause carries information; the pricing URL and plan enumeration add slight bulk but justify the access gate.

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 non-idempotent write with a nested free-form spec object and no output schema, the definition covers consent, authentication, plan entitlement, input shapes and error reporting. What the response contains on success (e.g., the new strategy's identifier) is left unstated, though the refusal path is described.

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 50%, so the description carries real weight: it decomposes 'spec' into wallet source (ranking, history ranking, static list, copy-engine sleeve) plus market, entry, sizing and exit rules, and explains template_id as a copy source. The name and template_id fields still lack detail (length/format, mutual exclusivity with spec), leaving some ambiguity.

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 ('Save a strategy to your AI Lab') and enumerates the two creation modes — an inline strategy spec or a template_id copy. An agent can immediately tell this apart from sibling polyrank_update_strategy or polyrank_get_strategy without opening the schema.

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?

Gives an explicit precondition and sequencing rule: 'ask the user before calling, then pass confirm: true', and clarifies the two alternative input paths (spec vs template_id). It does not explicitly route the agent to polyrank_update_strategy for modifying an existing strategy, which is the only gap.

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.