asksteps: statistics for one published form
asksteps_get_form_statsReturns visits, completions and drop-off for one published form. Requires "forms:read". Get the publication id from asksteps_list_forms first.
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": {
"publication_id": "<publication_id>"
},
"name": "asksteps_get_form_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | No | Time range: "7d", "30d" or "90d". Defaults to 30 days. | |
| publication_id | Yes | The publication id, as returned by asksteps_list_forms. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | One sentence for the user. Empty when there is nothing to say. | |
| stats | No | Visits, completions and drop-off for the publication, plus what these numbers are worth (field "notes"). Absent unless status is "ok". | |
| status | Yes | Outcome. One of: "ok", "not_connected", "not_found" (no statistics for this publication id). Authorisation can also refuse before the tool runs: "plan_required" (the account's plan does not include agent access), "not_enabled" (the account owner has not switched agent access on), "permission_denied" (the connected user's role lacks the permission; the note names it), "mandate_required" (the owner has not granted a mandate for this). The note then says what the user has to do. |