Skip to content

count_goals

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.

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.

NameTypPflichtEinschränkungenBeschreibung
queryTextNeinCase-insensitive substring match on the goal title
ownerIdTextNeinRestrict to goals owned by this user id
confidenceGtGanzzahlNein0–100Only goals with confidence greater than this (0–100)
confidenceLtGanzzahlNein0–100Only goals with confidence less than this (0–100)
stageListeNeinideation | scoped | rated | next | wip | blocked | reflect | done | declined, mind. 1 EintragRestrict 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.
updatedAfterTextNeinOnly goals last updated at or after this ISO 8601 timestamp. This is the LAST-UPDATE time, not a completion date.
updatedBeforeTextNeinOnly goals last updated strictly before this ISO 8601 timestamp. Combined with updatedAfter this is a half-open window, so adjacent periods tile cleanly.
completedAfterTextNeinOnly 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).
completedBeforeTextNeinOnly 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).

Zurück zur Übersicht