Skip to main content
Glama
Splits MCP Server

Splits MCP Server

Official

transactions_create_earn-withdraw

Create a proposal for a human signer to withdraw an asset from an Earn vault back to a smart account, using human-readable units; returns previewed vault shares and a sign URL.

Instructions

Create a proposal, for a human signer to approve, that withdraws an asset from an Earn vault back to the smart account. Specify amount in human-readable asset units (e.g. '100' for 100 USDC), not vault shares. Returns the proposal with the previewed vault shares and a signUrl.

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": {
      "account": "<account>",
      "chainId": "<chainId>",
      "asset": "<asset>",
      "amount": "<amount>"
    },
    "name": "transactions_create_earn-withdraw"
  }
}

Input Schema

NameRequiredDescriptionDefault
memoNoOptional memo for the transaction (max 500 chars)
assetYesThe underlying asset of the vault (e.g. the USDC address)
vaultNoThe Earn vault to withdraw from. Defaults to the vault that accepts deposits for this asset on this chain. Pass it to withdraw from a legacy vault, which accepts withdrawals only
amountYesThe amount in human-readable asset units (e.g., '100' for 100 USDC)
accountYesThe smart account address to create the proposal from (0x-prefixed, 40 hex chars)
chainIdYesThe chain ID where the smart account is deployed and the vault lives (e.g., 1 for Ethereum, 8453 for Base)
propertyNoString key/value overlays for properties; repeatable. Splits on the first '='. Example: --property invoice=INV-42
workspaceNoWorkspace alias to run this command in (see `splits auth workspaces`). Overrides SPLITS_WORKSPACE and the active workspace.
propertiesNoOptional custom JSON metadata. Total minified ≤ 500 chars. Used as the base; any --property overlays are applied on top. To load from a file, use shell substitution: --properties "$(cat props.json)"
pauseAutoEarnSecondsNoPause auto-earn on this account and chain for 300, 3600, or 86400 seconds once the withdrawal executes, so the asset is not swept back into the vault. Defaults to 300 when auto-earn is on for the account and chain, and is ignored when it is off

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does well to disclose that this creates a proposal requiring human approval and a signUrl rather than executing a transfer, and it clarifies the amount unit vs. vault shares. However, it says nothing about permissions, what happens if the proposal is never signed, expiry, or the meaning of pauseAutoEarnSeconds, which leaves a mutation-adjacent workflow under-described.

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 tight sentences front-load the action, then the critical unit caveat, then the return shape. Every sentence carries information the caller needs, and there is no filler.

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 ten-parameter transaction-creating tool with no annotations, the definition covers purpose, the key unit pitfall, and the return value (important because there is no output schema). It stops short of explaining the auto-earn pause side effect or the proposal lifecycle, so a small but real gap remains.

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 the schema already documents all ten parameters, including vault defaulting, properties overlays, and the pauseAutoEarnSeconds options. The description reinforces only the amount unit; it adds no meaning for the remaining parameters, which is the expected baseline when the schema does the work.

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?

Names a specific verb and resource: 'Create a proposal ... that withdraws an asset from an Earn vault back to the smart account.' That direction (Earn vault → smart account) makes it plainly distinct from the deposit sibling, though no alternative is named explicitly and the proposal-versus-execution framing is left for the next sentence.

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?

Usage is implied by the vault/asset framing, and 'for a human signer to approve' hints at the proposal workflow, but there is no explicit when-to-use, when-not-to-use, or routing to alternatives such as the deposit or auto-earn-off tools. An agent must infer the selection criteria itself.

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