Skip to main content
Glama

Prepare a collateral claim

build_claim_collateral
Read-onlyIdempotent

Returns the unsigned transaction for a lender to claim their share of collateral from loans that passed their due date without a full buyback.

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_collateral"
  }
}

Input Schema

NameRequiredDescriptionDefault
loan_idsYesIDs of past-due loans you funded, from get_lender_position (1 to 50)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / loan_ids / description
      Added value: +"IDs of past-due loans you funded, from get_lender_position (1 to 50)"
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety bar is low. The description still adds real context beyond them: the output is an unsigned transaction (the agent must sign and submit it) and the claim is only valid for loans past due with an incomplete buyback.

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?

One front-loaded sentence that identifies the return value and the eligibility condition with no filler. Nothing could be removed without losing scope information.

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 one-parameter read tool with rich annotations, the description covers what is returned and who qualifies. It leaves open the follow-up step (signing and submitting the unsigned transaction) and any per-loan claim-fraction mechanics, but nothing essential to a correct call is missing.

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% and the single loan_ids parameter already documents format, min/max bounds, and its source (get_lender_position). The description adds no further meaning about the parameter, 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?

States a specific verb and resource: returns an unsigned transaction letting a lender claim collateral. The qualifying clause 'loans that passed their due date without a full buyback' scopes it apart from build_claim_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 Guidelines3/5

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

The eligibility condition (past-due loans without a full buyback) implies when the tool applies, and the schema points to get_lender_position for IDs. There is no explicit when-not guidance and no mention of build_claim_proceeds as the alternative for loans that were fully bought back.

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.