Skip to main content
Glama

x402-mcp

agent_credit_facility

Flash-credit and liquidity facility for autonomous AI agents. Features real-time credit scoring, uncollateralized/collateralized flash debt notes, and repayment tracking. Requires $0.10 USD fee. [Price: $0.10 USD]

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": {
      "action": "<action>"
    },
    "name": "agent_credit_facility"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesOperation to perform
loanIdNoExisting loan ID for repayment or status
agentIdNoAgent identifier or wallet address
purposeNoPurpose / execution workflow description
paymentProofNox402 payment proof object
durationHoursNoLoan duration in hours (1-168)
repayAmountUSDNoAmount being repaid in USD
repaymentProofHashNoTransaction hash or payment proof
requestedPrincipalUSDNoPrincipal amount requested in USD

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.5/5.0
Behavior2/5

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

No annotations exist, so the description carries the full burden. It discloses the $0.10 fee and payment requirement, which is useful, but for a tool that can create real debt obligations (draw_credit) it says nothing about credit limits, interest, default consequences, reversibility, or the x402 payment-proof flow that a required nested object implies.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, two of which restate the same price information ('Requires $0.10 USD fee. [Price: $0.10 USD]'), a redundant duplication. The opening is front-loaded, but the content is closer to marketing copy than operational guidance.

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

Completeness2/5

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

With nine parameters, a nested x402 paymentProof object, mutation actions, no annotations, and no output schema, the description should explain the payment flow and per-action field requirements. It covers none of this, so an agent could not reliably call draw_credit or repay_credit from the definition alone.

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%, so all nine parameters are already documented in the schema, including the action enum and the 1-168 hour duration range. The description adds no parameter-level meaning such as which fields apply to which action.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the resource (a flash-credit and liquidity facility) and lists capability areas (credit scoring, debt notes, repayment tracking), but it never states the actual operations an agent can perform, which live only in the action enum. It does not distinguish itself from financially adjacent siblings such as agent_slashing_insurance or a2a_dispute_escrow_gateway.

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

Usage Guidelines2/5

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

There is no statement of when to use this facility versus alternatives, no prerequisites beyond the fee, and no guidance on selecting among the four actions. An agent must reverse-engineer intended usage from the enum values alone.

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.

Resources