Skip to main content
Glama

Submit withdrawal

lp_withdraw_submit
Destructive

Submit a wallet signed withdrawal. Verifies its HMAC permit and signature, checks expiry, and re-simulates before broadcast. Supply the unchanged summary and permit from lp_withdraw_prepare. If the wallet appended extra instructions (e.g. Phantom Lighthouse), also pass unsignedTransaction from lp_withdraw_prepare. High impact requires confirmHighImpact=true.

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": {
      "wallet": "<wallet>",
      "signedTransaction": "<signedTransaction>",
      "permit": "<permit>",
      "summary": "<summary>"
    },
    "name": "lp_withdraw_submit"
  }
}

Input Schema

NameRequiredDescriptionDefault
permitYes
walletYes
summaryYes
confirmHighImpactNo
signedTransactionYes
unsignedTransactionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare destructive, non-idempotent, open-world writes, so the bar is lower, yet the description adds real behavior: HMAC permit and signature verification, expiry checking, and re-simulation before broadcast, plus the confirmHighImpact gate. It omits what happens when a check fails and whether a failed attempt is safe to retry, which matters given idempotentHint=false.

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, each doing distinct work: statement of action, verification behavior, required inputs with provenance, conditional input, and the high-impact gate. Front-loaded and free of filler.

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?

For a destructive, non-idempotent submission tool with no output schema and nested summary object, the description covers preconditions, provenance of inputs, and the confirmation gate. It could still say what a successful response contains and how failures surface, but the critical calling information is present.

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

Parameters5/5

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

With 0% schema coverage across 6 parameters, the description carries the full burden and does so: permit and summary are bound to lp_withdraw_prepare with an 'unchanged' constraint, unsignedTransaction is tied to the wallet-injected-instruction case, and confirmHighImpact is tied to high-impact withdrawals. Only wallet and the wire format of the strings are left implicit.

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 opening sentence states a specific verb and resource ('Submit a wallet signed withdrawal') and the rest of the description makes clear this is the broadcast step that follows lp_withdraw_prepare, so it is distinguishable from its prepare sibling.

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 explicitly routes the agent through the two-step workflow ('Supply the unchanged summary and permit from lp_withdraw_prepare') and gives a concrete conditional rule for the optional unsignedTransaction when a wallet such as Phantom Lighthouse appends instructions. It does not state what to do on verification failure or whether to poll tx_status afterwards, so it stops short of full when/when-not guidance.

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