Skip to main content
Glama

Gavel Loan Status

get_loan_status

Returns the current state of a single Gavel loan and what action, if any, is available to whom. Designed to be re-called during a long conversation so lifecycle changes can be surfaced to the user.

'next_actions' is an array of {actor, action, calldata_tool} tuples naming the tool that prepares each transaction, so the next step can be taken without guessing. 'lifecycle_summary' gives the borrower's and lender's view in plain English.

This is descriptive data; no recommendation is provided. Verify on-chain before acting on a reported maturity or default.

Returns: { loan_id, state, borrower, lender, principal, repayment, apr, matures_at, time_remaining_seconds, outcome, next_actions }.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
loan_idYesThe loan id. For v1 auctions this equals the auction id — see get_user_positions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations to carry the safety or behavior burden, the description does so comprehensively. It discloses that the data is descriptive, provides no recommendation, identifies that next_actions are tuples naming the calldata-preparation tool, and explicitly warns to verify on-chain before acting. These are meaningful behavioral traits disclosed beyond the schema.

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?

The description is front-loaded with the core purpose, then adds behavioral caveats, field semantics, and a return shape. Every sentence earns its place, and the structure moves from what it does, to how to use it, to what it returns, without redundancy.

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

Completeness5/5

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

Given a single parameter, no annotations, and no output schema, the description is complete. It explains the purpose, the usage pattern, the meaning of key response fields, the safety warning, and the full return object shape. An agent has enough context to select and invoke the tool correctly.

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% for the single required parameter, and the schema already explains loan_id, including the v1 auction equivalence and a pointer to get_user_positions. The tool description does not add further meaning to the parameter itself, so the baseline of 3 is appropriate.

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 opens with a specific verb and resource: 'Returns the current state of a single Gavel loan and what action, if any, is available to whom.' It clearly scopes the tool to a single loan, which distinguishes it from multi-item siblings like get_user_positions and find_auctions_matching_criteria, and distinguishes it from transaction preparation tools by noting it is descriptive data.

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 explicitly states when this tool should be re-called: during a long conversation to surface lifecycle changes to the user. It also warns to verify on-chain before acting on a reported maturity or default, providing practical guidance. It does not explicitly name alternative tools or state when not to use it, so it misses full exclusion 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.