Skip to main content
Glama
Pariflow Agent MCP

Pariflow Agent MCP

Preview Perpetual Order

preview_perp_order
Read-onlyIdempotent

Simulate a perpetual futures order before placement to view estimated fill price, required margin, liquidation price, and fee.

Instructions

Preview a perpetual futures order (estimated fill price, required margin, est liquidation price, fee).

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": {
      "symbol": "<symbol>",
      "side": "<side>",
      "size": "<size>",
      "leverage": "<leverage>"
    },
    "name": "preview_perp_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
sideYes
sizeYes
symbolYes
leverageYes
accountModeNoDEMO

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint, so the safety profile is covered. The description adds value by listing the four computed values the preview returns, but it never states explicitly that no order is submitted and says nothing about market-data freshness or failure modes when the preview is unavailable.

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?

One front-loaded sentence with no filler; the resource is named first and the output list is packed into a compact parenthetical. It is tight, though the density of the parenthetical costs a little readability.

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

Completeness2/5

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

For a five-parameter tool with no output schema and no parameter documentation, the definition is too thin: the leverage range, side enum casing, and the DEMO-default accountMode all go unmentioned, and the shape of the preview response is only hinted at. An agent could call it, but not confidently or correctly on the first try without opening the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across five parameters, so the description carries the full burden and does not mention symbol, side, size, leverage, or accountMode at all. The parenthetical list describes return values, not inputs, so nothing is added beyond the bare schema.

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?

States a specific verb ('Preview') plus resource ('perpetual futures order') and enumerates the computed outputs (fill price, margin, liquidation price, fee), so the agent knows exactly what it gets back. It does not explicitly contrast itself with place_perp_order or preview_trade, so sibling differentiation is left to inference from the word 'preview'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: 'preview' suggests a dry run before submitting an order, but the description never says when to use this instead of place_perp_order or preview_trade, nor any prerequisites. There are no exclusions or alternative routing, so the agent must infer the workflow.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.