netcafe-devkit

v1.0.0
com.ainetcafe/netcafe-devkit Checked 20 hours ago Published 3 months ago

JSON/YAML, regex, diff, JWT, SQL dialects — the keyless millisecond ops an agent needs mid-task.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

what_can_you_do Find the right tool for a task

Describe a task in plain language (any language) and get back exactly which tools on this server do it, with ready-to-run example calls — instead of reading the whole catalogue and guessing. Also returns multi-step recipes when a task needs several tools chained (invoices to a ledger, a bank statement reconciled, a messy CSV turned into a deliverable). Deterministic and free: it calls no model, costs nothing, and never runs out of quota. Call this FIRST when you are not sure what this server offers.

ParameterTypeDescription
task *stringWhat you are trying to do, e.g. "reconcile a bank statement against my books" or "把一堆发票整理成能入账的表格"

redact_text Redact secrets and PII before sending text on

Strip emails, phone numbers, ID numbers, API keys, private keys, JWTs, card numbers and IPs out of text, returning the redacted text plus a mapping table to restore them afterwards. Rule-based only — no model sees the input. The same value always maps to the same placeholder, so the answer can be restored.

ParameterTypeDescription
text *stringThe text to redact.
onlystringOptional comma-separated subset, e.g. "EMAIL,API_KEY,PRIVATE_KEY".

json_yaml JSON ↔ YAML, either direction, auto-detected

Converts JSON to YAML or YAML to JSON. It works out which one you gave it, so you do not have to say. A parse failure comes back with the parser message instead of silently producing something that looks fine and is not. Use when a config, a CI file, or a Kubernetes manifest needs to be in the other format.

ParameterTypeDescription
text *stringThe JSON or YAML content.
tostringOptional: "json" or "yaml" to force the direction.

validate_json Is this JSON valid — and does it have the keys you need?

Checks that text parses as JSON, and optionally that required keys are present with the right top-level types. Returns the specific violations, not just true/false. Checks required + types only — not full JSON Schema, and it says so rather than pretending. Use before feeding generated JSON into something that will fail on it.

ParameterTypeDescription
text *stringThe JSON to validate.
schemastringOptional JSON Schema (as JSON text) — required[] and properties[].type are checked.

diff_text What changed between two texts, line by line

Returns which lines were added and which were removed, with line numbers — computed with a longest-common-subsequence, not guessed by a model. Use to compare two versions of a config, a document, or any command output, instead of asking an LLM to eyeball two blobs and hoping it notices.

ParameterTypeDescription
a *stringThe first (before) text.
b *stringThe second (after) text.

jwt_decode See inside a JWT — header, payload, and whether it has expired

Decodes the header and payload of a JWT and reports issued-at / expiry as readable timestamps plus seconds remaining. The signature is NOT verified and the response says so — decoding is fine for debugging a token you already hold, but never treat these values as proof of anything; verification needs the secret and belongs in your own service.

ParameterTypeDescription
token *stringThe JWT string.

regex_test Does this regex match — and what does it capture?

Runs a regular expression against sample text and returns every match with its position and capture groups (named groups included). Use before wiring a pattern into code, instead of guessing whether the escaping survived the trip through JSON and the shell.

ParameterTypeDescription
pattern *stringThe regular expression, without surrounding slashes.
text *stringThe text to test against.
flagsstringOptional flags, e.g. "gi". Default "g".

transpile_sql Translate SQL between dialects

Convert a SQL statement from one dialect to another — mysql, postgres, sqlite, tsql, oracle, snowflake, bigquery, redshift, spark, hive, presto, trino, duckdb, clickhouse, databricks, doris, starrocks and more. Deterministic parser (sqlglot), not an LLM: the same input always produces the same output, and syntax errors come back with the exact line and column. Use it when migrating queries between databases or debugging dialect-specific syntax.

ParameterTypeDescription
sql *stringThe SQL statement (or several, separated by semicolons).
write *stringTarget dialect, e.g. "postgres", "bigquery", "doris".
readstringSource dialect, e.g. "mysql". Omit to auto-detect from generic SQL.

make_qr Make a QR code

Any text or URL → a QR code PNG you can embed or download. Stateless URL form: https://ainetcafe.com/i/qr/<text>

ParameterTypeDescription
text *stringThe text or URL to encode.

json_format json format

Validate and pretty-print JSON (2-space indent). Reports the error location if invalid.

ParameterTypeDescription
indentnumber
json
url

timezone_convert timezone convert

Convert a time between time zones, or get current time in any zone. from/to = IANA zone (Asia/Shanghai), time = YYYY-MM-DDTHH:mm (default now).

ParameterTypeDescription
fromstring
timestring
tostring

unit_convert unit convert

Convert units: length, weight, temperature, area, volume, speed, data size. value + from + to (e.g. 100 km mi, 25 c f).

ParameterTypeDescription
fromstring
tostring
valuenumber

sql_from_description sql from description

Plain-language request + table schema → ready-to-run .sql file with comments.

ParameterTypeDescription
dialect
request
schemastring

screenshot_url screenshot url

Full-page screenshot of any URL → PNG. The same job screenshot APIs charge $7-79/month for.

ParameterTypeDescription
url
widthnumber