Skip to main content
Glama

Get lending market

get_fabrica_lending_market
Read-onlyIdempotent

Get an overview of the Fabrica lending market: loan counts, loans, DeFi lending pool liquidity and utilization, average APR, and recent loan events (the distribution of the whole history, by loan-to-value, state and outcome, is in get_fabrica_loan_book). Owners borrow against their properties through the DeFi lending pool (pool-based lending). Loan records also include historical peer-to-peer loans made through a former integration that is now retired.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_fabrica_lending_market"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax loan results (default 20, max 100)
sinceNoISO date. Only return loans started after this date.
lenderNoFilter by lender wallet address
statusNoFilter loans by status (default: 'all')
borrowerNoFilter by borrower wallet address

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare the safety profile (readOnlyHint=true, idempotentHint=true, destructiveHint=false, openWorldHint=true), so the bar is lower. The description adds meaningful domain context the annotations don't: it explains the pool-based lending model and warns that loan records include legacy peer-to-peer loans from a retired integration, which materially affects how an agent should interpret the results.

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?

Front-loaded with the core purpose and an enumeration of returned data, with the sibling pointer immediately after. The closing sentences on pool-based lending and the retired P2P integration are informative but slightly long for what they add.

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?

There is no output schema, so the description carries the burden of describing returns, and it does so by listing loan counts, loans, liquidity/utilization, average APR, and recent events. It is largely complete for a read-only overview tool, with only minor gaps such as pagination behavior for the loan results.

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 all five parameters (limit, since, lender, status, borrower) are already documented in the schema, including the status enum and defaults. The description adds no additional parameter semantics, so the baseline of 3 applies.

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+resource (lending market overview) and enumerates exactly what the overview contains: loan counts, loans, pool liquidity/utilization, average APR, and recent loan events. It explicitly names the sibling get_fabrica_loan_book as the source for the whole-history distribution, so an agent can distinguish the two without opening either schema.

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 routes the agent away from this tool for the loan-to-value/state/outcome distribution, pointing to get_fabrica_loan_book. It gives clear context for what this tool is for, though it does not state explicit when-not conditions or prerequisites beyond the sibling pointer.

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.