Skip to main content
Glama

Prepare a proceeds claim

build_claim_proceeds
Read-onlyIdempotent

Returns the unsigned transaction to claim repaid USDC from loans you funded (mode withdraw) or put it straight back into lending (mode redeploy). Get loan IDs from get_lender_position.

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": {
      "loan_ids": "<loan_ids>"
    },
    "name": "build_claim_proceeds"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNowithdraw sends the USDC to your wallet (default); redeploy puts it back into lending
loan_idsYesIDs of loans you funded, from get_lender_position (1 to 50)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / loan_ids / description
      Added value: +"IDs of loans you funded, from get_lender_position (1 to 50)"
    • addedInput schema / properties / mode / description
      Added value: +"withdraw sends the USDC to your wallet (default); redeploy puts it back into lending"
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false; the description adds the crucial behavioral fact that this only builds an unsigned transaction rather than submitting one, which tells the agent a signing/sending step follows. It does not describe the returned payload shape or any preconditions such as loan maturity, keeping it below a 5.

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, zero waste: the return behavior and mode branch come first, and the loan ID prerequisite is a short trailing pointer. Every clause earns its place.

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 build tool with no output schema, it covers what is returned (an unsigned transaction) and where inputs come from. A brief note on next steps such as simulate_transaction or signing would fully close the gap.

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%, including per-mode enum descriptions and a 1-to-50 bounds description, so the schema already carries the parameter meaning. The description restates mode behavior in one clause but adds no format or constraint detail beyond the schema, which is baseline 3.

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?

States a specific verb and resource: "Returns the unsigned transaction to claim repaid USDC from loans you funded," and names the two modes. It implicitly separates itself from build_claim_collateral by specifying USDC proceeds, though it never names that sibling explicitly.

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

Usage Guidelines4/5

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

Gives clear context for both branches (withdraw vs redeploy) and points the agent to get_lender_position as the source of loan IDs. It lacks an explicit exclusion, e.g. when to prefer build_claim_collateral, but the usage path is unambiguous.

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.