count_goals
Beschreibung
Section titled “Beschreibung”Zählt die Ziele auf dem Pipeline-Board exakt — mit Aufschlüsselung nach Phase, in einem Aufruf und ohne Zeilenlimit. Nimmt dieselben Filter wie search_goals und liefert { total, byStage }; byStage nennt jede betrachtete Phase, auch mit 0. Damit beantwortest Du „Wie viele Ziele gibt es?“ und „…pro Phase?“, ohne eine gekürzte Liste abzuzählen.
Beschreibung für das Modell
Section titled “Beschreibung für das Modell”Diesen Text sieht das KI-Modell — unverändert und auf Englisch, so wie ihn der Server ausliefert:
Exact number of goals on the pipeline board for the connected organization, broken down by pipeline stage, in one call and with no row cap — use it to answer “how many goals…” or “…per stage” instead of counting search_goals rows. Takes the same filters as search_goals (title text, owner, confidence, stage, completion and last-updated windows). Returns { total, byStage }, where byStage lists every stage in scope (the filtered stages, else all of ideation, scoped, rated, next, wip, blocked, reflect, done, declined) with an explicit 0. Read-only.
Parameter
Section titled “Parameter”| Name | Typ | Pflicht | Einschränkungen | Beschreibung |
|---|---|---|---|---|
query | Text | Nein | Case-insensitive substring match on the goal title | |
ownerId | Text | Nein | Restrict to goals owned by this user id | |
confidenceGt | Ganzzahl | Nein | 0–100 | Only goals with confidence greater than this (0–100) |
confidenceLt | Ganzzahl | Nein | 0–100 | Only goals with confidence less than this (0–100) |
stage | Liste | Nein | ideation | scoped | rated | next | wip | blocked | reflect | done | declined, mind. 1 Eintrag | Restrict to these pipeline stages (one or more of: ideation, scoped, rated, next, wip, blocked, reflect, done, declined). Always an array, e.g. [“wip”], or [“done”, “reflect”] for completed work. |
updatedAfter | Text | Nein | Only goals last updated at or after this ISO 8601 timestamp. This is the LAST-UPDATE time, not a completion date. | |
updatedBefore | Text | Nein | Only goals last updated strictly before this ISO 8601 timestamp. Combined with updatedAfter this is a half-open window, so adjacent periods tile cleanly. | |
completedAfter | Text | Nein | Only goals COMPLETED at or after this ISO 8601 timestamp. This is a real completion date, unlike updatedAfter. Setting it also restricts the result to completed goals (stage done/reflect). | |
completedBefore | Text | Nein | Only goals COMPLETED strictly before this ISO 8601 timestamp. Combined with completedAfter this is a half-open window, so adjacent periods tile cleanly. Setting it also restricts the result to completed goals (stage done/reflect). |