Skip to main content
Glama

get_exit_capacity

Exit capacity for a Base lending market: per-protocol utilization and withdrawable liquidity read from the protocol's own books (Aave, Compound), plus — if you pass amountUsd — whether that size can be withdrawn right now and what share of the market it would be. High APY at high utilization means the market pays well and will not let you out; this tool separates the two. Protocols that do not expose borrowed-vs-supplied are marked unmeasured and are never recommended as executable. USDC only for USD figures; WETH returns utilization without USD (no price oracle in the paid path).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
assetNoWhich Base lending market to measure: USDC (full USD figures) or WETH (utilization only). Defaults to USDC.
amountUsdNoPosition size in USD to test for exit. Omit to get utilization and free liquidity without an exit verdict.

Schema Changelog

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

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations provided, the description fully discloses behavioral traits: data source (protocol's own books), conditional behavior when amountUsd is passed, handling of protocols without borrowed-vs-supplied data (marked unmeasured, never recommended as executable), and asset-specific limitations (WETH lacks USD oracle). This is comprehensive.

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?

The description is compact and front-loaded, with four sentences each conveying distinct information: core function, motivation, unmeasured protocols, and asset constraints. It avoids redundancy, though it could be slightly tighter.

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?

The description covers core outputs, edge cases, and limitations. Since there is no output schema, it explains the nature of results (utilization, liquidity, exit verdict) but does not specify the exact response structure. Given the tool's moderate complexity, this is adequate but leaves some structural detail unspecified.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although the schema covers parameter names and basic types, the description adds crucial semantics: asset determines USDC full figures vs WETH utilization-only, and amountUsd triggers an exit verdict. It explains the consequences of omitting amountUsd and clarifies asset-specific behavior, surpassing the schema descriptions.

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 clearly identifies the tool as measuring exit capacity for Base lending markets, specifying outputs such as utilization, withdrawable liquidity, and an optional exit verdict. It does not explicitly contrast with sibling yield tools, but the distinct focus on exit capacity makes its purpose unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides context for when to use the tool: to separate advertised yield from actual ability to exit, noting that high APY at high utilization means a market won't let you out. It does not explicitly mention alternatives or exclusions, but the intended use case is clear.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A4.5/5.0
Disambiguation5/5

Each tool addresses a distinct aspect of yield analysis: signal provides raw data, durability stress-tests incentive dependence, decision recommends an action, and exit capacity evaluates liquidity. There is no overlap; an agent can clearly select the right tool for the task.

Naming Consistency5/5

All tools follow a consistent get_<yield_>?<specific> pattern, using snake_case and a uniform verb. get_exit_capacity fits the pattern with 'get_' and a clear noun even without 'yield' in the name, maintaining predictability.

Tool Count5/5

Four tools is a well-scoped set for a focused yield analytics server. Each tool earns its place by covering a distinct part of the decision workflow without redundancy or unnecessary bloat.

Completeness5/5

The tool set covers the full yield analysis lifecycle: raw signal, durability under incentive changes, decision recommendation, and exit liquidity. There are no obvious dead ends; an agent can go from data to action to exit assessment without missing critical operations.