Add a running cost
add_costA recurring cost on one app (hosting, AI APIs, the domain), so profit shows on the Revenue page. Needs write access.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"app": "<app>",
"label": "<label>",
"amount": "<amount>"
},
"name": "add_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | The app: its slug, name, domain (shop.app), URL or id. list_apps shows them all. | |
| every | No | month | |
| label | Yes | Like Vercel or OpenAI | |
| amount | Yes | In whole units, like 20 or 19.99 | |
| currency | No | usd |