Skip to main content
Glama

MIRAI

Prepare a borrow

prepare_borrow
Read-only

An UNSIGNED borrow transaction (to, data, value) on Robinhood Chain for the agent's owner, its registry wallet or an operator to sign. Includes the fee quote and a 1% fee guard.

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>",
      "to": "<to>"
    },
    "name": "prepare_borrow"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesaddress that receives the USDG
daysYes
agentYesERC-8004 agent id on Robinhood Chain
amountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint, so the description adds real value by disclosing that the output is unsigned and that it bundles a fee quote plus a 1% fee guard. It still omits what the caller must do next (sign and broadcast) and whether the quote can expire.

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?

Two tight sentences with the unsigned nature and chain front-loaded. The parenthetical '(to, data, value)' is the one piece that doesn't clearly earn its place and risks misreading against the schema's 'to'.

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?

With no output schema, the description does well to mention the fee quote and 1% guard, but leaves gaps for a signable-transaction builder: units for 'amount', what 'days' means for the loan term, and what the caller should do with the returned payload. Adequate but not fully sufficient.

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

Parameters2/5

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

Schema coverage is only 50%: 'to' and 'agent' are documented, but 'days' and 'amount' carry no semantic explanation beyond min/max bounds. Worse, the description's '(to, data, value)' tuple refers to transaction output fields, which can be confused with the 'to' input parameter (the USDG recipient), adding ambiguity rather than clarity.

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?

States a specific verb and resource — builds an UNSIGNED borrow transaction on Robinhood Chain — and clarifies it is a payload for signing rather than a submitted loan. It implicitly contrasts with prepare_repay via the borrow/repay distinction but does not name or route away from it explicitly.

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

Usage Guidelines3/5

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

Identifies who is expected to sign (owner, registry wallet, or operator), which is useful placement context, but never says when to call this versus quote_loan or when a loan should not be initiated. Usage is implied by the tool name rather than stated.

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.