Skip to main content
Glama
blofin

blofin-mcp

Official
by blofin

place_tpsl

Place take-profit or stop-loss orders for an existing position. Requires instrument, margin mode, position side, order side, and size. Provide at least one trigger price.

Instructions

Place take-profit/stop-loss order for a position. Either tpTriggerPrice or slTriggerPrice (or both) must be provided.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
instIdYesInstrument ID, e.g. BTC-USDT
marginModeYesMargin mode: cross or isolated
positionSideYesPosition side: net (One-way Mode), long or short (Hedge Mode). Must be sent in Hedge Mode.
sideYesOrder side: buy or sell
tpTriggerPriceNoTake-profit trigger price. If provided, tpOrderPrice should also be filled. Either tpTriggerPrice or slTriggerPrice must be provided.
tpOrderPriceNoTake-profit order price. If provided, tpTriggerPrice should also be filled. -1 for market price.
slTriggerPriceNoStop-loss trigger price. If provided, slOrderPrice should also be filled. Either tpTriggerPrice or slTriggerPrice must be provided.
slOrderPriceNoStop-loss order price. If provided, slTriggerPrice should also be filled. -1 for market price.
sizeYesQuantity in contracts. -1 for entire position.
reduceOnlyNoWhether orders can only reduce position size: 'true' or 'false'. Default 'false'. When true and opposite order exceeds position size, position is fully closed without opening a new one.
clientOrderIdNoClient Order ID. Up to 32 case-sensitive alphanumeric characters.
brokerIdNoBroker ID provided by BloFin. Up to 16 case-sensitive alphanumeric characters.
Behavior2/5

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

No annotations are present, so the description carries full burden. It mentions the required trigger prices but omits behavioral details such as whether it modifies existing TPSL orders, ordering guarantees, or error scenarios. The description is too sparse for a mutation tool with 12 parameters.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the purpose and key constraint. No redundant or extraneous content.

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?

Given 12 parameters, 5 required, no output schema, and no annotations, the description is inadequate. It does not explain return values, error handling, or behavior when both tp and sl are set. A more complete description is needed for safe and effective use.

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 baseline is 3. The description adds no new meaning beyond what the schema already provides (e.g., the constraint on tpTriggerPrice/slTriggerPrice is already in the schema). Hence no additional value.

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 clearly states the verb 'Place' and resource 'take-profit/stop-loss order', and highlights the critical constraint that either trigger price must be provided. It effectively distinguishes from sibling tools like 'place_order' and 'place_algo_order' by specifying it's for TPSL orders.

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

Usage Guidelines2/5

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

No explicit guidance on when to use this tool versus alternatives. Sibling tools include many order types, but the description does not differentiate contexts or exclusions, leaving the agent to infer usage from the tool name alone.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/blofin/blofin-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server