81trust / 100

Money Parse

by NetIntel in Documents & files

x402 APIPassing, checked 4 h ago

Normalize any messy money string into a typed decimal amount plus ISO 4217 currency — handles symbols, locale separators ($1,234.56 vs €1.234,56), magnitude suffixes (1.2M), accounting notation, and natural-language amounts — so agents can clean money values before converting or storing them, with no external data and a deterministic fast path.

POST https://netintel.dev/money/parse

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
188 ms typical, 188 ms slowest 5%
Last check
4 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://netintel.dev/money/parse" \
  -H "content-type: application/json" \
  -d '{"text":"$1,234.56"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fnetintel.dev%2Fmoney%2Fparse
const res = await pay("https://netintel.dev/money/parse", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"text":"$1,234.56"}),
});
console.log(await res.json());

Example input

{
  "text": "$1,234.56"
}

Example output

{
  "data": {
    "amount": 1234.56,
    "currency": "USD",
    "parsed": true,
    "raw": "$1,234.56",
    "reason": null
  },
  "findings": [
    {
      "detail": "Currency symbol/word maps to multiple ISO 4217 codes; resolution is best-effort",
      "rule": "currency_ambiguous"
    }
  ],
  "grade": "A",
  "meta": {
    "confidence": 0.5,
    "currency_ambiguous": true,
    "magnitude_applied": null,
    "method": "deterministic",
    "separator_assumed": "us",
    "sign_convention": "none",
    "used_llm": false
  },
  "score": 90
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
4 h agoPassed402188 ms$0.01