Skip to main content
Glama

aave_set_collateral

Enables or disables a supplied asset as collateral for an AAVE position by building the transaction. Disabling fails if it would make the position undercollateralized.

Instructions

Build transaction to enable or disable a supplied asset as collateral. Disabling may fail if it would make the position undercollateralized.

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": {
      "chain": "<chain>",
      "asset": "<asset>",
      "useAsCollateral": "<useAsCollateral>"
    },
    "name": "aave_set_collateral"
  }
}

Input Schema

NameRequiredDescriptionDefault
assetYesReserve token address
chainYesTarget chain
useAsCollateralYestrue to enable, false to disable

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the whole burden, and it does disclose two useful traits: the tool builds an unsigned transaction rather than executing a state change, and a disable can revert when it would leave the position undercollateralized. It does not say whether the transaction must be signed and submitted by the caller, what permissions are needed, or how the returned payload is shaped.

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?

Two sentences, front-loaded with the core action and followed immediately by the most decision-relevant risk. There is no filler and nothing an agent needs is buried.

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 3-parameter mutation-adjacent tool with no annotations and no output schema, the description covers the action and one failure mode but not the return contract. An agent still has to guess whether it receives a transaction object to sign or a completed result. The essentials are present, but the return-side gap is a real shortfall.

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 100%, so the schema already documents chain, asset, and useAsCollateral in detail, including the boolean polarity. The description only restates that a supplied asset is enabled or disabled, adding no format or edge-case meaning. Baseline 3 is appropriate 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?

The description gives a specific verb and resource: it builds a transaction that toggles an asset's collateral flag. That clearly separates it from siblings like aave_borrow or aave_repay, which move funds rather than change position configuration. It stops short of naming a sibling explicitly, so it lands just below the top score.

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 rather than stated: an agent can infer this is the tool for toggling collateral status. There is no guidance on prerequisites (an existing position, approvals, a connected account) and no mention of an alternative path if the call fails. The failure warning is a constraint, not a when-to-use rule.

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