Skip to main content
Glama
IndigoProtocol

IndigoProtocol/indigo-mcp

Official

withdraw_cdp

Withdraw ADA collateral from a CDP by generating an unsigned transaction (CBOR hex) for client-side signing.

Instructions

Withdraw ADA collateral from a CDP — builds an unsigned transaction (CBOR hex) for client-side signing

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
assetYes
amountYesLovelace amount to withdraw
addressYesUser Cardano bech32 address
cdpTxHashYesTransaction hash of the CDP UTxO
cdpOutputIndexYesOutput index of the CDP UTxO

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed1 schema field changedv0.4.1
    • changedInput schema / properties / asset / enum
      Previous value: -[
      -  "iUSD",
      -  "iBTC",
      -  "iETH",
      -  "iSOL"
      -]New value: +[
      +  "iUSD",
      +  "iBTC",
      +  "iETH",
      +  "iSOL",
      +  "iEUR",
      +  "iJPY",
      +  "iADA"
      +]
  2. First observedv0.2.14

TDQS

A3.9/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 discloses the key non-obvious trait: the tool only builds an unsigned CBOR hex transaction for client-side signing, so it does not broadcast or mutate chain state itself. It does not cover constraints such as whether the amount is validated against available collateral or what happens on insufficient collateral.

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?

A single front-loaded sentence with zero waste. The action ('Withdraw ADA collateral from a CDP') leads and the em-dash clause earns its place by conveying the unsigned-transaction signing flow.

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 5-required-param tool with no output schema and no annotations, the description covers the operation and output format but leaves gaps: the ambiguous asset parameter, withdrawal limits relative to available collateral, and any indication of what the caller must do with the returned CBOR hex beyond 'client-side signing.'

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 80% and the description adds little beyond it: 'ADA collateral' aligns with the Lovelace amount parameter, but the asset enum (iUSD, iBTC, etc.) is left undescribed and its role in an ADA collateral withdrawal is ambiguous. The description does not clarify how cdpTxHash and cdpOutputIndex jointly identify the CDP UTxO.

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 and resource ('Withdraw ADA collateral from a CDP') plus a distinguishing clause ('builds an unsigned transaction (CBOR hex) for client-side signing') that identifies it as a transaction builder, not an executor. This cleanly separates it from siblings like deposit_cdp (deposit collateral) and close_cdp.

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 — withdraw collateral to reduce a CDP's collateral exposure — but no alternative tools or exclusion conditions are named. The description does not explicitly route the agent to deposit_cdp for adding collateral or close_cdp for full closure, nor does it warn against withdrawing so much that the CDP becomes undercollateralized.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/IndigoProtocol/indigo-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server