Skip to main content
Glama

SoFinance

submit_open_position

Destructive

Submit a signed open-position transaction. Re-verifies HMAC permit, re-reads pool/balances, re-simulates (sigVerify true, including the NFT-mint partial signature), then broadcasts. Pass signedTransaction plus permit, wallet, and the complete summary from prepare_open_position, unchanged. If the wallet rewrote the message (Phantom Lighthouse / ComputeBudget), also pass unsignedTransaction from prepare. Returns signature and the new positionMint.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "signedTransaction": "<signedTransaction>",
      "permit": "<permit>",
      "wallet": "<wallet>",
      "summary": "<summary>"
    },
    "name": "submit_open_position"
  }
}

Input Schema

NameRequiredDescriptionDefault
permitYesHMAC permit from prepare_open_position
walletYesWallet public key
summaryYesComplete summary object from prepare_open_position, unchanged (bound by the permit)
signedTransactionYesBase64-encoded signed transaction
unsignedTransactionNoBase64 prepared transaction from prepare_open_position. Pass this when the wallet rewrote the message (Phantom Lighthouse / ComputeBudget).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructive=true, openWorldHint=true and idempotentHint=false, but the description adds real behavior the annotations cannot convey: the server re-verifies the HMAC permit, re-reads pool/balances, re-simulates with sigVerify true including the NFT-mint partial signature, and only then broadcasts. It also discloses the return values (signature and new positionMint), which matters for a non-idempotent, irreversible operation.

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?

Four short sentences, front-loaded with purpose, then input rules, then the conditional edge case, then the return. No filler and nothing repeated from the schema verbatim without adding context.

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

Completeness5/5

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

For a destructive, open-world mutation with a nested summary object and no output schema, the description covers what the tool does internally, exactly what to pass and where it comes from, the wallet-rewrite edge case, and what comes back. An agent has everything needed to invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning: the summary must be passed unchanged and is bound by the permit, and unsignedTransaction is only needed when the wallet rewrote the message. This conditional dependency is the kind of guidance the schema alone states only tersely.

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 a specific verb and resource ("Submit a signed open-position transaction") and immediately distinguishes itself from the sibling prepare_open_position by describing the post-preparation lifecycle (verify, re-read, re-simulate, broadcast). An agent can tell this apart from prepare_open_position and quote_open_position without opening any schema.

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?

Usage is clear: this is the step after prepare_open_position, and the inputs must come from that call ("complete summary from prepare_open_position, unchanged"). It also gives a concrete conditional for the optional parameter (wallet rewrote the message via Phantom Lighthouse / ComputeBudget). It stops short of explicit exclusions or failure handling, so not a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources