Skip to main content
Glama

AlgoVesta MCP Trading

compile_policy

Read-onlyIdempotent

Compiles natural-language risk rules into a JSON policy and returns a PREVIEW. Activation requires separate approval: from the panel or via POST /api/mcp/policies/{policy_id}/activate.

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": {
      "natural_text": "<natural_text>"
    },
    "name": "compile_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
natural_textYesThe user's risk rules in plain language, e.g. 'never risk more than 2% per trade, max 3 open positions, no leverage above 10x, long only, BTC and ETH only'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, and the description is consistent with them by framing the result as a preview. It adds the genuinely useful fact that compilation does not activate anything and names the separate approval path, but says nothing about whether the compiled policy is persisted, who may approve, or how long a preview remains valid.

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?

Two tight sentences with the outcome front-loaded and the activation caveat immediately after; nothing is padded. The capitalized PREVIEW is a slightly odd emphasis but does useful work in flagging non-persistence.

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 single-parameter, non-destructive tool with no output schema, the description covers what it produces and what it does not do, and the activate path implies the policy is addressable by id. Minor gaps remain about the shape of the returned preview and error behavior on uncompilable text.

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?

Only one parameter exists and schema coverage is 100%, with a detailed example of the expected plain-language input in the schema itself. The description adds no further guidance on phrasing, length, or what makes a compilable rule, so the baseline 3 applies.

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 ('Compiles natural-language risk rules into a JSON policy') plus the nature of the output ('returns a PREVIEW'), which lets an agent distinguish it from simulate_policy or backtest tooling without opening a 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?

Makes the critical when/what-happens-next distinction explicit: this tool only previews, and activation requires separate approval via the panel or the activate endpoint. It does not, however, say when to reach for this versus simulate_policy as a follow-up step.

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.