Skip to main content
Glama
Typus-Lab

typus-perp-mcp

Official
by Typus-Lab

unstake_redeem

Unstake TLP and redeem underlying tokens in one transaction, then call claim() to receive the collateral.

Instructions

Unstake and immediately redeem TLP for underlying tokens in one transaction. ⚠️ This does NOT return tokens to your wallet directly — you must call claim() afterwards to receive the underlying collateral. Requires PRIVATE_KEY in .env.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
shareNoAmount of shares to unstake and redeem (raw integer). Omit to unstake and redeem all.
poolIndexYesLP pool index. '0' = mTLP pool, '1' = iTLP pool. Must match stakePoolIndex.
stakePoolIndexYesStake pool index. '0' = mTLP stake pool, '1' = iTLP stake pool.
Behavior4/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It explicitly warns that tokens are NOT returned directly to the wallet and that a separate claim() call is required, plus the PRIVATE_KEY prerequisite. This adds important behavioral context beyond the schema.

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 succinct with exactly two sentences and a brief warning. Every sentence provides essential information, and the most critical detail (the claim() requirement) is prominently placed.

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

Completeness4/5

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

Given the tool is a transaction with no output schema, the description adequately covers the action, the required follow-up, and the environment prerequisite. It doesn't describe return values or failure modes, but these are less critical when the schema is complete and the warning covers the main usage caveat.

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 all parameters are already documented in the schema. The description adds no additional parameter semantics beyond what the schema provides, so the baseline of 3 applies.

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 unstakes and immediately redeems TLP for underlying tokens in one transaction. The verb 'unstake and immediately redeem' is specific and the resource (TLP) is named, distinguishing this combined operation from sibling tools like unstake and redeem_tlp.

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

Usage Guidelines4/5

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

The phrase 'in one transaction' implies a combined operation versus separate calls, providing clear context. The warning that claim() must be called afterwards is a crucial usage directive, though it does not explicitly name alternative approaches or list when not to use this tool.

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/Typus-Lab/typus-perp-mcp'

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