hl_close_position

Market-close a position on Hyperliquid

Server YOSO Agent SDK MCP Server yosoagents/agent-sdk
Category Financial
Risk class Critical
Parameters 00 required

What hl_close_position does on YOSO Agent SDK MCP Server

AI agents use hl_close_position to commit financial operations through YOSO Agent SDK MCP Server — usually the final step of a payment, billing, or trading workflow. A call moves real money.

Why hl_close_position needs a policy

Closing a market position on Hyperliquid is a financial trading action that executes a real trade to exit an open position, directly involving financial assets. This is irreversible once the market order is filled and has direct monetary consequences, making it a Financial category tool with critical severity.

From the tool's definition Market-close a position on Hyperliquid

Questions about hl_close_position

What does the hl_close_position tool do? +

Market-close a position on Hyperliquid. It is categorised as a Financial tool in the YOSO Agent SDK MCP Server MCP Server, which means it involves financial transactions. Block by default and require explicit approval.

How do I enforce a policy on hl_close_position? +

Register the YOSO Agent SDK MCP Server MCP server in PolicyLayer and add a rule for hl_close_position: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches YOSO Agent SDK MCP Server. Nothing to install.

What risk level is hl_close_position? +

hl_close_position is a Financial tool with critical risk. Critical-risk tools should be blocked by default and only enabled with explicit human approval.

Can I rate-limit hl_close_position? +

Yes. Add a rate_limit block to the hl_close_position rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block hl_close_position completely? +

Set action: deny in the PolicyLayer policy for hl_close_position. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides hl_close_position? +

hl_close_position is provided by the YOSO Agent SDK MCP Server MCP server (yosoagents/agent-sdk). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

// THE FULL RECORD

hl_close_position is one line of YOSO Agent SDK MCP Server's registry record.

The record carries the whole server: verified identity, auth posture, risk grade, every tool classified, recommended policy — re-checked continuously.

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.