Skip to main content
Glama

CantorFi lending vaults and agent door

Prepare a CantorFi vault transaction

cantorfi_prepare
Read-onlyIdempotent

Unsigned transactions for one vault action (supply, borrow, repay or withdraw) and one amount, ready to be signed and sent in order by the user's or the agent's own wallet. Nothing is signed or sent by this server.

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>",
      "vault": "<vault>",
      "amount": "<amount>",
      "wallet": "<wallet>"
    },
    "name": "cantorfi_prepare"
  }
}

Input Schema

NameRequiredDescriptionDefault
vaultYesToken symbol, vault id or vault address
actionYes
amountYesAmount in token units, digits with an optional decimal point, for example 25.5
walletYesAddress of the wallet that will sign and send

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true; the description is consistent with them and adds the genuinely useful disclosure that nothing is signed or broadcast server-side and that the caller's own wallet must sign and send. It stops short of saying whether transactions expire, which chain is targeted, or how many transactions may come back.

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 short sentences, no filler, with the output type and the non-custodial guarantee front-loaded. The opening is a noun-phrase fragment rather than a verb-first statement, which slightly weakens scannability but costs no words.

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 carries the burden of describing the return value, and it only gestures at it ('unsigned transactions', plural) without saying what fields come back or whether a single action can yield multiple transactions requiring ordered sending. For a prepare/transaction-construction tool that gap matters, though the non-custodial guarantee and single-action scoping cover the essentials.

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%, with vault, amount and wallet documented in the schema (including amount format and vault accepting symbol/id/address); only the action enum lacks inline explanation. The description adds the constraint that exactly one action and one amount are handled per invocation, but adds no meaning about the wallet parameter or cross-parameter relationships.

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 output type (unsigned transactions) for a specific resource (one CantorFi vault action: supply, borrow, repay or withdraw) with a specific scope (one amount). It is immediately distinguishable from read-style siblings such as cantorfi_position or cantorfi_vaults, though it never names a sibling it is an alternative to.

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 explicit when-to-use guidance: no statement of prerequisites (e.g. that the vault must exist or that a position must be read first via cantorfi_position), no guidance on calling it repeatedly for multiple actions, and no alternatives named. The only implicit rule is 'one action and one amount per call', which an agent must infer.

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.