Skip to main content
Glama

Borrower's loans

get_borrower_loans
Read-onlyIdempotent

Every loan a wallet has opened, with status (active, partially_repaid, repaid, defaulted), buyback remaining and time until due.

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": {
      "borrower": "<borrower>"
    },
    "name": "get_borrower_loans"
  }
}

Input Schema

NameRequiredDescriptionDefault
borrowerYesBorrower wallet address on Base

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / borrower / description
      Added value: +"Borrower wallet address on Base"
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description adds value by naming the status values and the derived fields (buyback remaining, time until due), but it says nothing about ordering, pagination or how loans across markets are aggregated.

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?

A single compact sentence with the resource front-loaded and the return contents enumerated without filler. Minor cost: it is a fragment that omits the subject of the action.

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?

With no output schema, the description carries the burden of describing what comes back, and it does list the status enum and two derived fields. It is still incomplete on result volume, ordering and pagination for a potentially large per-wallet loan list.

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% with a single required 'borrower' address parameter that the schema already documents with a pattern and chain. The description only alludes to 'a wallet', adding no meaning beyond the schema, so the baseline 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?

The description states a specific verb and resource ('Every loan a wallet has opened') plus the enriched fields returned, which clearly separates it from the singular get_loan. It does not explicitly name a sibling, so it falls short of a 5.

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?

'Every loan a wallet has opened' implies the use case of enumerating a borrower's positions, but there is no explicit when-to-use or when-not-to-use guidance and no named alternative such as get_loan for a single position.

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.