# Luca

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

- name: network.luca/luca
- version: 0.21.0
- connection class: R1 (autonomous)
- trust: 83/100 flags: no-repository
- quality: 86/100 (new)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/network.luca%2Fluca
- tools: https://api.protogrid.dev/v1/servers/network.luca%2Fluca/tools

**An agent can connect on its own if it already holds `luca_agent_key`.** Remote endpoint behind a static API key or header. The registry never sees the value; the agent fills the placeholder.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "luca": {
      "type": "http",
      "url": "https://app.luca.network/mcp",
      "headers": {
        "Authorization": "Bearer ${luca_agent_key}"
      }
    }
  }
}
```

Placeholders to fill: `${luca_agent_key}`.

## Trust

- hygiene: 80
- liveness: 100
- freshness: 100
- provenance: 55
- drivers: +dns-namespace +website +reachable +uptime-100% +updated-6d-ago -no-repository
- Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed.

## Quality 86/100 (new)

### protocol: 75 (weight 25)

- warn `protocol.modern`: newest supported version is 2025-11-25; 2026-07-28 not supported, older versions are deprecated until 2027-07-28
- n/a `protocol.stateless`: only applies to 2026-07-28 servers
- pass `protocol.transport`: streamable HTTP
- n/a `protocol.list_ttl`: only applies to 2026-07-28 servers

### authorization: n/a (weight 15)

- n/a `auth.prm`, `auth.as_metadata`, `auth.cimd`: no remote uses OAuth
- n/a `auth.secret_in_url`: no templated URL

### tool hygiene: 94 (weight 30)

- pass `tools.descriptions`: every tool has a description
- pass `tools.description_length`: descriptions are concise
- pass `tools.schemas`: every tool has an object input schema
- pass `tools.annotations`: 10 of 10 tools declare readOnlyHint or destructiveHint
- warn `tools.directory_hints`: 7 of 10 tools declare all four hints; missing: verify_record (destructiveHint); my_exceptions (destructiveHint); get_intent (destructiveHint)
- pass `tools.token_cost`: about 3,321 tokens to load every tool
- pass `tools.api_dump`: tools are not a one-to-one API dump
- pass `tools.hidden_text`: no hidden text in tool names, descriptions, schemas or annotations
- pass `tools.poisoning`: no instructions aimed at the model in tool definitions

### stability: n/a (weight 15)

- n/a `stability.changes`, `stability.rug_pull`, `stability.new_links`: tool history recorded for 5 of the 7 days needed

### dependencies: n/a (weight 15)

- n/a `deps.known_vulns`, `deps.mcp_sdk_version`, `deps.resolvable`: no npm or PyPI package

- tools: 10, about 3,321 tokens to load them all
- tool set hash: 43a13f5c08832443b02a4e3c57120049
- badge: [![protogrid quality](https://protogrid.dev/badge/network.luca/luca.svg)](https://protogrid.dev/servers/network.luca/luca)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Definition changes

_No changes to tool, prompt or resource template definitions recorded._

## Remotes

- https://app.luca.network/mcp (streamable-http, auth api_key ${luca_agent_key}, reachable true, uptime30d 1)

## Packages

_none_

## Tools (10)

- `cancel_intent`: 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.
- `check_payment`: 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.
- `get_intent`: 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.
- `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.
- `record_intent`: 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).
- `record_sale`: 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).
- `record_settlement`: 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).
- `record_usage`: 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.
- `report_delivery`: 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.
- `verify_record`: Check that a Luca record of one of your payments is intact and signed by Luca.
