Free · no API key · 45 tools
CodeLint for AI agents
A public MCP server, REST API and A2A endpoint that give an AI agent 45 exact, deterministic tools — the things a language model gets wrong when it tries to do them in its head.
https://codelint.dev/mcp Why an agent needs these
A language model produces the most probable next token. That is a remarkable way to write code and a poor
way to run it. Ask one for the SHA-256 of a string and it will return sixty-four hexadecimal characters
that look right and are not. Ask when 0 0 13 * 5 next fires and it will
usually answer "Friday the 13th" — cron actually fires on every 13th and every Friday.
None of this is a reasoning failure worth fixing with a bigger model. Hashing, parsing, date arithmetic and amortisation are solved, deterministic problems. The right move is for the agent to recognise the task and call a function, which is exactly what tool use exists for.
The tools here are deliberately boring: pure functions with typed inputs and structured JSON output, no side effects, no model in the loop, and the same result every time. Each one also exists as an interactive page on this site, so a person can check what the agent was told.
Connect over MCP
The Model Context Protocol is the standard way to give an AI application tools. CodeLint speaks its Streamable HTTP transport at one
URL, with no authentication, so setup is a single line in most clients. A client that discovers servers from a
domain can read the server card, which /.well-known/ai-catalog.json points to.
Writes to local scope: this project only, private to you, stored in ~/.claude.json. Add --scope project to write .mcp.json instead, or --scope user for all your projects.
claude mcp add --transport http codelint https://codelint.dev/mcp{
"mcpServers": {
"codelint": {
"type": "http",
"url": "https://codelint.dev/mcp"
}
}
}In JSON, a remote entry must have "type". Claude Code reads an entry with a "url" and no "type" as a stdio server and skips it.
Format per the Claude Code documentation.
These snippets come from the MCP config generator, which also covers older config formats, servers that need credentials, and validating a config you already have. To watch this server answer — or to check one of your own — use the MCP server tester.
- Transport
- Streamable HTTP, stateless (JSON responses; no SSE stream, no session)
- Protocol
- 2026-07-28 (no handshake); 2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05 for clients that open with
initialize - Capabilities
- Tools only. Every tool is annotated read-only and returns
structuredContentalongside text. - Auth
- None
The 45 tools
The same list is served by tools/list over MCP and by /api/v1/tools over HTTP, with a JSON Schema
for each tool's input. Each name links to the page where a person can run the same thing by hand.
Data formats
Pretty-print a JSON document with consistent indentation, optionally sorting object keys alphabetically at every level (useful before diffing two documents). Fails with the line and column of the first syntax error if the input is not valid JSON.
{"json":"{\"b\":1,\"a\":[1,2,{\"z\":true}]}","indent":2,"sort_keys":true}Check whether text is valid JSON (RFC 8259). Returns valid=true with the top-level type, total key count and nesting depth, or valid=false with the error message and its exact line and column. Use this to find why a payload will not parse.
{"json":"{\"name\": \"Ada\", \"tags\": [\"a\", \"b\",]}"}Remove all insignificant whitespace from a JSON document, producing the smallest equivalent text. Reports the size reduction. Fails with line and column if the input is not valid JSON.
{"json":"{\n \"a\": 1,\n \"b\": [1, 2, 3]\n}"}Escape raw text so it can be embedded as a JSON string value (quotes, backslashes, newlines, control characters), or unescape an escaped JSON string back to raw text. The result does not include the surrounding double quotes.
{"text":"He said \"hi\"\nand left.","mode":"escape"}Parse CSV text with a header row into an array of JSON objects, one per row. Handles quoted fields, embedded commas and newlines, and converts numeric and boolean cells to their JSON types.
{"csv":"name,age,active\nAda,36,true\nLinus,54,false"}Convert a JSON array of flat objects into CSV text with a header row. Fields containing commas, quotes or newlines are quoted correctly.
{"json":"[{\"name\":\"Ada\",\"age\":36},{\"name\":\"Linus\",\"age\":54}]"}Parse a YAML document and return it as JSON. Reports the line of the first syntax error — useful for debugging indentation problems in Kubernetes manifests, CI configs and Compose files.
{"yaml":"server:\n port: 8080\n hosts:\n - a.example.com\n - b.example.com"}Convert a JSON document to block-style YAML with 2-space indentation.
{"json":"{\"server\":{\"port\":8080,\"hosts\":[\"a.example.com\",\"b.example.com\"]}}"}Validate a GeoJSON document against RFC 7946: geometry types, coordinate array shapes, longitude/latitude ranges, closed polygon rings and Feature/FeatureCollection structure. Returns every violation found.
{"geojson":"{\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[-0.1276,51.5072]},\"properties\":{\"name\":\"London\"}}"}Re-indent and beautify SQL, CSS, HTML or XML source. Use it to make minified or single-line code readable before reviewing or diffing it.
{"code":"select id,name from users where active=1 order by name","language":"sql"}Compare two texts line by line and return a unified diff plus counts of added, removed, changed and unchanged lines. Deterministic — use it instead of eyeballing whether two configs, prompts or files differ.
{"original":"port: 8080\nhost: localhost\ndebug: true","modified":"port: 9090\nhost: localhost\ndebug: false"}Encoding, hashing & identifiers
Encode UTF-8 text to Base64, or decode Base64 back to text. Supports the URL-safe alphabet (RFC 4648 §5) and tolerates missing padding when decoding. Use this rather than computing Base64 by hand, which models get wrong on anything longer than a few bytes.
{"text":"Hello, World! 🌍","mode":"encode"}Percent-encode text for use in a URL, or decode a percent-encoded string. In component mode (default) every reserved character is encoded, which is what a query-string value needs; with component=false the URL structure (:/?#&=) is preserved.
{"text":"q=hello world&lang=en","mode":"encode"}Decode a JSON Web Token into its header and payload, and convert the iat/nbf/exp claims to ISO timestamps with an expired flag. Decoding only: the signature is NOT verified, so never treat the result as proof the token is authentic.
{"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyLCJleHAiOjE5OTk5OTk5OTl9.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"}Compute the SHA-1, SHA-256, SHA-384 or SHA-512 digest of UTF-8 text, as hex or Base64. Use it to produce checksums, cache keys or integrity values — a model cannot compute a real hash without a tool.
{"text":"hello world","algorithm":"SHA-256"}Convert an integer between binary, octal, decimal and hexadecimal. Arbitrary precision, so 64-bit and larger values convert exactly (no floating-point rounding).
{"value":"ff","from_base":16}Convert a colour between hex, RGB and HSL, and report its WCAG contrast ratio against white and black so you can tell which text colour is legible on it.
{"color":"#1e90ff"}Generate one or more UUIDs. Version 7 (default) is time-ordered and sorts chronologically, which makes it the better choice for database primary keys; version 4 is fully random. Use this whenever a real, unique identifier is needed — a model-invented UUID is neither random nor unique.
{"version":7,"count":3}Dates & time
Convert between Unix epoch time and ISO 8601. Accepts epoch seconds or milliseconds (detected by magnitude) or any ISO 8601 date-time, and returns all forms plus the weekday. Call it with no arguments to get the current UTC time — a model has no clock of its own.
{"value":"1767225600"}Compute the exact span between two dates: total days, weeks and days, a calendar breakdown in years, months and days, and the number of business days (Monday to Friday; public holidays are not known). Leap years and month lengths are handled. Use it for ages, deadlines, contract terms and "how long until" — date subtraction is a classic place for a model to be off by one.
{"start":"2026-01-15","end":"2026-12-25"}Add or subtract years, months, weeks, days or business days from a date and return the resulting date and weekday. Month arithmetic clamps to the end of the month (31 January plus one month is the last day of February). Business days skip Saturdays and Sundays; public holidays are not known. Use negative numbers to go back in time.
{"date":"2026-01-31","months":1,"business_days":10}Convert a date and time from one IANA time zone to another, applying the daylight-saving rules in force on that date in each zone. Returns the local time, UTC offset and weekday in both zones and the UTC instant. Flags local times that occur twice or not at all around a clock change. Use it for meeting times and scheduling across regions — offsets change through the year and differ by hemisphere.
{"datetime":"2026-07-01T09:00","from_zone":"America/New_York","to_zone":"Asia/Tokyo"}Schedules, patterns & networking
Parse a standard 5-field cron expression (or an @daily-style macro), describe in words when it fires, and compute its next run times in UTC. Use it to check a schedule before deploying it — computing cron fire times by reasoning alone is error-prone, especially with day-of-month and day-of-week both set.
{"expression":"*/15 9-17 * * 1-5","count":3,"from":"2026-01-01T00:00:00Z"}Run a JavaScript (ECMAScript) regular expression against text and return every match with its index and capture groups. Use it to verify a pattern actually matches what you intend before putting it in code. Reports a syntax error if the pattern does not compile.
{"pattern":"(?<user>[\\w.]+)@(?<domain>[\\w.]+)","text":"Mail ada@example.com or bob@test.org","flags":"g"}Given an IPv4 CIDR block (e.g. 10.0.0.0/22), return its network and broadcast addresses, subnet and wildcard masks, usable host range and host count, and whether it is private (RFC 1918). Optionally split it into equal smaller subnets. IPv4 only.
{"cidr":"10.0.0.0/22","split_prefix":24}Parse raw HTTP response headers (as printed by `curl -I`) and audit them: explains each header, flags risky values (weak CSP, cookies missing Secure/HttpOnly/SameSite, permissive CORS), lists the security headers that are missing, and gives a 0–100 score.
{"headers":"HTTP/2 200\ncontent-type: text/html\nx-frame-options: DENY\nset-cookie: sid=abc; Path=/"}LLM engineering
List current large-language-model API offerings with list prices (USD per 1M input/output tokens), long-context surcharge rules, context window and max output. Covers OpenAI, Anthropic, Google, xAI, DeepSeek, Mistral and Meta. Each response states the date the prices were last verified against the providers' own pricing pages — a model's training data is always out of date on this.
{"provider":"Anthropic"}Calculate what an LLM workload costs: tokens per request × requests, at list price, with long-context surcharges applied correctly (several providers bill the whole request at a higher rate once the prompt passes a threshold). Name a model for one figure, or omit it to get every model ranked cheapest-first for the same workload.
{"input_tokens":12000,"output_tokens":800,"requests":50000,"model":"claude-sonnet-5-5"}Return the dated record of LLM API price changes, model launches, deprecations and shutdown dates, plus the computed differences between the dates the price list was re-verified. Each announced event carries the provider page it came from. Use it to answer "did the price of X change?", "when does model Y shut down?" or "what is about to change?" — none of which a model can know from training data.
{"provider":"Google","upcoming_only":true}Count how many tokens a piece of text uses. Exact for OpenAI's published o200k_base encoding; for Anthropic and Google models it returns the estimate from each provider's documented ratio, labelled as an estimate. Use it to check a prompt fits a context window or to feed llm_cost_estimate.
{"text":"The quick brown fox jumps over the lazy dog."}Reassemble a raw streamed LLM API response (server-sent events) into the message it adds up to: text, reasoning, tool calls with parsed arguments, stop reason and token usage. Understands Anthropic Messages, OpenAI Chat Completions (and compatible providers), OpenAI Responses, Gemini generateContent and Gemini Interactions. Also reports whether the stream was cut off, tool-argument JSON that never closed, and error events sent after HTTP 200. Use it to debug a captured stream instead of joining fragments by hand.
{"stream":"data: {\"object\":\"chat.completion.chunk\",\"model\":\"gpt-6.2-sol\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"Hel\"},\"finish_reason\":null}]}\n\ndata: {\"object\":\"chat.completion.chunk\",\"model\":\"gpt-6.2-sol\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"lo\"},\"finish_reason\":\"stop\"}]}\n\ndata: [DONE]\n\n"}Agentic commerce
Validate a Universal Commerce Protocol (UCP) profile document — the JSON a store publishes at /.well-known/ucp, or the profile an agent platform advertises — against the UCP specification: version format, required registries, service bindings and endpoints, capability entries and orphaned extensions, namespace authority binding of schema URLs, payment handlers, and signing keys (including leaked private key material). Pass the JSON text; this tool does not fetch URLs. Use it before publishing a profile or when a store or agent is rejected during UCP negotiation.
{"profile":"{\"ucp\":{\"version\":\"2026-08-25\",\"services\":{\"dev.ucp.shopping\":[{\"version\":\"2026-08-25\",\"spec\":\"https://ucp.dev/2026-08-25/specification/overview/\",\"transport\":\"mcp\",\"endpoint\":\"https://shop.example.com/api/ucp/mcp\",\"schema\":\"https://ucp.dev/2026-08-25/services/shopping/mcp.openrpc.json\"}]},\"capabilities\":{\"dev.ucp.shopping.cart\":[{\"version\":\"2026-08-25\",\"spec\":\"https://ucp.dev/2026-08-25/specification/shopping/cart/\",\"schema\":\"https://ucp.dev/2026-08-25/schemas/shopping/cart.json\"}]},\"payment_handlers\":{}}}"}Validate a product feed written for OpenAI's product feed schema (the format ChatGPT shopping ingests) row by row: the eleven required fields, the accepted availability values, the "amount CURRENCY" price format, URLs, GTIN length and check digit, duplicate item IDs, variant groups, checkout fields and legacy column names. Accepts CSV, TSV, JSONL or a JSON array as text and returns counts plus each finding with the first affected rows. Use it to check a feed, or a sample of one, before a merchant uploads it. It checks the file only; it cannot tell whether URLs load or what the upload itself will accept.
{"feed":"item_id,title,description,url,brand,seller_name,image_url,availability,price,target_countries,store_country\nMUG-1,Blue ceramic mug,Glazed stoneware mug,https://shop.example.com/p/mug-1,Northwind,Northwind,https://shop.example.com/i/mug-1.jpg,in_stock,18.00 USD,US,US\nMUG-2,Green ceramic mug,Glazed stoneware mug,https://shop.example.com/p/mug-2,Northwind,Northwind,https://shop.example.com/i/mug-2.jpg,available,$18,US,US\n"}Verify the signature on an HTTP request, response or webhook and explain a failure. Handles RFC 9421 HTTP Message Signatures with RFC 9530 Content-Digest (the scheme UCP uses) for ecdsa-p256-sha256, ecdsa-p384-sha384, ed25519, hmac-sha256, rsa-pss-sha512 and rsa-v1_5-sha256, and the ACP order-webhook Merchant-Signature HMAC. Pass the message as text (start line, headers, blank line, body) and the key (a JWK, JWK Set, UCP profile, PEM public key or shared secret). Returns the verdict, the exact signature base that was checked, and specific causes such as a changed body, a missing covered component, a wrong key or a DER-encoded ECDSA signature. Never send a production private key; only a public key or a test secret is needed.
{"message":"POST /agentic_checkout/webhooks/order_events HTTP/1.1\nHost: agent.example.com\nContent-Type: application/json\nMerchant-Signature: t=1794821400,v1=a0976932a3bc2731fcc3db989509a8850ecf8712a183fd1d0e4f9d2a3a7dd5e8\n\n{\"type\":\"order_update\",\"data\":{\"id\":\"ord_123\"}}","key":"whsec_test_secret","now":1794821442}Decode an SD-JWT or SD-JWT VC (RFC 9901 selective-disclosure JWT, the credential format of the EU Digital Identity Wallet and of agent payment mandates): split the issuer-signed JWT, the disclosures and the key-binding JWT; hash each disclosure and match it to the digest that references it; rebuild the claims a verifier ends up with; and check the key-binding hash, audience, nonce and time claims. Verifies the issuer signature when a public key is supplied (JWK, JWK Set or PEM) and the key-binding signature from the cnf claim. A plain JWT decoder shows only digests; use this to see what a credential actually discloses and whether it holds together. Never send a private key.
{"token":"eyJhbGciOiJFUzI1NiIsInR5cCI6ImV4YW1wbGUrc2Qtand0In0.eyJpc3MiOiJodHRwczovL2lzc3Vlci5leGFtcGxlIiwiaWF0IjoxNzk0ODIxNDAwLCJnaXZlbl9uYW1lIjoiRXJpa2EiLCJfc2QiOlsiVFpqb3VPVHJCS0V3VU5qTkRzOXllTXpCb1FuOEZGTFBhSmpSUm1BdHdyTSJdLCJfc2RfYWxnIjoic2hhLTI1NiJ9.3aUlttz9sX7x1ynbkTZvK33VGeDtVetPGCHk-kf0zIeP2VFFDRKyYpn3caBGIiEOiyOizS17GpkbN6ktuyKrPg~WyJfMjZiYzRMVC1hYzZxMktJNmNCVzVlcyIsImZhbWlseV9uYW1lIiwiTcO2Yml1cyJd~"}Payment formats & identifiers
Check Indian identifiers by structure and check digit: GSTIN (state code, embedded PAN, check character), PAN, TAN, IFSC, Aadhaar (Verhoeff check digit), CIN and Udyam registration numbers. Pass one identifier or many, one per line; the type is detected unless given. Returns whether each is well-formed, a breakdown of what each part encodes, and which character is wrong. Format only: it cannot tell whether an identifier has been issued or is active. Aadhaar numbers are always masked in the output.
{"ids":"29AAAAA1303P1ZV"}Decode the text inside a payment QR code or payment link and check it: EMVCo merchant-presented codes (the tag-length-value format behind Pix, PromptPay, DuitNow, BharatQR, PayNow, QRIS and others) with the CRC recomputed and mandatory fields checked, UPI payment links (upi://pay?…), the SEPA credit transfer QR code (EPC069-12) and the Swiss QR-bill. Returns the scheme, payee, amount and currency, every field named, and what is wrong. Pass the decoded text, not an image. Use it instead of parsing lengths and computing a CRC by hand.
{"payload":"upi://pay?pa=merchant@examplebank&pn=Example%20Store&am=249.00&cu=INR&tn=Order%201042"}Parse a US ACH file in the NACHA fixed-width format (94 characters per record) and check it: record order and nesting, entry and addenda counts, the entry hash, debit and credit totals at batch and file level, the block count and padding, routing-number check digits, transaction and service class codes, and field formats. Returns who originates the file, the batches with their calculated totals, and each problem with its line and column range. Account numbers are always masked in the output. Checks the published file format, not the full Nacha rulebook or one bank's extra requirements.
{"file":"101 12345678019876543212611270930A094101FIRST EXAMPLE BANK TIDEWATER KAYAKS LLC \n5220TIDEWATER KAYAKS 1987654321PPDPAYROLL 261201 1123456780000001\n6220123456724400123456 0000184250EMP0001 MARISOL QUINTERO 0123456780000001\n62209876543877001234 0000212075EMP0002 DEVON ACHTERBERG 0123456780000002\n632111111118000987654321 0000050000EMP0002 DEVON ACHTERBERG 0123456780000003\n6221231231235550001111 0000163310EMP0003 PRIYA RAMASWAMY 0123456780000004\n6221010101351234500099 0000198840EMP0004 TOBIAS LINDQVIST 0123456780000005\n822000000500446355460000000000000000008084751987654321 123456780000001\n9000001000001000000050044635546000000000000000000808475 \n9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999\n"}Check a nine-digit US ABA routing (transit) number: the check-digit rule, with the weighted sum shown, and what the first two digits indicate (Federal Reserve district, thrift, electronic or traveler's cheque series). Checks the number only; it does not say whether the number is assigned to a bank.
{"routing_number":"123456780"}Read an ISO 20022 XML payment message as plain payments and check it. Interprets pain.001 (credit transfer initiation), pain.008 (direct debit), pain.002 and pacs.002 (status reports), pacs.008 (interbank credit transfer), pacs.004 (return), camt.052/053/054 (account reports, statements, notifications) and the business application header, across their published versions. Returns the message type and version, the header facts, each payment or statement entry with parties, amounts and references, totals by currency, and findings: schema violations for the exact version, control sum and transaction count mismatches, IBAN check digits, currency and amount rules, and SEPA rules when the message declares SEPA. Use it instead of reading the XML by eye.
{"xml":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Document xmlns=\"urn:iso:std:iso:20022:tech:xsd:pain.001.001.09\">\n <CstmrCdtTrfInitn>\n <GrpHdr>\n <MsgId>MSG-2026-11-20-0001</MsgId>\n <CreDtTm>2026-11-20T09:30:00+01:00</CreDtTm>\n <NbOfTxs>2</NbOfTxs>\n <CtrlSum>1649.90</CtrlSum>\n <InitgPty>\n <Nm>Lindqvist Fahrradwerk GmbH</Nm>\n </InitgPty>\n </GrpHdr>\n <PmtInf>\n <PmtInfId>PMT-2026-11-20-A</PmtInfId>\n <PmtMtd>TRF</PmtMtd>\n <BtchBookg>true</BtchBookg>\n <NbOfTxs>2</NbOfTxs>\n <CtrlSum>1649.90</CtrlSum>\n <PmtTpInf>\n <SvcLvl>\n <Cd>SEPA</Cd>\n </SvcLvl>\n </PmtTpInf>\n <ReqdExctnDt>\n <Dt>2026-11-23</Dt>\n </ReqdExctnDt>\n <Dbtr>\n <Nm>Lindqvist Fahrradwerk GmbH</Nm>\n <PstlAdr>\n <StrtNm>Hafenweg</StrtNm>\n <BldgNb>12</BldgNb>\n <PstCd>50667</PstCd>\n <TwnNm>Koeln</TwnNm>\n <Ctry>DE</Ctry>\n </PstlAdr>\n </Dbtr>\n <DbtrAcct>\n <Id>\n <IBAN>DE89370400440532013000</IBAN>\n </Id>\n </DbtrAcct>\n <DbtrAgt>\n <FinInstnId>\n <BICFI>ALPHDEB2XXX</BICFI>\n </FinInstnId>\n </DbtrAgt>\n <ChrgBr>SLEV</ChrgBr>\n <CdtTrfTxInf>\n <PmtId>\n <InstrId>INSTR-0001</InstrId>\n <EndToEndId>INV-2026-4471</EndToEndId>\n </PmtId>\n <Amt>\n <InstdAmt Ccy=\"EUR\">1500.00</InstdAmt>\n </Amt>\n <CdtrAgt>\n <FinInstnId>\n <BICFI>BETAFRP2XXX</BICFI>\n </FinInstnId>\n </CdtrAgt>\n <Cdtr>\n <Nm>Atelier Moreau SARL</Nm>\n </Cdtr>\n <CdtrAcct>\n <Id>\n <IBAN>FR1420041010050500013M02606</IBAN>\n </Id>\n </CdtrAcct>\n <Purp>\n <Cd>SUPP</Cd>\n </Purp>\n <RmtInf>\n <Ustrd>Invoice 4471, frames and forks</Ustrd>\n </RmtInf>\n </CdtTrfTxInf>\n <CdtTrfTxInf>\n <PmtId>\n <InstrId>INSTR-0002</InstrId>\n <EndToEndId>INV-2026-4472</EndToEndId>\n </PmtId>\n <Amt>\n <InstdAmt Ccy=\"EUR\">149.90</InstdAmt>\n </Amt>\n <Cdtr>\n <Nm>Van Dijk Onderdelen BV</Nm>\n </Cdtr>\n <CdtrAcct>\n <Id>\n <IBAN>NL91ABNA0417164300</IBAN>\n </Id>\n </CdtrAcct>\n <RmtInf>\n <Strd>\n <CdtrRefInf>\n <Tp>\n <CdOrPrtry>\n <Cd>SCOR</Cd>\n </CdOrPrtry>\n <Issr>ISO</Issr>\n </Tp>\n <Ref>RF18539007547034</Ref>\n </CdtrRefInf>\n </Strd>\n </RmtInf>\n </CdtTrfTxInf>\n </PmtInf>\n </CstmrCdtTrfInitn>\n</Document>\n"}Read a structured electronic invoice as an invoice and check it. Handles European EN 16931 invoices in UBL (Invoice, CreditNote) and UN/CEFACT CII syntax — the formats XRechnung, Peppol BIS Billing 3.0, Factur-X and ZUGFeRD carry — and Indian GST e-invoices (the invoice JSON sent to the Invoice Registration Portal, and the signed QR code token printed on the invoice). Returns the format and profile, seller, buyer, lines, tax breakdown and totals, and findings that name the rule broken: required business terms, line and total arithmetic, VAT breakdown, code lists, and Peppol, XRechnung and Indian portal rules. A viewer with checks, not a conformance validator: it does not run the official Schematron rules. Pass XML or JSON text; for a Factur-X PDF, pass the embedded XML.
{"invoice":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Invoice xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\"\n xmlns:cac=\"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2\"\n xmlns:cbc=\"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2\">\n <cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0</cbc:CustomizationID>\n <cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID>\n <cbc:ID>INV-2026-1187</cbc:ID>\n <cbc:IssueDate>2026-11-16</cbc:IssueDate>\n <cbc:DueDate>2026-12-16</cbc:DueDate>\n <cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>\n <cbc:Note>Delivered to your Utrecht office on 12 November.</cbc:Note>\n <cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>\n <cbc:BuyerReference>PO-88217</cbc:BuyerReference>\n <cac:OrderReference>\n <cbc:ID>PO-88217</cbc:ID>\n </cac:OrderReference>\n <cac:AccountingSupplierParty>\n <cac:Party>\n <cbc:EndpointID schemeID=\"0088\">8712345000011</cbc:EndpointID>\n <cac:PartyName>\n <cbc:Name>Brightwater Kantoor</cbc:Name>\n </cac:PartyName>\n <cac:PostalAddress>\n <cbc:StreetName>Voorbeeldkade 14</cbc:StreetName>\n <cbc:CityName>Amsterdam</cbc:CityName>\n <cbc:PostalZone>1011 AB</cbc:PostalZone>\n <cac:Country>\n <cbc:IdentificationCode>NL</cbc:IdentificationCode>\n </cac:Country>\n </cac:PostalAddress>\n <cac:PartyTaxScheme>\n <cbc:CompanyID>NL000099998B57</cbc:CompanyID>\n <cac:TaxScheme>\n <cbc:ID>VAT</cbc:ID>\n </cac:TaxScheme>\n </cac:PartyTaxScheme>\n <cac:PartyLegalEntity>\n <cbc:RegistrationName>Brightwater Kantoorartikelen B.V.</cbc:RegistrationName>\n <cbc:CompanyID schemeID=\"0106\">99887766</cbc:CompanyID>\n </cac:PartyLegalEntity>\n <cac:Contact>\n <cbc:Name>Accounts receivable</cbc:Name>\n <cbc:Telephone>+31 20 555 0142</cbc:Telephone>\n <cbc:ElectronicMail>invoices@brightwater.example</cbc:ElectronicMail>\n </cac:Contact>\n </cac:Party>\n </cac:AccountingSupplierParty>\n <cac:AccountingCustomerParty>\n <cac:Party>\n <cbc:EndpointID schemeID=\"0088\">8712345000028</cbc:EndpointID>\n <cac:PostalAddress>\n <cbc:StreetName>Proefweg 200</cbc:StreetName>\n <cbc:CityName>Utrecht</cbc:CityName>\n <cbc:PostalZone>3511 ZZ</cbc:PostalZone>\n <cac:Country>\n <cbc:IdentificationCode>NL</cbc:IdentificationCode>\n </cac:Country>\n </cac:PostalAddress>\n <cac:PartyTaxScheme>\n <cbc:CompanyID>NL000099997B56</cbc:CompanyID>\n <cac:TaxScheme>\n <cbc:ID>VAT</cbc:ID>\n </cac:TaxScheme>\n </cac:PartyTaxScheme>\n <cac:PartyLegalEntity>\n <cbc:RegistrationName>Halden Techniek B.V.</cbc:RegistrationName>\n </cac:PartyLegalEntity>\n </cac:Party>\n </cac:AccountingCustomerParty>\n <cac:Delivery>\n <cbc:ActualDeliveryDate>2026-11-12</cbc:ActualDeliveryDate>\n </cac:Delivery>\n <cac:PaymentMeans>\n <cbc:PaymentMeansCode name=\"Credit transfer\">58</cbc:PaymentMeansCode>\n <cbc:PaymentID>INV-2026-1187</cbc:PaymentID>\n <cac:PayeeFinancialAccount>\n <cbc:ID>NL13TEST0123456789</cbc:ID>\n <cbc:Name>Brightwater Kantoorartikelen B.V.</cbc:Name>\n </cac:PayeeFinancialAccount>\n </cac:PaymentMeans>\n <cac:PaymentTerms>\n <cbc:Note>Payment within 30 days of the invoice date.</cbc:Note>\n </cac:PaymentTerms>\n <cac:AllowanceCharge>\n <cbc:ChargeIndicator>true</cbc:ChargeIndicator>\n <cbc:AllowanceChargeReasonCode>FC</cbc:AllowanceChargeReasonCode>\n <cbc:AllowanceChargeReason>Freight</cbc:AllowanceChargeReason>\n <cbc:Amount currencyID=\"EUR\">25.00</cbc:Amount>\n <cac:TaxCategory>\n <cbc:ID>S</cbc:ID>\n <cbc:Percent>21</cbc:Percent>\n <cac:TaxScheme>\n <cbc:ID>VAT</cbc:ID>\n </cac:TaxScheme>\n </cac:TaxCategory>\n </cac:AllowanceCharge>\n <cac:TaxTotal>\n <cbc:TaxAmount currencyID=\"EUR\">317.28</cbc:TaxAmount>\n <cac:TaxSubtotal>\n <cbc:TaxableAmount currencyID=\"EUR\">1468.00</cbc:TaxableAmount>\n <cbc:TaxAmount currencyID=\"EUR\">308.28</cbc:TaxAmount>\n <cac:TaxCategory>\n <cbc:ID>S</cbc:ID>\n <cbc:Percent>21</cbc:Percent>\n <cac:TaxScheme>\n <cbc:ID>VAT</cbc:ID>\n </cac:TaxScheme>\n </cac:TaxCategory>\n </cac:TaxSubtotal>\n <cac:TaxSubtotal>\n <cbc:TaxableAmount currencyID=\"EUR\">100.00</cbc:TaxableAmount>\n <cbc:TaxAmount currencyID=\"EUR\">9.00</cbc:TaxAmount>\n <cac:TaxCategory>\n <cbc:ID>S</cbc:ID>\n <cbc:Percent>9</cbc:Percent>\n <cac:TaxScheme>\n <cbc:ID>VAT</cbc:ID>\n </cac:TaxScheme>\n </cac:TaxCategory>\n </cac:TaxSubtotal>\n </cac:TaxTotal>\n <cac:LegalMonetaryTotal>\n <cbc:LineExtensionAmount currencyID=\"EUR\">1543.00</cbc:LineExtensionAmount>\n <cbc:TaxExclusiveAmount currencyID=\"EUR\">1568.00</cbc:TaxExclusiveAmount>\n <cbc:TaxInclusiveAmount currencyID=\"EUR\">1885.28</cbc:TaxInclusiveAmount>\n <cbc:ChargeTotalAmount currencyID=\"EUR\">25.00</cbc:ChargeTotalAmount>\n <cbc:PayableAmount currencyID=\"EUR\">1885.28</cbc:PayableAmount>\n </cac:LegalMonetaryTotal>\n <cac:InvoiceLine>\n <cbc:ID>1</cbc:ID>\n <cbc:InvoicedQuantity unitCode=\"C62\">10</cbc:InvoicedQuantity>\n <cbc:LineExtensionAmount currencyID=\"EUR\">1290.00</cbc:LineExtensionAmount>\n <cac:Item>\n <cbc:Name>Office chair, adjustable</cbc:Name>\n <cac:SellersItemIdentification>\n <cbc:ID>CH-2040</cbc:ID>\n </cac:SellersItemIdentification>\n <cac:ClassifiedTaxCategory>\n <cbc:ID>S</cbc:ID>\n <cbc:Percent>21</cbc:Percent>\n <cac:TaxScheme>\n <cbc:ID>VAT</cbc:ID>\n </cac:TaxScheme>\n </cac:ClassifiedTaxCategory>\n </cac:Item>\n <cac:Price>\n <cbc:PriceAmount currencyID=\"EUR\">129.00</cbc:PriceAmount>\n </cac:Price>\n </cac:InvoiceLine>\n <cac:InvoiceLine>\n <cbc:ID>2</cbc:ID>\n <cbc:InvoicedQuantity unitCode=\"XBX\">40</cbc:InvoicedQuantity>\n <cbc:LineExtensionAmount currencyID=\"EUR\">153.00</cbc:LineExtensionAmount>\n <cac:AllowanceCharge>\n <cbc:ChargeIndicator>false</cbc:ChargeIndicator>\n <cbc:AllowanceChargeReasonCode>95</cbc:AllowanceChargeReasonCode>\n <cbc:AllowanceChargeReason>Volume discount</cbc:AllowanceChargeReason>\n <cbc:MultiplierFactorNumeric>10</cbc:MultiplierFactorNumeric>\n <cbc:Amount currencyID=\"EUR\">17.00</cbc:Amount>\n <cbc:BaseAmount currencyID=\"EUR\">170.00</cbc:BaseAmount>\n </cac:AllowanceCharge>\n <cac:Item>\n <cbc:Name>Copy paper A4, box of 5 reams</cbc:Name>\n <cac:SellersItemIdentification>\n <cbc:ID>PA-0500</cbc:ID>\n </cac:SellersItemIdentification>\n <cac:ClassifiedTaxCategory>\n <cbc:ID>S</cbc:ID>\n <cbc:Percent>21</cbc:Percent>\n <cac:TaxScheme>\n <cbc:ID>VAT</cbc:ID>\n </cac:TaxScheme>\n </cac:ClassifiedTaxCategory>\n </cac:Item>\n <cac:Price>\n <cbc:PriceAmount currencyID=\"EUR\">4.25</cbc:PriceAmount>\n </cac:Price>\n </cac:InvoiceLine>\n <cac:InvoiceLine>\n <cbc:ID>3</cbc:ID>\n <cbc:InvoicedQuantity unitCode=\"C62\">5</cbc:InvoicedQuantity>\n <cbc:LineExtensionAmount currencyID=\"EUR\">100.00</cbc:LineExtensionAmount>\n <cac:Item>\n <cbc:Name>Workplace safety handbook</cbc:Name>\n <cac:ClassifiedTaxCategory>\n <cbc:ID>S</cbc:ID>\n <cbc:Percent>9</cbc:Percent>\n <cac:TaxScheme>\n <cbc:ID>VAT</cbc:ID>\n </cac:TaxScheme>\n </cac:ClassifiedTaxCategory>\n </cac:Item>\n <cac:Price>\n <cbc:PriceAmount currencyID=\"EUR\">20.00</cbc:PriceAmount>\n </cac:Price>\n </cac:InvoiceLine>\n</Invoice>\n"}Finance arithmetic
Compute the fixed monthly payment on an amortising loan or mortgage (the EMI), plus total interest and total repaid, using the standard annuity formula. Optionally returns the first months of the amortisation schedule showing the interest/principal split. Use it instead of estimating — compounding makes mental arithmetic unreliable here.
{"principal":250000,"annual_rate_percent":6.5,"term_months":360,"schedule_months":3}Project the future value of a lump sum with compound interest, optionally with a fixed contribution added at the end of every month (a savings plan or SIP). Returns the final value, total contributed, interest earned and a year-by-year balance.
{"principal":10000,"annual_rate_percent":7,"years":20,"monthly_contribution":300}Compute the compound annual growth rate (CAGR) between a starting and ending value over a number of years — the single constant yearly rate that would produce the same result. Also returns the total return and growth multiple. The correct way to annualise multi-year growth; an arithmetic average overstates it.
{"start_value":10000,"end_value":19500,"years":5}Check an International Bank Account Number: country code, the exact length that country requires, and the ISO 7064 mod-97 check digits. Returns the country and the IBAN in standard 4-character groups, or the specific reason it is invalid. Structural validation only — it cannot tell you whether the account exists.
{"iban":"GB82 WEST 1234 5698 7654 32"}REST API
For anything that does not speak MCP — a script, a workflow tool, a custom agent loop — every tool is a
plain HTTP endpoint. POST the arguments as JSON to /api/v1/tools/{name}; the response is JSON. CORS is open, so it
works from a browser too.
curl -s https://codelint.dev/api/v1/tools/loan_payment \
-H 'content-type: application/json' \
-d '{"principal": 250000, "annual_rate_percent": 6.5, "term_months": 360}'
{
"ok": true,
"tool": "loan_payment",
"result": {
"monthly_payment": 1580.17,
"total_interest": 318861.22,
"total_repaid": 568861.22,
"interest_share_percent": 56.1,
"formula": "payment = P·r / (1 − (1 + r)^−n), with r = annual rate / 12 and n = months"
}
} Bad input returns 422 with a message written to be read by the model
that made the call, so it can correct itself and retry:
HTTP/1.1 422
{
"ok": false,
"tool": "json_format",
"error": {
"code": "invalid_input",
"message": "\"json\" is not valid JSON: Expected double-quoted property name in JSON at position 7 (line 1 column 8)",
"details": { "line": 1, "column": 8 }
}
} - GET /api/v1/tools — the catalogue: every tool, its input schema and a working example.
- GET /openapi.json — an OpenAPI 3.1 document with one operation per tool. Import it as a GPT Action or into any OpenAPI toolkit.
Agent2Agent (A2A)
MCP connects an agent to tools. A2A connects an agent to another agent: one publishes an agent card describing its skills, and others
discover it and delegate work. CodeLint publishes a card at /.well-known/agent-card.json listing each tool as a skill, and its endpoint speaks A2A 1.0 and 0.3.
It is a tool agent — there is no model behind it, so it cannot
interpret a sentence. Name the skill in a data part and it answers in the same turn with a message; it
never creates a long-running task. A 0.3 client calls message/send on the same URL.
curl -s https://codelint.dev/a2a \
-H 'content-type: application/json' \
-H 'A2A-Version: 1.0' \
-d '{
"jsonrpc": "2.0", "id": "1", "method": "SendMessage",
"params": { "message": {
"messageId": "m-1", "role": "ROLE_USER",
"parts": [{ "data": {
"skill": "cagr",
"input": { "start_value": 10000, "end_value": 19500, "years": 5 }
}}]
}}
}' To watch the exchange — or to check an agent of your own — use the A2A agent tester. Writing a card for your own agent? The A2A agent card builder generates and validates one.
llms.txt
For a model that is reading rather than calling: /llms.txt is a Markdown index of the whole site — every tool with a one-line description, every guide, and the agent endpoints above — and /llms-full.txt carries the reference text for each tool inline. Both are generated from the same data the pages render from, so they cannot drift out of date.
AI crawlers are welcome: robots.txt allows them explicitly. To build either file for your own site, see the llms.txt generator and the AI crawler robots.txt builder.
Limits and privacy
- Inputs are processed and dropped
Request bodies are held in memory for the length of the call. The application does not store them, log them or use them for training anything. Cloudflare, which hosts the service, records ordinary request metadata — time, path, status code — but not the body.
- This is not the same guarantee as the website
The interactive tools on this site run in your browser and send nothing anywhere. An API call, by definition, leaves the caller's machine. Do not send secrets you would not send to any third-party API — decode a production JWT with the browser tool instead.
- Size limits
512 KB per request body; 200,000 characters per text argument (less for a few tools, stated in their schema). The diff tool accepts up to 1,500 lines per side.
- No side effects, no outbound calls
No tool writes anything, fetches a URL you supply, or contacts a third party. That makes them safe to auto-approve in an agent, and it is why there is nothing here to authenticate.
- Finance tools do arithmetic, not advice
They return what the stated formula gives for the numbers supplied. They know nothing about fees, taxes or your circumstances.
Questions
- Do I need an API key or an account?
- No. The MCP server, the REST API and the A2A endpoint are all open and unauthenticated. There is nothing to sign up for and no key to rotate.
- What happens to the data my agent sends?
- It is processed in memory to compute the answer and then discarded. The application does not write request bodies to a database, log them, or use them for anything else; the hosting platform records only ordinary request metadata such as path and status code. This is different from the tools on the website, which run in your browser and send nothing at all — if the input is sensitive and a person is doing the work, use the web tool.
- Why would an agent need a tool to format JSON or compute a hash?
- Because a language model predicts text; it does not execute algorithms. It can produce a plausible-looking SHA-256 digest that is entirely wrong, miscount tokens by a wide margin, or misjudge the next run of a cron expression that combines day-of-month and day-of-week. Calling a function returns the real answer every time, and costs fewer tokens than reasoning through it.
- Which MCP transport and protocol versions are supported?
- Streamable HTTP, stateless: every request is one JSON-RPC message with one JSON response. The current revision, 2026-07-28, has no handshake — each request carries its own version and capabilities — and is served that way. Older clients that open with initialize are negotiated down to 2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05. There is no SSE stream because the server never sends unsolicited messages, and no session to manage.
- Are there rate limits?
- There is no per-key quota because there are no keys. Request bodies are capped at 512 KB and individual text arguments at 200,000 characters. The service runs on shared edge infrastructure, so abusive traffic is throttled at the network layer; ordinary agent use will never notice.
- Can I rely on the LLM price data?
- Every response from llm_models and llm_cost_estimate includes the date the prices were last checked against each provider’s own pricing page, plus the source URLs. Providers change prices without notice, so confirm anything cost-critical at the source before committing a budget.
- Is there a tool you do not expose that I need?
- Probably — the agent API covers the tools that are pure functions. Tools that need a camera, a microphone, a file picker or a third-party data feed only make sense in a browser. If there is a deterministic utility you want added, the contact page reaches the person who writes them.