Skip to main content
Glama
alsk1992
by alsk1992

Prepare Strata TWAP cancellation

strata_twap_cancel
Destructive

Get external-signing bytes to cancel an active TWAP order on Strata by providing market ID, owner wallet, session public key, and TWAP ID.

Instructions

Request exact external-signing bytes to cancel one active owned TWAP.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
twapIdYes
marketIdYes
ownerWalletYes
sessionPublicKeyYes
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false. The description adds that the tool requests external-signing bytes, indicating this is a preparation step rather than the actual cancellation, and specifies the TWAP must be 'active owned'. This provides useful context beyond the annotations without contradicting them.

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 a single, clear sentence that front-loads the core action. It wastes no words and is appropriately sized for the information it conveys.

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?

With no output schema and four required parameters, the description should explain the expected return (the signing bytes), the complete flow (prepare → sign → submit), and any prerequisites. It only mentions 'active owned TWAP' and the request for bytes, leaving significant gaps about how to use the tool and what happens next.

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?

The schema has zero description coverage, and the description only hints at the parameters ('active owned TWAP') without explaining each required field (marketId, ownerWallet, sessionPublicKey, twapId). It does not compensate for the lack of schema descriptions by clarifying parameter purposes or relationships.

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 action (request external-signing bytes), the resource (TWAP), and the scope (cancel one active owned TWAP). It distinguishes from sibling tools like strata_twap_prepare (creation) and strata_twap_submit (submission) by explicitly focusing on cancellation.

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 usage for cancellation and mentions 'active owned TWAP', but does not explicitly contrast with alternatives like strata_twap_prepare or strata_twap_submit, nor does it explain the multi-step flow or when to invoke this tool versus the others. It provides some context but lacks clear exclusions or prerequisites.

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/alsk1992/strata-mcp'

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