Skip to main content
Glama
Fabrica MCP Server

Fabrica MCP Server

Official
by fabrica-land

Get lending market

get_lending_market
Read-onlyIdempotent

Retrieve loan counts, active or historical loans, DeFi pool liquidity, utilization, average APR, and recent events to analyze the Fabrica lending market.

Instructions

Get an overview of the Fabrica lending market: loan counts, loans, DeFi lending pool liquidity and utilization, average APR, and recent loan events. 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_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. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint, so the safety profile is fully covered. The description adds useful domain context about pool-based lending and that historical retired P2P loans are included in records, but says nothing about result size, pagination behavior, or freshness/latency.

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?

Two sentences with the payload description front-loaded, which is the right ordering. The second sentence is background framing rather than operational guidance, but it is short and does clarify an otherwise confusing data caveat.

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?

With no output schema, the description carries the burden of explaining return contents and it does so enumeratively (counts, loans, liquidity/utilization, APR, recent events). Filtering and pagination semantics are left entirely to the schema, which is adequate here but leaves the aggregate-level vs list-level result shape ambiguous.

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%, with limit, since, lender, status (enum), and borrower all documented in the schema. The description mentions none of these filters and adds no syntax or interpretation beyond what the schema already states, so the baseline of 3 applies.

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?

Names a specific verb and resource ('Get an overview of the Fabrica lending market') and enumerates what the overview contains: loan counts, loans, pool liquidity/utilization, average APR, and recent loan events. It is clear what the tool does, though it does not explicitly distinguish itself from near-siblings like get_protocol_stats or get_borrow_quote.

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

Usage Guidelines2/5

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

There is no when-to-use statement, no exclusion, and no reference to any alternative tool despite several plausible overlaps (get_protocol_stats, get_borrow_quote, get_activity). The second sentence explains domain history (retired P2P integration) rather than telling the agent when to pick this tool.

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