Skip to main content
Glama
Factor MCP Server

Factor MCP Server

Official
by FactorDAO

factor_preview_withdraw

Preview a Factor Pro vault withdrawal and see the expected assets to receive before redeeming shares. Read-only simulation for checking withdrawal outcomes.

Instructions

Preview a withdrawal from a Factor Pro vault. Returns expected assets to receive. This is a read-only operation.

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>",
      "shares": "<shares>"
    },
    "name": "factor_preview_withdraw"
  }
}

Input Schema

NameRequiredDescriptionDefault
sharesYesAmount of shares to redeem in base units (wei)
userAddressNoAddress to check share balance for. If not provided, uses the active wallet.
vaultAddressYesThe vault contract address

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?

No annotations are provided, so the description must carry the behavioral burden. It does disclose the two most important traits — no state change (read-only) and an estimated asset return — but says nothing about revert behavior on invalid input, whether the estimate is block-dependent, or that no gas/approval is required.

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 purpose and followed by the return and safety profile; nothing is padded. Slight room to merge the return and read-only clauses, but no sentence is wasteful.

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 three-parameter preview tool with no annotations and no output schema, the description covers what it does, that it is safe, and roughly what it returns. It stops short of telling the agent how the estimate relates to the subsequent execute call or what happens on invalid vault/shares input.

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 each parameter (shares in wei, optional userAddress fallback to active wallet, vaultAddress) is already documented. The description adds no additional meaning about units, defaults, or how userAddress changes the result, so the 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?

The description names a specific verb and resource ('Preview a withdrawal from a Factor Pro vault') and states the return value ('expected assets to receive'). It implicitly distinguishes itself from the execution sibling (factor_withdraw) by declaring 'This is a read-only operation', though it never names that alternative explicitly.

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?

The 'read-only' framing implies this is a simulation to run before an actual withdrawal, but there is no explicit when-to-use statement and no named alternative such as factor_withdraw for execution. The agent must infer the preview-then-execute workflow from sibling names alone.

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