Skip to main content
Glama
Factor MCP Server

Factor MCP Server

Official
by FactorDAO

factor_add_vault_token

Register an asset or debt token in a Factor Pro vault before lending or borrowing. The accounting address must match a whitelisted factory pair; it can auto-detect if omitted.

Instructions

Add an asset or debt token to a Factor Pro vault using the AssetDebtAdapter via executeByManager. Use this to register aTokens (as assets) or debt tokens (as debts) before lending/borrowing. The accounting address must match a whitelisted pair in the factory (use factor_get_factory_addresses to find the correct one).

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>",
      "tokenAddress": "<tokenAddress>",
      "type": "<type>"
    },
    "name": "factor_add_vault_token"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYesWhether to add as an asset or debt
passwordNoWallet password if encrypted
tokenAddressYesThe token address to add (e.g., aToken address for assets, variableDebtToken for debts)
vaultAddressYesThe vault contract address
accountingAddressNoOptional. The accounting adapter address. If omitted, auto-detects using the Chainlink accounting adapter for this chain.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.7.9

TDQS

A4.2/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 real behavior: execution flows through the AssetDebtAdapter via executeByManager (implying an on-chain manager call), and the accounting address must match a whitelisted factory pair or the call presumably fails. It omits permission/role requirements, whether the operation is reversible, and failure modes.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the core action and mechanism, then usage timing, then the prerequisite. Every sentence contributes and nothing is padded.

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 5-parameter mutation tool with no annotations and no output schema, the description covers purpose, call path, prerequisite ordering, and the whitelist constraint. What remains thin is auth/permission context (whether the caller must be a vault manager) and success/failure behavior, though password param hints at wallet auth.

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 schema already documents type, tokenAddress, vaultAddress, accountingAddress, and password. The description adds modest meaning by tying 'asset' to aTokens and 'debt' to debt tokens and by explaining the whitelist constraint on accountingAddress, but the auto-detect default is already in 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 (add), resource (asset or debt token), target (Factor Pro vault), and the mechanism (AssetDebtAdapter via executeByManager). An agent can distinguish this from siblings like factor_add_vault_manager or factor_add_adapter without opening a schema.

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

Usage Guidelines4/5

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

Explicitly says to use it to register aTokens as assets or debt tokens as debts *before lending/borrowing*, which gives a clear trigger condition and ordering. It also names factor_get_factory_addresses as the way to resolve the required accounting address, though it states no when-not case.

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