Skip to main content
Glama

The risk configuration of a lending protocol's markets

get_lending_market_config
Read-only

The risk configuration of every asset of a lending protocol's markets, or of one with asset, as the protocol's last configuration events set it — loan-to-value, liquidation threshold, reserve factor and liquidation protocol fee in basis points, the liquidation bonus in basis points over the debt repaid (500 = 5 %), supply and borrow caps in whole tokens (absent means no cap), whether the asset is active, frozen or paused, its price oracle, its receipt and debt token contracts and rate strategy, and the block of its last configuration change. protocol must be a covered one (aave_v3 today; another is refused, protocol_invalid, with the covered list), and coveredMarkets names the markets read. A value is absent when the asset's initialization lies outside the history TraceFast reads. Use it to read a lending market's parameters. Not for one token's amounts and rates: use get_token_lending_markets.

Arguments: protocol; optional asset. chain_id defaults to 1 (Ethereum mainnet, the only chain served). Freshness: the current state; meta.asOfBlock is the block the answer is valid at. meta.cached is true when the answer came from the TraceFast response cache (refreshed within minutes); meta.timestamp is when it was produced, in Unix milliseconds.

Minimum plan: Intelligence; the Investigation plan includes it. Rate class: core. Documentation: https://docs.tracefast.xyz/api/lending-config

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": {
      "protocol": "<protocol>"
    },
    "name": "get_lending_market_config"
  }
}

Input Schema

NameRequiredDescriptionDefault
assetNoOnly this asset (`0x` + 40 hex).
chain_idNoChain id. Only 1 (Ethereum mainnet) is served; the default.
protocolYesA covered protocol, for example `aave_v3`; another value is refused (`protocol_invalid`) with the covered list.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Beyond the readOnlyHint/openWorldHint annotations, it discloses the refusal behavior for uncovered protocols, the absence semantics for values outside the indexed history, and the freshness contract (`meta.asOfBlock`, `meta.cached` with minutes-level refresh, `meta.timestamp` in Unix ms). That is substantive behavioral context; it loses a point only because the caching/refresh wording is loose ('refreshed within minutes') rather than a stated bound.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and the sibling exclusion are front-loaded, but the opening sentence is a long dash-chained enumeration of every returned field, which duplicates what the existing output schema already conveys. Operational facts (plan tier, rate class, docs link) are appended efficiently, but the field roster is the least-earning part of the text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values needn't be explained, yet the definition still covers the pieces an agent needs: single vs all-asset scope, covered-protocol constraint, absent-value explanation, freshness metadata, and the plan/rate-class gating. Nothing required to call it correctly is missing.

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

Parameters4/5

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

Schema coverage is already 100%, so the baseline is 3; the description still adds value by framing `asset` as narrowing the all-assets default, by restating that `protocol` must be covered or is refused with the covered list, and by noting `chain_id` defaults to 1 and only Ethereum mainnet is served. It mostly reinforces rather than extends the schema, which keeps it below 5.

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 resource and verb-of-reading: the risk configuration (LTV, liquidation threshold, reserve factor, caps, oracle, tokens, rate strategy) of every asset in a lending protocol's markets, or of a single asset when `asset` is given. It explicitly contrasts itself with the sibling it is not: 'Not for one token's amounts and rates: use get_token_lending_markets.'

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

Usage Guidelines5/5

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

Gives an explicit when-to-use ('Use it to read a lending market's parameters') and an explicit when-not plus the named alternative (get_token_lending_markets) for token-level amounts and rates. It also states the prerequisite that `protocol` must be a covered one, with the failure mode `protocol_invalid` and the covered list returned.

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.

Resources