Skip to main content
Glama
nohosa001-pixel

security-gate-x402

get_agent_loan_quote

Check an autonomous AI agent's eligibility for uncollateralized USDC loans and generate the EIP-712 CreditCertificate required to submit borrowing requests to AgentLendingPool.

Instructions

Evaluates uncollateralized credit loan qualification for an autonomous AI agent and returns an EIP-712 CreditCertificate for on-chain submission to AgentLendingPool.sol on Polygon. Use this tool ONLY when an autonomous AI agent needs to borrow USDC capital uncollateralized to fund operational runway, staking deposits, or task execution. Do NOT use this tool for purchasing liability protection; use quote_agent_insurance instead. Do NOT use this tool for raw prompt injection scanning; use verify_agent_output instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agent_addressYesChecksummed EVM wallet address (0x...) of the autonomous AI agent requesting credit.0x70997970C51812dc3A010C7d01b50e0d17dc79C8
duration_daysNoLoan repayment duration in days.
requested_amount_usdcYesDesired uncollateralized loan amount in USDC.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.6

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and it does disclose key behavior: it evaluates qualification, returns an EIP-712 CreditCertificate, and is intended for on-chain submission on Polygon rather than executing the loan itself. It does not disclose failure or eligibility behavior or side effects, but the core behavioral profile is clear.

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?

Four dense, purposeful sentences with the core function front-loaded and no filler. The exclusion statements are compact and each sentence earns its place by clarifying when not to call the tool.

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?

The description covers the purpose, output type, target contract and network, and usage boundaries, which is sufficient for selecting and invoking the tool correctly. It does not explain return-value details or failure modes, but the absence of an output schema is partially mitigated by stating what the certificate is for.

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?

Input schema coverage is 100%, so the parameters already have inline descriptions and defaults. The description adds broader context about loan use cases but no parameter-specific syntax or constraints beyond the schema, so a baseline 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?

States a precise action: evaluates uncollateralized credit loan qualification for an autonomous AI agent and returns an EIP-712 CreditCertificate for on-chain submission to AgentLendingPool.sol on Polygon. It names the resource, target contract, and network, and distinguishes itself from siblings (quote_agent_insurance, verify_agent_output). This leaves no ambiguity about the tool's role.

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

Usage Guidelines5/5

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

Explicitly scopes when to use: only when an autonomous AI agent needs uncollateralized USDC capital for operational runway, staking deposits, or task execution. It also states two negative conditions with named alternatives, so an agent knows not to use it for insurance or prompt-injection scanning.

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