Skip to main content
Glama
Derive MCP Server

Derive MCP Server

by yashhsm

execute_quote

Accept and execute an RFQ quote using its quote ID and matching legs, with EIP-712 signing handled automatically so you get the quoted price.

Instructions

Accept and execute an RFQ quote. Completes the RFQ flow: send_rfq → get_quotes → execute_quote. Each leg needs EIP-712 signing, which is handled automatically. The quote_id ties the execution to the MM's quote, ensuring you get the quoted price.

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": {
      "quote_id": "<quote_id>",
      "legs": "<legs>"
    },
    "name": "execute_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
legsYesLegs to execute — must match the original RFQ legs. Prices come from the quote response.
labelNoOptional label for the resulting trades
quote_idYesQuote ID to accept (from get_quotes)
subaccount_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden; it does disclose useful behavior — EIP-712 signing is handled automatically and the quote_id binds execution to the market maker's quote so the quoted price applies. It is silent on execution risk details an agent would want: atomicity of the legs, partial fills, reverting on stale or mismatched quotes, and failure responses.

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?

Three sentences, front-loaded with the action and followed by flow context and the signing/quote-binding note. No filler, though the signing detail could be tightened into one clause.

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

Completeness3/5

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

For a trade-execution tool with no annotations and no output schema, the description covers the happy path and the signing mechanics but leaves return values, failure modes, and leg-matching consequences unstated. Two required parameters and a nested legs array warrant more disclosure than is present.

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 75%, so the schema already documents quote_id, legs, and label. The description adds only that quote_id comes from get_quotes and ties execution to the MM quote; it says nothing about subaccount_id or the max_fee/default behavior on legs.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource ("Accept and execute an RFQ quote") and situates it in a three-step flow, so an agent can separate it from send_rfq and get_quotes. It does not, however, distinguish it from the sibling accept_rfq_quote, whose name suggests overlapping intent.

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?

The flow line "send_rfq → get_quotes → execute_quote" tells the agent exactly when this tool becomes relevant, and the note that quote_id comes from get_quotes reinforces the precondition. No exclusions or alternatives (e.g. accept_rfq_quote vs. this) are stated, which keeps it short of a 5.

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