Luca

Financial recordkeeping for AI agent payments: declare, check and record each payment.

사용해야 할까요

품질 및 안전성

A
설명 품질
98%
스키마 완전성
86%
이름 품질
96%
오염 위험
100%
권한 일치
100%
프로토콜 준수
100%

도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.

컨텍스트 비용

~3,192토큰 (도구 정의)
~2.6 KB일반적인 응답 크기
상당한 주의 영향 (128k 컨텍스트의 2.49%)

이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.

설치

원클릭 설치

`claude_desktop_config.json` 파일에 다음을 추가하세요:

{
  "mcpServers": {
    "luca": {
      "url": "https://app.luca.network/mcp"
    }
  }
}

원격 엔드포인트

https://app.luca.network/mcpstreamable-http

할 수 있는 일

도구 목록

도구 (10)

🟢 읽기 전용🟡 쓰기🔴 삭제⚪ 알 수 없음
🟢record_intent(purpose, mandate_id, counterparty, expected_amount_minor, max_amount_minor, ...)

Declare what you are about to buy and why, before paying. Returns an intent ID, the mandate check and the expiry. It also returns policy_check and policy_warning: whether the purchase is inside your company's spending rules. Amounts are integers in the currency's minor unit (cents; 6 decimals for USDC).

입력 스키마

{
  "type": "object",
  "properties": {
    "purpose": {
      "type": "string",
      "description": "Why you are paying, in one sentence. This is what an auditor reads."
    },
    "mandate_id": {
      "description": "The mandate you act under",
      "type": "string"
    },
    "counterparty": {
      "description": "Who will be paid",
      "type": "string"
    },
    "expected_amount_minor": {
      "description": "The amount you expect to pay",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "max_amount_minor": {
      "description": "The most you may pay under this intent",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "currency": {
      "type": "string"
    },
    "rail": {
      "description": "ramp, x402, stripe and so on",
      "type": "string"
    },
    "rail_ref": {
      "description": "The rail reference the payment will carry, e.g. {\"wallet\":\"0x…\"}",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "string"
      }
    },
    "terms": {
      "description": "Exactly what you were asked to buy, e.g. {\"check_in\":\"2026-11-02\"}",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": [
          "string",
          "number",
          "boolean"
        ]
      }
    },
    "transaction_context": {
      "description": "What the purchase is for. It decides how the books treat it: delivery_to_customer is a cost of revenue, held_for_resale is inventory, prepaid_multi_period is a prepayment",
      "type": "string",
      "enum": [
        "delivery_to_customer",
        "internal_use",
        "office_use",
        "client_engagement",
        "production_input",
        "held_for_resale",
        "prepaid_multi_period"
      ]
    },
    "expires_in": {
      "description": "How long the intent stays valid, as an ISO 8601 duration (PT1H, P3D). Default P3D.",
      "type": "string"
    },
    "expires_in_hours": {
      "description": "The same in hours, if you prefer a number",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "purpose"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢check_payment(rail, amount_minor, currency, counterparty, intent_id, ...)

Ask Luca, before you pay, whether this payment is allowed: your registration approved, an open intent that fits, within your mandate. Returns approve or decline with the reasons, sealed. If it says decline, do not pay. policy_warning true means the payment is outside your company's spending policy; finance is told even when the answer is approve.

입력 스키마

{
  "type": "object",
  "properties": {
    "rail": {
      "type": "string",
      "description": "x402, stripe, ramp and so on"
    },
    "amount_minor": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "The amount in the currency's minor unit (cents; 6 decimals for USDC)"
    },
    "currency": {
      "type": "string"
    },
    "counterparty": {
      "description": "Who will be paid",
      "type": "string"
    },
    "intent_id": {
      "description": "The intent you are paying under",
      "type": "string"
    },
    "nonce": {
      "description": "x402: the nonce you are about to sign",
      "type": "string"
    }
  },
  "required": [
    "rail",
    "amount_minor",
    "currency"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢record_settlement(rail, source_id, amount_minor, currency, occurred_at, ...)

Report a payment after you make it, on a rail Luca does not read directly (for example an x402 or MPP payment from your own wallet). Call it once the payment has gone through, with the intent_id from record_intent, so Luca matches what was paid to what you declared. Luca seals the payment as a record and raises any difference (another amount, another payee, no intent) for your owner. Returns outcome (created; unchanged when the same rail and source_id were already reported, so a retry never records it twice; versioned when it corrects an earlier report, keeping the first), record_id, the intent_id it matched, the match result and the mandate check. Amounts are integers in the currency's minor unit (cents; 6 decimals for USDC).

입력 스키마

{
  "type": "object",
  "properties": {
    "rail": {
      "description": "x402, stripe, mpp and so on (mpp when you send mpp)",
      "type": "string"
    },
    "source_id": {
      "description": "The rail's own reference: transaction hash, charge ID (for MPP, the receipt's reference is used)",
      "type": "string"
    },
    "amount_minor": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "description": "The amount paid, in the currency's minor unit"
    },
    "currency": {
      "type": "string",
      "description": "ISO 4217 code or token symbol, such as USD or USDC"
    },
    "occurred_at": {
      "type": "string",
      "description": "ISO 8601 time of payment"
    },
    "counterparty": {
      "description": "Who was paid",
      "type": "string"
    },
    "intent_id": {
      "description": "The intent this payment settles, from record_intent",
      "type": "string"
    },
    "memo": {
      "description": "A short note shown to finance",
      "type": "string"
    },
    "state": {
      "description": "pending if the rail has not confirmed it yet; default cleared",
      "type": "string",
      "enum": [
        "cleared",
        "pending"
      ]
    },
    "funded_from": {
      "description": "For a payment drawn from an x402 deposit (a channel voucher or escrow capture)",
      "type": "string",
      "const": "x402_deposit"
    },
    "x402": {
      "description": "For x402: requirements, authorization (no signature) and settlement",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "mpp": {
      "description": "For MPP (Stripe or Tempo): send the headers as you got them; Luca checks them and keeps no token or signature. rail and source_id may be left out",
      "type": "object",
      "properties": {
        "credential": {
          "type": "string",
          "description": "The Authorization header value you sent (Payment <base64url>)"
        },
        "receipt": {
          "description": "The Payment-Receipt header the seller returned",
          "type": "string"
        },
        "challenge": {
          "description": "The WWW-Authenticate: Payment challenge you paid",
          "type": "string"
        }
      },
      "required": [
        "credential"
      ]
    },
    "ap2": {
      "description": "For AP2: Luca checks the chain's signatures and constraints against this payment and keeps no token",
      "type": "object",
      "properties": {
        "mandate": {
          "type": "string",
          "description": "The AP2 mandate chain you presented (SD-JWTs joined by ~~)"
        },
        "receipt": {
          "description": "The AP2 payment receipt, if you got one",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "object",
              "propertyNames": {
                "type": "string"
              },
              "additionalProperties": {}
            }
          ]
        }
      },
      "required": [
        "mandate"
      ]
    },
    "mastercard": {
      "description": "For Mastercard Agent Pay: the Verifiable Intent layers you presented; Luca checks them against this payment and keeps no token",
      "type": "object",
      "properties": {
        "l1": {
          "type": "string",
          "description": "Verifiable Intent layer 1: the credential provider's SD-JWT"
        },
        "l2": {
          "type": "string",
          "description": "Layer 2, the cardholder's mandate, as presented to the network"
        },
        "l3": {
          "description": "Layer 3a, your payment layer (autonomous mode)",
          "type": "string"
        }
      },
      "required": [
        "l1",
        "l2"
      ]
    },
    "evidence": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "fees": {
      "description": "Fees around the payment, each its own line: gas, a facilitator's or platform's fee, a router's or marketplace's cut",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "network",
              "facilitator",
              "platform",
              "marketplace",
              "routing",
              "processing",
              "fx",
              "other"
            ]
          },
          "amount_minor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "currency": {
            "description": "Defaults to the payment's currency",
            "type": "string"
          },
          "charged_by": {
            "description": "Who charged it: the chain, the facilitator, the platform",
            "type": "string"
          },
          "borne_by": {
            "type": "string",
            "enum": [
              "payer",
              "payee"
            ],
            "description": "Whose cost it is"
          },
          "paid_separately": {
            "type": "boolean",
            "description": "true when money moved for the fee apart from amount_minor (gas, a fee on top); false when it was inside the payment or taken out of it"
          },
          "within_authorization": {
            "description": "true when the payer's own authorization covered it, so it counts against the intent's cap",
            "type": "boolean"
          }
        },
        "required": [
          "kind",
          "amount_minor",
          "borne_by",
          "paid_separately"
        ]
      }
    }
  },
  "required": [
    "amount_minor",
    "currency",
    "occurred_at"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
⚪report_delivery(intent_id, source, fields, document_sha256)

Report what the merchant actually confirmed (booking confirmation, receipt), using the same field names as the intent's terms. Luca compares them and raises any difference to your owner.

입력 스키마

{
  "type": "object",
  "properties": {
    "intent_id": {
      "type": "string"
    },
    "source": {
      "type": "string",
      "enum": [
        "merchant_confirmation",
        "receipt",
        "agent"
      ]
    },
    "fields": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": [
          "string",
          "number",
          "boolean"
        ]
      }
    },
    "document_sha256": {
      "description": "SHA-256 of the confirmation or receipt file",
      "type": "string"
    }
  },
  "required": [
    "intent_id",
    "source",
    "fields"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🔴cancel_intent(intent_id, reason)

Withdraw an intent you will not pay, for example because the payment failed or the purchase was called off. Say why. A payment made under it afterwards is outside consent.

입력 스키마

{
  "type": "object",
  "properties": {
    "intent_id": {
      "type": "string"
    },
    "reason": {
      "type": "string"
    }
  },
  "required": [
    "intent_id",
    "reason"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_intent(intent_id)

Look up one of your intents by its ID. Use it before paying to confirm the intent is still open, or after paying to confirm the payment matched it. Returns intent_id; status (open: waiting for its payment; matched: a payment settled it; expired: its time ran out; cancelled: you withdrew it); matched_source, the payment that settled it; payload, what you declared; and Luca's seal with its verification. You see only your own intents. Changes nothing.

입력 스키마

{
  "type": "object",
  "properties": {
    "intent_id": {
      "type": "string",
      "description": "The intent's ID, as record_intent returned it"
    }
  },
  "required": [
    "intent_id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢verify_record(record_id)

Check that a Luca record of one of your payments is intact and signed by Luca.

입력 스키마

{
  "type": "object",
  "properties": {
    "record_id": {
      "type": "string"
    }
  },
  "required": [
    "record_id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢my_exceptions

List the open items about your own payments that your owner or finance has to look at: a payment outside consent, a mandate breach, a payment with no intent, an intent never settled, a delivery that differs from the terms. Use it after paying, or before a new purchase, to see what is waiting on you. Returns data, one item per payment with its type, record_id or intent_id, amount, materiality tier, who is asked (ask) and the detail; and totals by tier. Takes no input. Changes nothing.

입력 스키마

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#"
}
⚪record_sale(payment_id, product, service_period, description, reference)

When your company is the seller: what a payment you received was for and the service period it covers, by the payment's own reference. Luca uses the period to recognize the revenue over it (ASC 606 / IFRS 15).

입력 스키마

{
  "type": "object",
  "properties": {
    "payment_id": {
      "type": "string",
      "description": "The payment's reference on its rail: transaction hash, charge ID"
    },
    "product": {
      "description": "A product code, e.g. data_access",
      "type": "string"
    },
    "service_period": {
      "description": "First and last day of service (YYYY-MM-DD), or a start and an ISO 8601 duration such as P1M",
      "type": "object",
      "properties": {
        "start": {
          "type": "string"
        },
        "end": {
          "type": "string"
        },
        "duration": {
          "type": "string"
        }
      }
    },
    "description": {
      "type": "string"
    },
    "reference": {
      "description": "Your invoice or order reference",
      "type": "string"
    }
  },
  "required": [
    "payment_id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢record_usage(customer, amount_minor, currency, occurred_at, reference)

When your company is the seller of prepaid credits (credits a customer paid for in advance): report what a customer used. Luca seals the usage, and at the month's close moves that amount from the contract liability (credits sold, not yet used) to revenue. Report each use once. With a reference, the same reference sent again is refused, so a retry cannot count it twice. Returns usage (id, customer, amount_minor, currency, occurred_at, reference) and its seal. Not for payments you make: use record_settlement for those.

입력 스키마

{
  "type": "object",
  "properties": {
    "customer": {
      "type": "string",
      "description": "The wallet address or name the credits were bought under"
    },
    "amount_minor": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "The amount used, in the currency's minor unit (cents; 6 decimals for USDC)"
    },
    "currency": {
      "type": "string",
      "description": "The currency the credits were sold in: ISO 4217 code or token symbol, such as USD or USDC"
    },
    "occurred_at": {
      "description": "ISO 8601 time of use; default now",
      "type": "string"
    },
    "reference": {
      "description": "Your own reference for this usage, so it is never counted twice",
      "type": "string"
    }
  },
  "required": [
    "customer",
    "amount_minor",
    "currency"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

커뮤니티

이 서버 평가하기

증거

최근 관측

검증됨버전이 기록되지 않음도구 10개