Skip to main content
Glama
hamzafaiz17

TradeZylo MCP Server

by hamzafaiz17

get_edge_by_direction

Compare long versus short trade performance—win rate, average PnL, profit factor, and count—to detect directional bias or weakness.

Instructions

[DIRECTIONAL BIAS: LONG VS SHORT ONLY] Compare LONG (Buy) trade performance versus SHORT (Sell) trade performance: win rate, average PnL, profit factor, and total count for each direction. Detects if you have a directional bias problem.

Best for: Comparing buys vs sells, longs vs shorts, or diagnosing directional asymmetry. NOT for: Comparing asset classes (use get_edge_by_market instead!).

Example questions:

  • "Are my long trades performing better than my short trades?"

  • "Meri long trades short se better perform kar rahi hain kya?"

  • "Do I have a directional bias or weakness on shorts?"

  • "Compare my buy vs sell win rate and profit factor"

  • "Am I losing money on short positions?"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountNoAccount name (e.g. "FTMO 2 Step", "01") or account ID to filter by
date_toNoISO date YYYY-MM-DD — end of analysis window
date_fromNoISO date YYYY-MM-DD — start of analysis window
account_idNoLimit analysis to a specific account ID directly
market_typeNoFilter by market: FOREX, CRYPTO, STOCKS, FUTURES

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral-disclosure burden. It does explain the analytical outputs and bias-detection purpose, but it does not explicitly state that the tool is read-only, whether it has side effects, or how data scope defaults are handled.

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?

The description is front-loaded with scope and metrics, then structured into Best for, NOT for, and examples. The example block is somewhat long with five examples, but it is still useful for query matching and does not bury the core purpose.

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?

Given no output schema and no annotations, the description lists the key returned metrics and the analytical purpose, which is enough for an agent to understand what the tool returns. It is slightly incomplete on default date/account behavior and exact response shape, but the parameter schema covers filtering inputs.

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?

Schema description coverage is 100%, so the five parameters are fully documented in the schema. The description adds no parameter-level meaning beyond what the schema already provides, making the baseline score of 3 appropriate.

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?

The description states a specific comparison task: LONG vs SHORT trade performance, with named metrics (win rate, average PnL, profit factor, total count). It also explicitly distinguishes itself from a sibling by saying it is long/short only and not for asset-class comparisons.

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

Usage Guidelines5/5

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

It gives explicit 'Best for' guidance, an explicit 'NOT for' exclusion, and names the alternative tool to use instead: get_edge_by_market. The example questions further anchor when to select this tool.

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