Skip to main content
Glama
Factor MCP Server

Factor MCP Server

Official
by FactorDAO

factor_lend_borrow

Borrow assets from Aave, Compound V3, Morpho, or Silo V2 through a Factor vault after supplying collateral.

Instructions

Borrow assets from a lending protocol (Aave, Compound V3, Morpho, or Silo V2) through a Factor vault. Requires collateral to be supplied first.

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": {
      "vaultAddress": "<vaultAddress>",
      "protocol": "<protocol>",
      "amount": "<amount>"
    },
    "name": "factor_lend_borrow"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYesAmount to borrow in base units (wei)
marketIdNoMorpho market ID (required for morpho)
passwordNoWallet password if encrypted
protocolYesThe lending protocol to borrow from
debtAddressNoToken address to borrow (required for aave, compoundV3, siloV2)
vaultAddressYesThe vault contract address
marketAddressNoMarket address (required for compoundV3 and siloV2)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.7.9

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations present, the description carries the full burden and does disclose the collateral prerequisite and the protocol set, which is genuine behavioral context. It is silent on whether this is a signed on-chain transaction, what permissions/approvals or password handling are required, what happens if collateral is insufficient, and whether the call is atomic with the supply step.

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 core action front-loaded and the prerequisite second, with no filler. Slight loss because the protocol enumeration duplicates the schema enum rather than using the space for anything the agent cannot already read.

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 7-parameter state-changing financial tool with no annotations and no output schema, the definition covers purpose and the supply-first precondition but leaves the agent uninformed about transaction semantics, signing/password use, failure modes, and what is returned.

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 100%, including the protocol enum and the per-protocol conditional requirements for debtAddress, marketAddress, and marketId. The description's protocol list merely restates the enum, adding no meaning beyond the schema.

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: 'Borrow assets from a lending protocol ... through a Factor vault,' and enumerates the four supported protocols. It separates itself from factor_lend_repay/supply/withdraw by verb, but does not address overlap with factor_flashloan, which also involves borrowing.

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?

Provides one real prerequisite: 'Requires collateral to be supplied first,' which tells the agent the ordering of operations. It gives no explicit when-to-use vs. when-not guidance and does not point at any sibling for the alternative cases (e.g., flashloan instead of vault borrowing).

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

Deploy Server

Other Tools