Skip to main content
Glama

Claim a defaulted P2P loan

p2p_claim_default
DestructiveIdempotent

Claim the collateral from a defaulted P2P loan. Returns any surplus to the borrower. Requires lender signature on mainnet.

Instructions

After the repay window closes unpaid, the lender claims the collateral (any agreed surplus returns to the borrower). Irreversibly settles the loan. Requires the signing wallet to be the lender (mainnet gated).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
chainYes
Behavior4/5

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

Annotations already indicate destructiveHint (true) and readOnlyHint (false); the description adds value by specifying what gets destroyed ('irreversibly settles the loan') and the collateral mechanics (surplus returns to borrower). No contradictions with annotations.

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 that are front-loaded with the core action, no filler, every sentence adds essential information.

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

Completeness3/5

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

The tool has no output schema, so the description should explain the return value (e.g., transaction hash) and potential errors. It only describes the effect. Annotations cover safety, but output and failure modes are missing. Adequate for simple tools, but could be more complete.

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

Parameters2/5

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

With 0% schema description coverage, the description should compensate by explaining the parameters 'id' (likely loan ID) and 'chain' (enum for blockchain). It does not mention either, leaving the agent to infer from context. This is a significant gap.

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?

The description clearly states that this tool is for claiming collateral after default, specifying the action ('claims the collateral'), the context ('after the repay window closes unpaid'), and the irreversibility ('irreversibly settles the loan'). It effectively distinguishes from sibling tools like p2p_repay (repayment) and p2p_cancel (cancellation).

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?

The description gives context on when to use ('after the repay window closes unpaid') and a prerequisite ('requires the signing wallet to be the lender, mainnet gated'). It lacks explicit when-not-to-use or direct comparison to alternatives, but the provided guidance is clear and actionable.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Rotwang9000/flashbank-net'

If you have feedback or need assistance with the MCP directory API, please join our Discord server