Skip to main content
Glama

MIRAI

Quote a loan

quote_loan
Read-only

The exact fee for borrowing an amount of USDG for a number of days on an agent's line, read from the lens contract.

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": {
      "agent": "<agent>",
      "amount": "<amount>",
      "days": "<days>"
    },
    "name": "quote_loan"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysYes
agentYesERC-8004 agent id on Robinhood Chain
amountYesUSDG

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds genuinely useful context by identifying the source (the lens contract) and promising an exact rather than estimated figure. It does not say whether the read can revert, how stale the on-chain value may be, or what happens when amount exceeds the line's available credit.

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?

A single sentence with no filler, front-loaded with what is returned ('the exact fee'). The trailing 'read from the lens contract' clause is slightly tacked on but still earns its place by naming the data source.

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 simple three-parameter read tool there is no output schema, so the description should ideally state the return units/precision and the failure mode when the quote is out of range. It covers what the value represents but not its denomination or revert behavior, leaving a modest gap.

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 coverage is 67%; amount and agent are documented in the schema, while days only carries its 1-30 bounds. The description restates the semantic link between amount/days and the fee but adds no format or edge-case detail beyond what the schema already supplies, so the baseline 3 is appropriate.

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 names a specific verb (quote) and resource (borrowing fee on an agent's line) plus the units of the inputs (USDG, days). It is clearly a read-only pricing lookup rather than a transaction builder, which distinguishes it in spirit from prepare_borrow, but it never names or contrasts the sibling explicitly.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites, and no mention of alternatives such as prepare_borrow. An agent must infer on its own that this is the pre-flight check to run before preparing an actual borrow.

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.