When CRUD needs logic around it, your AI agent builds the endpoint in five calls.
A Custom API is one YAML definition of SQL and Lua or Starlark steps. You ask in plain English through the integrated MCP server; the agent writes it and you review it.
From a request to a working endpoint, in five calls.
A coding agent such as Claude Code, Cursor or Codex uses the tools that build the API itself. You write no route and deploy nothing.
- It reads your schema. Each table, described live from the database.
meta_describe_table - It changes the schema, if you allow it. One all-or-nothing batch, kept with the exact statements.
ddl_execute_run - It writes the logic. A Starlark or Lua module; earlier versions stay readable.
create_lark_module - It registers the endpoint. One YAML document: path, method, roles, steps. Live in dev.
create_definition - It calls what it built, reads the answer and corrects it.
call_api
The agent works under the roles you gave it and is refused as a backend would be. Every session is recorded. You copy the endpoint to prod once staging has proven it.
What it writes: one YAML definition.
A method, a path, a version, the roles allowed, and an ordered list of steps. A sql step is one statement; a lua or lark step reshapes what the step before fetched. Mark a step omit and its rows never leave the server. The Book of Minimal, Vol. II, writes one end to end.
Teach your agent Minimal Core in one page.
The session rule, the order to discover a project in, which headers to send and what to do when refused. Four kilobytes.
mkdir -p .claude/skills/minimal-core curl -o .claude/skills/minimal-core/SKILL.md \ https://littlebitlabs.com/skills/minimal-core/SKILL.md
An agent asks for the API instead of writing it.
That is 90% fewer AI tokens on the API layer.
Modelled, not measured: an AI agent building and keeping the API layer of 100 tables for a year (routes, validation, per-role permission, audit, MCP tools and tests). The model gives 98%; we quote 90%, below its most cautious run (95.7%). Your screens and integrations cost the same either way.
Ask your agent for the endpoint.
Free licence: 50,000 requests a month, for any use, commercial included. Sign in with Google or GitHub, download your licence file. No card.