Skip to main content
Glama
Gainium

Gainium

Official

manage_deal

Destructive

Close a deal, add funds, or reduce funds by specifying action, deal ID, and optional parameters. Supports DCA, combo, and terminal deal types.

Instructions

Manage deal operations: close a deal, add funds, or reduce funds. Each action has specific requirements.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesAction to perform on the deal
dealIdYesDeal identifier. Accepts EITHER the deal's 24-character hex MongoDB ObjectId (e.g. "65f000000000000000000001") OR the deal's UUID. Either form resolves to the same deal — use whichever the deal record exposes. Get both from list_deals (the `_id` and `uuid` fields).
dealTypeYesDeal type
paperContextNoPaper trading context (true = paper, false = real). Default: false
closeTypeNoClose type for close action
botIdNoBot ID for addFunds/reduceFunds (alternative to dealId for dca/combo)
qtyNoAmount to add/reduce. With type="fixed" it is an amount in the chosen asset denomination; with type="perc" it is a percentage of the position.
typeNoType: fixed amount or percentage
assetNoDenomination for a fixed add/reduce — "quote" (e.g. USDT) or "base" (the coin). Required when type="fixed"; this is NOT a ticker symbol. Ignored when type="perc".
symbolNoSymbol override (optional)
Behavior3/5

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

Annotations already indicate destructiveHint=true and readOnlyHint=false, so the description's listing of mutating actions is consistent. However, it adds no extra behavioral context beyond what annotations convey, such as irreversible effects or authorization needs.

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 extremely concise—one sentence plus a short phrase—and front-loads the core purpose. Every word earns its place with no redundancy.

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?

Despite 100% schema coverage, the tool has 10 parameters and three distinct actions with conditional dependencies. The description does not summarize these relationships or provide a high-level overview of when each action applies, making it insufficient for a complex tool.

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%, meaning all parameters are documented in the schema. The tool description adds no additional meaning beyond what the schema already provides, so 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?

The description clearly states the tool manages deal operations with three specific actions: close, add funds, or reduce funds. This distinguishes it from siblings like create_deal or update_deal.

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?

The description says 'Each action has specific requirements' but provides no guidance on when to use this tool vs alternatives like manage_bot or update_deal. No explicit context or exclusions are given.

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/Gainium/gainium-mcp'

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