Skip to main content
Glama
gasrescue MCP server

gasrescue MCP server

Official

Get what the wallet must sign

get_signing_request
Read-onlyIdempotent

Returns the exact payloads a wallet must sign for a gasrescue quote, covering EVM typed data, EVM/Tron transactions, and Solana; submit the signed result next.

Instructions

Returns what the sender's wallet has to sign for a quote from quote_send or quote_swap. kind "evm-typed-data": sign every steps[].typedData with eth_signTypedData_v4, in order (one authorization, or for permit tokens a permit plus the order itself); binding is the order the authorization commits to, so recipient, fee and minimum can be checked first. kind "tron-transactions": sign every steps[].transaction (first the fee, then the transfer). kind "evm-transactions" (gas drop, BNB Chain): if funding.needed, sign funding.message with personal_sign (a message, no transaction, proves the wallet is the sender's) and call submit_signatures with fund: true and that fundSignature first, so gasrescue sends the wallet the gas; then send every steps[].tx from the wallet (eth_sendTransaction, fee first) and report the hashes with submit_signatures txs: { fee, transfer }. kind "solana-transaction" or "solana-versioned-transaction": sign the base64 transaction. Read-only. Pass the result to submit_signatures. Fails when the quote expired; then request a new quote.

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": {
      "transferId": "<transferId>"
    },
    "name": "get_signing_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
transferIdYesThe id gasrescue returned as transfer.id from quote_send or quote_swap: 24 lowercase hex characters, e.g. "b39f46001a5680455091152d". Not a transaction hash and not an id of another service.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.6
    • changedInput schema / properties / transferId / description
      Previous value: -"The transfer id returned by quote_send or quote_swap (24 hex characters)."New value: +"The id gasrescue returned as transfer.id from quote_send or quote_swap: 24 lowercase hex characters, e.g. \"b39f46001a5680455091152d\". Not a transaction hash and not an id of another service."
  2. Changed2 schema fields changedv0.1.5
    • changedInput schema / properties / transferId / description
      Previous value: -"The transfer id from a quote."New value: +"The transfer id returned by quote_send or quote_swap (24 hex characters)."
    • addedInput schema / properties / transferId / pattern
      Added value: +"^[0-9a-f]{24}$"
  3. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already mark the tool read-only and idempotent, but the description adds substantial behavioral detail: signing order, per-kind handling of typed data, TRON and EVM transactions, Solana transactions, gas-drop funding flow, and failure on quote expiration. This goes well beyond the safety annotations and describes how the result must be consumed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core purpose and every sentence carries operational detail about a distinct signing flow. It is dense and somewhat run-on across the kind branches, but the length is justified by the number of supported payload types.

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 complex multi-chain signing tool with no output schema, the description covers the important return shapes, required signing order, funding flow, and expiration failure mode. An agent has enough information to act correctly without needing additional context.

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%, and the schema already explains that transferId is the 24-character lowercase hex id from quote_send or quote_swap. The description refers to quotes from those tools but does not add transferId-specific syntax or validation beyond the schema, so the baseline of 3 is appropriate.

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 states a specific verb and resource: it returns what the sender's wallet must sign for a quote from quote_send or quote_swap. It also enumerates the kind-specific payloads, so an agent can distinguish this from submit_signatures and know exactly what the tool produces.

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

Usage Guidelines5/5

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

It explicitly ties use to a quote from quote_send or quote_swap, says to pass the result to submit_signatures, and gives the expired-quote fallback of requesting a new quote. It also names adjacent sibling tools, leaving little ambiguity about when to call this versus what comes before or after.

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