Skip to main content
Glama
Factor MCP Server

Factor MCP Server

Official
by FactorDAO

factor_get_lending_tokens

Retrieves aTokens, debt tokens, and underlying asset details for a lending protocol, so you know which assets a Factor vault requires before supplying to Aave, Compound V3, or Morpho.

Instructions

Get lending token information from the tokenlist for a specific protocol. Returns aTokens, debt tokens, and underlying asset info needed to set up a vault for lending. Use this BEFORE supplying to a lending protocol to know which tokens (assets/debts) the vault needs.

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": {
      "protocol": "<protocol>"
    },
    "name": "factor_get_lending_tokens"
  }
}

Input Schema

NameRequiredDescriptionDefault
protocolYesThe lending protocol to look up tokens for
underlyingAssetNoOptional: underlying token address (e.g., USDC) to filter results. If omitted, returns all tokens for the protocol.

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 supplied, the description carries the full burden. It does disclose the data source ('from the tokenlist') and exactly what comes back, which implies a safe read, but it says nothing about failure modes for an unsupported protocol enum, whether results are cached/static, or whether an empty filter match is an error or an empty set.

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 short sentences, front-loaded with the action and return payload before the usage hint. Minor redundancy between 'underlying asset info needed to set up a vault for lending' and the later 'which tokens (assets/debts) the vault needs', but nothing is wasteful enough to obscure the point.

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 two-parameter read tool with no annotations and no output schema, the description supplies the return shape and the reason to call it, which is most of what an agent needs. The remaining gap is edge-case behavior (unsupported protocol, empty result), which is minor at this complexity.

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%, and both parameters (protocol enum with three values, optional underlyingAsset with an example) are documented in the schema itself. The description only echoes 'for a specific protocol' and does not add filtering semantics such as whether the asset filter matches underlying or aToken addresses; baseline 3 applies.

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?

Specific verb+resource: 'Get lending token information from the tokenlist for a specific protocol', followed by a concrete enumeration of the returned artifacts (aTokens, debt tokens, underlying asset info). It is clear what the tool does, but it never names a sibling or a contrasting lookup tool (e.g., a spot-token or address-book listing) to sharpen the boundary.

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?

'Use this BEFORE supplying to a lending protocol to know which tokens (assets/debts) the vault needs' gives an explicit triggering condition and even the ordering relative to a downstream action. It stops short of stating when NOT to use it or naming an alternative for other token lookups, so it is clear context without exclusions.

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