Skip to main content
Glama

propose_hyperliquid_perp_close

Propose closing a Hyperliquid perp position (reduce-only). Omit size to close the whole position. Returns a proposalId for confirm_proposal.

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": {
      "walletId": "<walletId>",
      "symbol": "<symbol>"
    },
    "name": "propose_hyperliquid_perp_close"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNoOptional; omit to close all
symbolYes
walletIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description does disclose two important behaviors: the order is reduce-only (so it cannot flip or increase exposure) and the action is two-step, requiring confirm_proposal on the returned id. It omits risk-relevant behavior an agent needs for a trading mutation — order type/price handling, permissions or allowance checks, and what happens if size exceeds the position.

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?

Three short sentences, front-loaded with the action and its constraint, then the parameter hint, then the return contract. No filler; only minor compaction (merging the size note into the first sentence) would improve it.

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

Completeness3/5

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

For a mutation tool with no annotations and no output schema, the description covers the core flow (propose → confirm), the reduce-only guarantee, and the size default, which is the essential minimum. It is still thin on symbol format, walletId expectations, and failure/precondition behavior in an execution path where mistakes are costly.

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 coverage is only 33%: symbol and walletId are bare strings with no description anywhere. The description's one parameter statement ('Omit size to close the whole position') merely restates the schema's own size description, so it does not compensate for the undocumented symbol/walletId semantics.

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 (propose closing) plus resource (Hyperliquid perp position) with a scope qualifier (reduce-only), which cleanly separates it from propose_hyperliquid_perp_open and propose_hyperliquid_perp_modify without needing to name them.

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?

'Omit size to close the whole position' gives real usage guidance for the partial-vs-full case, and 'Returns a proposalId for confirm_proposal' implies the follow-up step. However, it never says when to prefer this over propose_hyperliquid_perp_modify or cancel_hyperliquid_orders, nor any preconditions (position must exist, allowance required).

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.

Resources