Skip to main content
Glama
Factor MCP Server

Factor MCP Server

Official
by FactorDAO

factor_set_max_debt_ratio

Set the maximum debt ratio for a Factor Pro vault in basis points to control borrowing limits; callable only by the vault owner.

Instructions

Set the maximum debt ratio for a Factor Pro vault. Ratio is in basis points (0-10000, where 10000 = 100%). Only callable by vault owner.

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>",
      "maxDebtRatioBps": "<maxDebtRatioBps>"
    },
    "name": "factor_set_max_debt_ratio"
  }
}

Input Schema

NameRequiredDescriptionDefault
passwordNoWallet password if encrypted
vaultAddressYesThe vault contract address
maxDebtRatioBpsYesMaximum debt ratio in basis points (0-10000, where 10000 = 100%)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.7.9

TDQS

B3.4/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 burden and does supply two important traits: an authorization requirement (owner only) and a valid numeric range with unit mapping. It omits whether this submits an on-chain transaction, whether the change affects existing debt or is reversible, and what a failed call returns.

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, each carrying distinct information: action, unit convention, permission gate. Front-loaded and free of filler.

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 mutation tool with no annotations, no output schema, and a required password parameter, the description covers authorization and value range but not the execution model or side effects. An agent still cannot tell whether this broadcasts a transaction or mutates local config.

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 three parameters are already documented, including the basis-point range and the optional wallet password. The description restates the unit convention for maxDebtRatioBps but adds nothing the schema does not already say.

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?

States a specific verb and resource: set the maximum debt ratio for a Factor Pro vault, including the unit semantics. It is clear what changes, though it does not explicitly distinguish this ratio from sibling knobs like factor_set_max_cap, leaving the agent to infer the difference.

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?

"Only callable by vault owner" gives a hard precondition for use, which is more than nothing. However, there is no guidance on when to prefer this over related setter tools, no exclusions, and no note on what happens to existing vault state.

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