Skip to main content
Glama

Prepare per-token lending limits

build_set_limits
Read-onlyIdempotent

Returns the unsigned transaction to add, change or remove per-token lending limits. A limit cannot be set below what is already in active loans for that token.

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

Input Schema

NameRequiredDescriptionDefault
lenderYesLender wallet that will sign
limitsYesTokens and the max USDC to lend against each

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / lender / description
      Added value: +"Lender wallet that will sign"
    • addedInput schema / properties / limits / description
      Added value: +"Tokens and the max USDC to lend against each"
  2. First observed

TDQS

A4.2/5.0
Behavior4/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 value beyond that: it clarifies the return is an *unsigned* transaction (a payload to be signed, not an executed write) and discloses the protocol constraint preventing a limit below outstanding active loans, which the annotations cannot express.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, both load-bearing: the first identifies the output and scope, the second gives the key business rule. The output shape is front-loaded and there is no redundant phrasing.

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?

For a two-parameter builder with a fully documented nested array and no output schema, the description does what is needed: it says the return is an unsigned transaction and flags the one rule that can cause a failed or rejected call. The only minor gap is the absence of any hint about what to do with the returned transaction next (sign and submit).

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description earns above that by adding a value constraint on `limits` (cannot drop below active loan exposure) that is not present in the schema. It does not restate the asset-address-or-symbol flexibility or the limit_usdc=0 removal convention, but the schema already handles those.

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 and resource: it 'Returns the unsigned transaction to add, change or remove per-token lending limits.' The resource (per-token lending limits) is narrow enough to distinguish it from sibling builders like build_borrow or build_set_auto_redeploy without needing to name them.

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?

The three supported operations (add, change, remove) are named, which implies when to call it, and one hard precondition is given (a limit cannot be set below active loans for that token). However, there is no explicit routing guidance against alternatives (e.g. build_set_auto_redeploy or simulate_transaction) and no statement of prerequisites such as lender authorization.

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.