Check whether new suggestions can be generated for a group
get_prompt_suggestion_availabilityCheck whether a prompt group can start a new suggestion run right now and why not, so you can diagnose empty or failed runs before polling for results.
Instructions
Whether generate_prompt_suggestions would schedule a new run for one prompt group of the project right now, and if not, why — the same check that tool runs itself, without scheduling anything.
After calling generate_prompt_suggestions, poll this endpoint until lastRun.status is not running. When a run finishes with producedCount 0, read emptyReason (or error if status is failed) to see why no suggestions were generated. list_prompt_suggestions returns only pending suggestions that have not yet been accepted or rejected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| groupId | Yes | Id of the prompt group, as list_prompt_groups reports it. | |
| projectId | Yes | The project to work on — its id from list_projects. Required on every call, so that parallel conversations never read or write each other's project. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| canRun | Yes | Whether generate_prompt_suggestions would schedule a run right now. | |
| reason | Yes | Why a run would or would not be scheduled: not_eligible = the project's plan does not currently pay for background work, no_slots = no free prompt slots remain on the plan, running = a run is already in progress for this group, cooldown = the last run finished less than 7 days ago and its proposals still await a decision, nothing_to_suggest = the group is already healthy, or too few of its prompts are measured yet (a run needs at least 5 active prompts scored for purchase intent, or at least 2 with a computed business priority), ready = nothing is blocking a new run. | |
| lastRun | Yes | This group's most recent run. null = it never had one. | |
| availableSlots | Yes | Free prompt slots left on the plan; a run proposes at most this many. | |
| pendingSuggestionCount | Yes | Suggestions from this group still awaiting a decision. |