Skip to main content
Glama

Prepare a Collateral Claim

prepare_claim_collateral_calldata

Builds an unsigned transaction blueprint for a lender to claim the collateral on a defaulted Gavel loan.

Validates that you are the lender and that the loan has passed maturity without repayment. Chain state is authoritative — a repayment in the current block may not be indexed yet, so this tool warns rather than asserts when the margin is thin.

Returns an unsigned transaction blueprint for the requested intent. The user is responsible for reviewing, signing, and broadcasting via their own wallet. Aletheia does not hold keys or dispatch transactions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
loan_idYesThe defaulted loan.
networkNoNetwork. Default 'arbitrum-one' (mainnet, real funds).arbitrum-one
lender_addressYesYour address — must match the loan's lender.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well. It discloses that the tool validates lender identity and maturity, warns rather than asserts when chain state may be stale, returns only an unsigned blueprint, and does not hold keys or broadcast transactions. This gives the agent an accurate model of the tool's side effects and limitations.

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?

The description is compact and front-loaded with the core purpose. The third paragraph repeats the idea of an unsigned transaction blueprint from the first paragraph, creating mild redundancy, but the overall structure is efficient and readable.

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?

Given no output schema, the description covers the essential behavior: validation, chain-state handling, return of an unsigned blueprint, and user responsibility for signing/broadcasting. It could be slightly more explicit about the exact output shape, but for a calldata-preparation tool the description is sufficiently complete.

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 description coverage is 100%, so each parameter is already documented in the schema. The description reinforces the role of lender_address ('must match the loan's lender') and loan_id ('defaulted loan'), but does not add semantic detail beyond what the schema provides.

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 states a specific action ('Builds an unsigned transaction blueprint'), a specific resource ('collateral on a defaulted Gavel loan'), and a clear actor ('a lender'). This distinguishes it from sibling calldata-preparation tools such as prepare_repay_loan_calldata or prepare_claim_refund_calldata.

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 clear context for when to use it: the caller is the lender and the loan has defaulted after maturity. It does not explicitly list alternatives or exclusions, but the use case is unambiguous enough that an agent can select this tool correctly without further guidance.

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.