Skip to main content
Glama

Submit new position

lp_open_submit
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 lp_open_prepare, 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": "lp_open_submit"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only say the call is destructive, non-idempotent, and open-world. The description adds real substance beyond that: it re-verifies the HMAC permit, re-reads pool/balances, re-simulates with sigVerify true including the NFT-mint partial signature, and then broadcasts. It also discloses what comes back ('signature and the new positionMint'), which annotations cannot convey.

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 sentences, all load-bearing: action first, then the validation pipeline, then the argument contract, then the conditional case, then return values. There is no filler or restatement of the title.

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, non-idempotent transaction submitter with no output schema, the definition covers preconditions (permit re-verification), required inputs and the one conditional input, and the return payload. Nothing an agent needs to call it correctly is missing.

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 defines every parameter, including the Phantom/ComputeBudget conditional for unsignedTransaction. The description mostly restates those same constraints ('unchanged', 'from lp_open_prepare') rather than adding new semantics such as format expectations or failure behavior when the summary no longer matches the pool state; baseline 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 opens with a specific verb and resource: 'Submit a signed open-position transaction.' It also names the exact upstream counterpart by requiring 'the complete summary from lp_open_prepare', so an agent can separate this from lp_open_prepare, lp_open_quote, and the other *_submit siblings without opening a 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?

It states the precise invocation contract (signedTransaction + permit + wallet + unchanged summary) and gives an explicit conditional branch: pass unsignedTransaction only when the wallet rewrote the message (Phantom Lighthouse / ComputeBudget). It never states the negative case or a fallback if preparation is stale, but the sequencing requirement is unambiguous from the required summary.

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