Skip to main content
Glama

Earn quote

earn_quote
Read-onlyIdempotent

Free, no key: the summary of a borrow, a deposit or a Multiply before building it: amount received, LTV, max LTV, liquidation price, rate, Trnch fee, leverage and price impact. action borrow { marketId, amount (USDG to receive) or ltv:20|35|50|max, collateral }, deposit { marketId, amount }, multiply { marketId, collateral, leverage 1.2 to max }. Nothing to sign.

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": {
      "action": "<action>",
      "marketId": "<marketId>"
    },
    "name": "earn_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes
amountNoborrow: USDG to receive, or ltv:20|35|50|max; deposit: USDG to lend.
leverageNomultiply: target leverage, 1.2 up to the Trnch cap (x2 on Stock Tokens), or max.
marketIdYesMorpho market id, from earn_markets (marketId).
collateralNoCollateral supplied with the borrow or the Multiply, in collateral units (0 for none on a borrow).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered; the description adds the non-obvious facts that no API key or wallet signature is required and lists the full set of computed outputs in the absence of an output schema. It does not describe failure behavior for invalid marketIds or out-of-range leverage, which is the remaining gap.

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?

Roughly four dense sentences with zero filler: the purpose and return fields come first, the per-action parameter contract second, and the 'Nothing to sign' reassurance last. The brace notation is compact and scannable rather than verbose.

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 read-only quote tool with no output schema and no nested objects, the definition covers what is returned, which inputs go with which action, and that no signing or key is needed. Missing only edge-case behavior (what a quote returns for an unhealthy borrow, or how stale a quote can be before rebuilding).

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?

The schema already documents each parameter at 80% coverage, but the description adds per-action parameter grouping that the flat schema cannot express: which of amount/collateral/leverage apply to borrow versus deposit versus multiply, and the ltv:20|35|50|max alternate form for amount. Only minor value is added beyond that, since the field-level descriptions largely restate the same rules.

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: it computes a preview summary of a borrow, deposit or Multiply before the position is built, and enumerates exactly what the summary contains (amount received, LTV, max LTV, liquidation price, rate, fee, leverage, price impact). The three-action scope plus 'Nothing to sign' separates it cleanly from the build/execute siblings without needing to name them.

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?

'...before building it' gives an explicit ordering rule: run this quote first, then act on it, which routes the agent away from earn_build as the first step. 'Free, no key' and 'Nothing to sign' tell the agent this is safe to call speculatively. It stops short of naming earn_build as the follow-up or stating when a quote is not needed.

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