Skip to main content
Glama

Lender position

get_lender_position
Read-onlyIdempotent

A lender's deposit, USDC in active loans, USDC available to withdraw, per-token limits, and every loan they funded with any repaid USDC or defaulted collateral they can claim.

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": {
      "lender": "<lender>"
    },
    "name": "get_lender_position"
  }
}

Input Schema

NameRequiredDescriptionDefault
lenderYesLender wallet address on Base

Schema Changelog

Changes observed during successful MCP inspections.

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

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds real content beyond that by specifying the returned fields — notably that claimable repaid USDC and defaulted collateral are included. It says nothing about data source/freshness (on-chain vs indexed) or behavior for unknown or never-deposited addresses, which matters for an open-world read.

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?

One dense sentence with no filler; each listed item is meaningful payload information. It is structured as a noun-phrase payload list rather than a purpose statement, which is slightly less front-loaded than an action-first sentence would be, but nothing is wasteful.

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 one required parameter, full schema coverage, and no output schema, the description's job is to convey what comes back — which it does field by field. Only the freshness/source of the data and invalid-lender behavior are missing, which are minor for a read-only snapshot tool.

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%: the single `lender` parameter is documented as an 0x-prefixed address on Base with a regex pattern. The description only says "a lender's," adding no format, chain, or validity semantics beyond the schema. Baseline 3 is appropriate since the schema carries the load.

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?

Enumerates the specific state being read (deposit, USDC in active loans, withdrawable USDC, per-token limits, funded loans with claimable proceeds/collateral), which clearly marks it as a lender-side position read and separates it in substance from get_borrower_loans and get_loan. It stops short of naming a sibling or stating a leading verb, so differentiation is implicit rather than explicit.

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?

No when-to-use statement, no preconditions, no named alternatives among the sibling tools (e.g., list_markets for limits context or build_withdraw/build_claim_proceeds for follow-up actions). An agent must infer from the enumerated payload that this is the pre-withdraw/pre-claim lookup.

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.