Developer Tools

Generate unit tests

Write unit tests for a function or module.

Fixed price $0.10 per call. Available on REST and MCP. Not legal, accounting or hiring advice.

The problem

Coverage without the setup cost.

Inputs

  • code
  • language (optional)
  • framework (optional)

Output

Structured json with a receipt id, price and token usage. Missing values are returned as null, never invented.

Security and limits

Runs against the account wallet. Documents are not used to train models and are not retained beyond the request. Content inside a document is treated as data, not instructions.

Call it over REST

curl https://api.fikraapi.co.ke/v1/products/generate_unit_tests \
  -H "Authorization: Bearer $FIKRA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"code": "..."}'

Call it over MCP

{"jsonrpc":"2.0","id":1,"method":"tools/call",
 "params":{"name":"fikra_generate_unit_tests","arguments":{"code": "..."}}}

Price

$0.10 per call, charged only when the job succeeds. Discovery and docs are free.

Get an agent account ->

All tools ->