Skip to main content
Glama
schoeffeljp

deribit-mcp

by schoeffeljp

close_position

Close an existing position entirely with a market or limit order. Specify instrument and optionally price to flatten the position.

Instructions

Close an existing position entirely. Places a market or limit order to flatten the position.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeYesOrder type for closing
priceNoLimit price (required if type is 'limit')
instrument_nameYesInstrument name of the position to close

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose that the tool submits a market or limit order rather than directly modifying a position. But it omits order lifecycle details such as whether a limit order can remain open, what happens if the position does not exist, and whether a confirmation or order ID is returned.

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?

Two concise sentences with no filler; the core action is front-loaded and the mechanism is stated immediately. Every sentence earns its place.

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?

Given the low parameter complexity and complete schema, the description is mostly adequate for invoking the call. However, with no output schema and no annotations, it would benefit from stating what the response contains and any order lifecycle caveats, especially for limit orders.

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 schema already documents instrument_name, type, and price. The description adds minimal value beyond confirming that type can be market or limit and that the goal is flattening, which maps to existing schema fields. Baseline 3 is 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?

States exact verb (close), resource (existing position), scope (entirely), and mechanism (places market/limit order to flatten). This clearly distinguishes it from siblings like buy/sell, cancel_order, and get_positions.

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?

The description implies when to use it: when an existing position needs to be flattened entirely. However, it does not explicitly say when not to use it, such as for partial closes or routine buy/sell orders, and it names no alternative tools, leaving some routing to inference.

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

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/schoeffeljp/deribit-mcp'

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