Skip to main content
Glama
WirterNow

AI Agent Bank MCP Server

by WirterNow

borrow

Obtain token loans from the lending pool using collateral or reputation, with automatic USDC pool selection. Requires an API key.

Instructions

Borrow tokens from the LendingPool with reputation-based collateral. Auto-selects the USDC pool. Requires api_key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amountYesAmount to borrow
api_keyYesYour api_key from register_agent
urgencyNoUrgency level 1-10 (adds interest premium)
agent_idYesUUID of the borrowing agent
collateral_tokenYesToken symbol for collateral: WMATIC or WETH
collateral_amountYesAmount of collateral to deposit

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations provided, so description must carry full burden. Mentions 'reputation-based collateral' and 'auto-selects USDC pool' but omits important traits like potential failure modes, collateral locking, or response format. Does not disclose if the tool mutates state or requires specific permissions.

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, no fluff, front-loaded with key action. Could be more structured (e.g., bullet points) but efficient for length.

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

Completeness2/5

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

For a tool with 6 parameters, no output schema, and no annotations, the description is too brief. Missing details on return values, error handling, prerequisites (e.g., agent reputation), and how the USDC pool auto-selection works. Does not help agent select among many sibling tools.

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%, so each parameter is described in the schema. The description adds context about collateral and pool selection but does not enhance individual parameter meanings. Baseline of 3 is appropriate as description provides marginal extra value.

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?

Clearly states verb 'borrow' and resource 'LendingPool' with specific details (reputation-based collateral, auto-selects USDC pool). However, does not distinguish from sibling tools like borrow_cc or borrow_capability, which could cause ambiguity.

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 guidance on when to use this tool vs alternatives. Mentions requirement of api_key but does not specify context or exclusions. Sibling list includes other borrowing tools, but description offers no comparative advice.

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