Skip to main content
Glama
Factor MCP Server

Factor MCP Server

Official
by FactorDAO

factor_flashloan

Executes a flash loan strategy through a Factor vault by borrowing tokens, running strategy steps, and repaying within one transaction using Balancer.

Instructions

Execute a flash loan strategy through a Factor vault. Borrows tokens within a single transaction, executes strategy steps, then repays. Uses Balancer flash loan provider (deployed on Arbitrum, Base, and Ethereum). The strategy steps define what to do with the borrowed funds (e.g., swap, supply collateral, etc.).

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>",
      "provider": "<provider>",
      "loans": "<loans>",
      "strategySteps": "<strategySteps>"
    },
    "name": "factor_flashloan"
  }
}

Input Schema

NameRequiredDescriptionDefault
loansYesArray of tokens and amounts to flash borrow
passwordNoWallet password if encrypted
providerYesFlash loan provider: balancer
vaultAddressYesThe vault contract address
strategyStepsYesStrategy steps to execute with the borrowed funds. These run inside the flash loan callback.

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?

With no annotations, the description carries the full behavioral burden; it usefully discloses the atomic single-transaction borrow/execute/repay flow, Balancer provider, and supported chains. It omits permission requirements, failure/revert behavior, fees, and return/status details, which matter for a complex write operation.

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?

The description is front-loaded and mostly waste-free. There is minor redundancy between 'executes strategy steps' and the final sentence explaining strategySteps.

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 five-parameter write tool with no annotations or output schema, the description covers the core flash-loan flow and provider context. It remains incomplete on authorization, failure handling, and expected results, though it is adequate at a high level.

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 100%, so the baseline is 3. The description adds examples for strategySteps (swap, supply collateral) but adds little meaning beyond the schema for vaultAddress, provider, loans, or password.

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 (Execute) and resource (flash loan strategy through a Factor vault), and the borrow-execute-repay cycle clearly distinguishes it from simpler vault-management siblings.

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?

Implies the tool is for flash loan strategies and notes that strategySteps define post-borrow actions, but gives no explicit when-to-use criteria, preconditions, or comparison to alternative execution tools.

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