Skip to main content
Glama
Factor MCP Server

Factor MCP Server

Official
by FactorDAO

factor_lend_supply

Supply or deposit vault assets into Aave, Compound V3, Morpho, or Silo V2 lending markets through a Factor vault, using all or a percentage of the balance; for Morpho, optionally supply as collateral.

Instructions

Supply/deposit assets to a lending protocol (Aave, Compound V3, Morpho, or Silo V2) through a Factor vault. Use amount "all" to supply the entire vault balance of the asset. For Morpho, set collateral=true to supply as collateral instead of lending.

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_supply"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYesAmount in base units (wei), or "all" to supply the entire vault balance, or a percentage like "50%" to supply that percentage of the balance
marketIdNoMorpho market ID (required for morpho)
passwordNoWallet password if encrypted
protocolYesThe lending protocol to use
collateralNoFor Morpho: supply as collateral instead of lending. Default: false
assetAddressNoToken address to supply (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

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden; it does disclose the deposit semantics and protocol-specific Morpho collateral behavior. However it says nothing about token approvals (a factor_give_approval sibling exists), vault permission requirements, or whether the deposit is reversible.

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?

Three front-loaded imperative sentences with no filler; the core action comes first. The final two sentences largely duplicate parameter descriptions, slightly reducing information density.

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 an 8-parameter mutation tool with no annotations and no output schema, the description covers the action and key field quirks but omits approval/permission prerequisites and any indication of what a successful deposit returns or how failures surface.

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%, so the schema already documents amount (wei/"all"/percentage), collateral, marketId, and vendor-required addresses. The description restates the "all" and collateral semantics without adding new constraints beyond the schema.

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 (supply/deposit assets) plus the exact locus (through a Factor vault) and names the supported protocols. It is readily distinguishable from siblings like factor_lend_borrow, factor_lend_repay, and factor_lend_withdraw.

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?

The description explains how to use variants (amount "all", collateral=true for Morpho) but never states when to choose this tool over siblings or what prerequisites apply. Usage is implied by the verb rather than explicitly routed.

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