Skip to main content
Glama
Factor MCP Server

Factor MCP Server

Official
by FactorDAO

factor_create_vault

Deploy a new Factor Studio Pro vault with specified asset, cap, fees, and adapters; use vault templates first for ready parameters and approve tokens before creation.

Instructions

Deploy a new Factor Studio Pro vault. IMPORTANT: Always call factor_vault_templates first to get ready-to-use createVaultParams. If the task involves lending, call factor_vault_templates with lendingProtocol set (aave/compoundV3/morpho) — each protocol has its own token design and the template pre-configures the correct adapters and tokens. Fees are in percentage (0-100). Requires token approval via factor_give_approval before deployment.

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": {
      "name": "<name>",
      "symbol": "<symbol>",
      "assetDenominatorAddress": "<assetDenominatorAddress>"
    },
    "name": "factor_create_vault"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesName for the vault (max 50 characters)
maxCapNoMaximum vault cap in base units. Default: 1000000000000 (1M for 6-decimal tokens like USDC)
symbolYesSymbol for the vault token (max 10 characters)
passwordNoWallet password if encrypted
immutableNoIf true, creates an immutable vault without default management adapters. Default: false. When false, AdapterManagementAdapter and AssetDebtAdapter are automatically added.
depositFeeNoDeposit fee percentage (0-100). Default: 0
upgradeableNoWhether the vault is upgradeable. Default: false
withdrawFeeNoWithdraw fee percentage (0-100). Default: 0
maxDebtRatioNoMaximum debt ratio in basis points. Default: 10000 (100%)
ownerAddressNoOwner address for vault (required in stateless mode). This address will own the vault.
managementFeeNoAnnual management fee percentage (0-100). Default: 0
performanceFeeNoPerformance fee percentage (0-100). Default: 0
feeReceiverAddressNoOptional address that receives vault fees. Defaults to ownerAddress/local wallet when omitted.
cooldownTimeSecondsNoCooldown time between withdrawals in seconds. Default: 0
initialDebtAddressesNoInitial debt token addresses (e.g., aToken addresses)
initialDepositAmountNoInitial deposit amount in base units (wei). Minimum 1500 wei required. Default: 1600
initialOwnerAdaptersNoInitial owner adapter addresses
initialAssetAddressesNoInitial asset addresses the vault can hold
initialManagerAdaptersNoInitial manager adapter addresses
upgradeTimelockSecondsNoUpgrade timelock in seconds. Default: 86400 (1 day)
assetDenominatorAddressYesAddress of the denominator token (main deposit token, e.g., USDC)
initialWithdrawAdaptersNoInitial withdraw adapter addresses
initialDepositAssetAddressesNoInitial deposit asset addresses
initialWithdrawAssetAddressesNoInitial withdraw asset addresses
initialDebtAccountingAddressesNoAccounting adapter addresses for each debt (must match initialDebtAddresses length)
initialAssetAccountingAddressesNoAccounting adapter addresses for each asset (must match initialAssetAddresses length)
assetDenominatorAccountingAddressNoAddress of the accounting adapter for the denominator (e.g., chainlink accounting adapter). If not provided, will attempt to auto-detect from factory.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.7.9

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose meaningful behavior: template-driven configuration, per-protocol token/adapter design, fee units as percentages, and that a separate approval step must precede deployment. It stops short of stating that on-chain deployment is irreversible, what the tool returns (presumably a vault address), or what happens when template params are omitted.

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?

Front-loaded with the action, then prerequisites in priority order, with the approval requirement last. Slightly repetitive in calling factor_vault_templates twice and the all-caps 'IMPORTANT' is heavy-handed, but every sentence carries operational content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 27-parameter, no-annotation deployment tool, the description covers the critical path an agent would otherwise get wrong: generate params from templates, branch on lending protocol, secure approval before deploying. Remaining gaps — return value (no output schema) and irreversibility of the deployment — are notable but partially mitigated by 100% schema coverage.

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 all 27 parameters are already documented, and the description's fee-units note ('percentage (0-100)') largely repeats what the schema says for depositFee, withdrawFee, managementFee and performanceFee. It adds real meaning only in steering the agent to generated createVaultParams for the lending/adapter fields, which is guidance rather than parameter semantics — baseline 3 is appropriate.

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 — 'Deploy a new Factor Studio Pro vault' — and immediately distinguishes itself from the sibling factor_vault_templates by positioning that tool as the prerequisite config generator rather than a competing deploy path. An agent can tell what this does without opening the schema.

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

Usage Guidelines5/5

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

Gives explicit ordering rules ('Always call factor_vault_templates first'), a conditional branch (lending tasks must pass lendingProtocol with aave/compoundV3/morpho), and a named prerequisite tool (factor_give_approval) for token approval. When-to-use, how-to-prepare, and which sibling to call first are all spelled out.

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