Developer docs / Reference
Tool reference
Every tool, its scope and its fields, generated from the API's own schemas.
Every tool the REST API and the MCP server offer. This page is generated from the schemas Kaze checks requests against.
Scopes
A key may use a tool only if it has the tool’s scope. No scope allows validating work, marking it done or changing settings.
| Scope | Allows | Tools |
|---|---|---|
read | Read items and sprints | get_team, list_items, get_item, list_sprints, sprint_health, query, explain, validate, get_rubric, lint_spec |
write | Create and update items | create_item, update_item, add_criteria, claim_item, submit_item, check_criteria, ask_question, add_comment, link_pr, update_progress |
plan | Plan sprints | plan_sprint |
telemetry | Report agent runs | log_run |
test | Record test results | record_test, import_test_results |
deploy | Record deployments | record_deployment |
inbox | Send items to the inbox | add_to_inbox |
The spec rubric
What lint_spec and get_rubric check. Anything that blocks stops an agent from claiming the item.
| Rule | Level | Checks |
|---|---|---|
intent | Blocks | Says what is wanted and why |
criteria | Blocks | Has at least one acceptance criterion |
testable | Advice | Criteria can be tested: Given, When, Then, or a clear result |
vague | Advice | No vague words, such as fast, easy or appropriate, in the criteria |
steps | Blocks | A bug has steps to reproduce |
verification | Advice | Says how it will be verified: a test command, a job or a check |
nonGoals | Advice | Agent work says what is out of scope |
size | Advice | Nine criteria or fewer. More usually means two items |
Tools
Each is POST /api/v1/<tool> with a JSON body, or the tool of the same name over MCP. Unknown fields are refused.
get_team read
Call first. What this team works on and its notes for agents, the hard rules you must follow, what done means here, how often to pick up work, statuses, item types, estimating and KazeQL tips.
No input. Send {}.
list_items read
List open items. queued: true gives the agent queue: work a person has handed to agents, oldest first. Take work from there. Filter by sprint, status category or 'mine' (claimed by or queued for this key).
| Field | Type | Required | Rules |
|---|---|---|---|
sprint | "active" | "backlog" | No | – |
category | "todo" | "doing" | "review" | "validate" | No | – |
mine | boolean | No | – |
queued | boolean | No | – |
limit | integer | No | from 1, up to 100, default 50 |
get_item read
Full item: description, criteria, guardrails, links and comments. `code` gives the branch name, commit prefix, pull request title and description to use, whether a repository (GitHub, GitLab or Bitbucket) is connected, and the pull requests and commits already linked with their checks and reviews.
| Field | Type | Required | Rules |
|---|---|---|---|
key | string | Yes | an item key, like PAY-26 |
list_sprints read
Active and planned sprints.
No input. Send {}.
sprint_health read
Progress, remaining effort and blockers for the active sprint.
No input. Send {}.
query read
Find items with KazeQL. field:value pairs; a space means AND, plus OR, NOT or -, and brackets. Values: word, "two words", (a,b) for any of, 1..5 for a range, >5. Dates: 2026-03-31, -7d, this-week, @now, @start-of(this-month). People: @me, @user(name), none. History: was:status=in-progress, changed:target-date after:-14d since:@baseline("name"). End with sort:priority-desc. Fields: id, key, type, project, title, status, category, resolution, assignee, assignee-kind, accountable, reporter, sponsor, team, priority, label, sprint, release, target-date, forecast-date, start-date, created, updated, resolved, started, risk, review, cost, time-logged, outcome, spec, verification, parent, child-of, epic, blocks, blocked-by, linked, duplicates, has, estimate, cf.<your-field>. Example: assignee-kind:agent review:waiting sort:risk-desc. Every query is logged.
| Field | Type | Required | Rules |
|---|---|---|---|
kazeql | string | Yes | up to 1,000 characters |
limit | integer | No | from 1, up to 100, default 50 |
cursor | integer | No | from 0, up to 10,000, default 0 |
explain read
Say what a KazeQL query means, and give its tree, without running it.
| Field | Type | Required | Rules |
|---|---|---|---|
kazeql | string | Yes | up to 1,000 characters |
validate read
Check a KazeQL query. Returns the problem, where it is, and a suggested fix.
| Field | Type | Required | Rules |
|---|---|---|---|
kazeql | string | Yes | up to 1,000 characters |
get_rubric read
The rules a spec is checked against. Check yourself against them before you create or claim an item.
No input. Send {}.
lint_spec read
Check one item against the rubric. Anything marked block stops an agent from claiming it.
| Field | Type | Required | Rules |
|---|---|---|---|
key | string | Yes | an item key, like PAY-26 |
create_item write
Create an item. Build an epic first, then its stories, bugs and tasks with parent set to the epic's key. Stories and bugs need testable acceptance criteria. Use the team's context from get_team. Nothing you create is queued for agents until a person queues it.
| Field | Type | Required | Rules |
|---|---|---|---|
type | "initiative" | "epic" | "story" | "task" | "bug" | "spike" | "debt" | "impediment" | "subtask" | Yes | – |
title | string | Yes | at least 1 characters, up to 200 characters |
description | string | No | up to 20,000 characters |
parent | string | No | an item key, like PAY-26 |
priority | "urgent" | "high" | "medium" | "low" | No | – |
acceptance | string[] | No | at least 1 characters, up to 500 characters, up to 30 items |
estimate | string | No | up to 10 characters |
execution | "agent" | "pair" | "human" | No | – |
labels | string[] | No | at least 1 characters, up to 40 characters, up to 20 items |
nonGoals | string | No | up to 5,000 characters |
verification | string | No | up to 1,000 characters |
steps | string | No | up to 10,000 characters |
guardrails | string | No | up to 5,000 characters |
references | string | No | up to 5,000 characters |
outcome | string | No | up to 1,000 characters |
successMeasure | string | No | up to 500 characters |
userStory | object | No | – |
skill | string | No | name@1.2.3 |
update_item write
Change an item that has not reached a person yet: title, description, priority, estimate, labels, parent, scope, verification, guardrails, references, user story, or an epic's outcome and success measure. Once work has started only the agent holding it can edit it.
| Field | Type | Required | Rules |
|---|---|---|---|
key | string | Yes | an item key, like PAY-26 |
title | string | No | at least 1 characters, up to 200 characters |
description | string | No | up to 20,000 characters |
priority | "urgent" | "high" | "medium" | "low" | No | – |
estimate | string | No | up to 10 characters |
labels | string[] | No | at least 1 characters, up to 40 characters, up to 20 items |
parent | string | No | an item key, like PAY-26 |
nonGoals | string | No | up to 5,000 characters |
verification | string | No | up to 1,000 characters |
steps | string | No | up to 10,000 characters |
guardrails | string | No | up to 5,000 characters |
references | string | No | up to 5,000 characters |
outcome | string | No | up to 1,000 characters |
successMeasure | string | No | up to 500 characters |
userStory | object | No | – |
skill | string | No | name@1.2.3 |
add_criteria write
Add acceptance criteria to an item that has not started.
| Field | Type | Required | Rules |
|---|---|---|---|
key | string | Yes | an item key, like PAY-26 |
criteria | string[] | Yes | at least 1 characters, up to 500 characters, up to 20 items |
skill | string | No | name@1.2.3 |
claim_item write
Start work on an item from the agent queue (list_items with queued: true). Only queued items can be started. Fails unless the item is ready and safe to run. Gives you a lease: call update_progress at least hourly to keep it. Returns `code`: name your branch, commits and pull request exactly as it says, so Kaze links them.
| Field | Type | Required | Rules |
|---|---|---|---|
key | string | Yes | an item key, like PAY-26 |
driver | string | Yes | at least 1 characters, up to 60 characters |
model | string | No | at least 1 characters, up to 80 characters |
skills | string[] | No | up to 20 items, name@1.2.3 |
submit_item write
Hand work over for review or human validation.
| Field | Type | Required | Rules |
|---|---|---|---|
key | string | Yes | an item key, like PAY-26 |
to | "review" | "validate" | Yes | – |
note | string | No | up to 2,000 characters |
check_criteria write
Set which acceptance criteria are met, by 0-based index.
| Field | Type | Required | Rules |
|---|---|---|---|
key | string | Yes | an item key, like PAY-26 |
met | integer[] | Yes | from 0, up to 100, up to 100 items |
ask_question write
Ask the people on this team, inside Kaze. Use it whenever you lack access (kind: access, for example 'I do not have access to the Salesforce UAT org. Please give the integration user access.'), a decision (kind: decision) or information (kind: detail). The item shows it at the top until a person answers, and you wait.
| Field | Type | Required | Rules |
|---|---|---|---|
key | string | Yes | an item key, like PAY-26 |
question | string | Yes | at least 1 characters, up to 1,000 characters |
kind | "access" | "decision" | "detail" | No | – |
add_comment write
Comment on an item.
| Field | Type | Required | Rules |
|---|---|---|---|
key | string | Yes | an item key, like PAY-26 |
text | string | Yes | at least 1 characters, up to 5,000 characters |
link_pr write
Attach a pull request (a merge request on GitLab) to an item. Only needed when the repository is not connected to Kaze, or the pull request does not carry the item key. Harmless to call twice.
| Field | Type | Required | Rules |
|---|---|---|---|
key | string | Yes | an item key, like PAY-26 |
url | string | Yes | up to 500 characters |
number | integer | Yes | up to 9,007,199,254,740,991 |
plan_sprint plan
Move ready items into a planned or active sprint.
| Field | Type | Required | Rules |
|---|---|---|---|
sprint | string | Yes | at least 1 characters, up to 80 characters |
keys | string[] | Yes | up to 100 items, an item key, like PAY-26 |
log_run telemetry
Report one agent run. Send costUsd only if your tool reports a real figure; otherwise Kaze uses the team's price for the model. Call once per agent or sub-agent. Name the exact model, and say what the run achieved.
| Field | Type | Required | Rules |
|---|---|---|---|
key | string | Yes | an item key, like PAY-26 |
driver | string | Yes | at least 1 characters, up to 60 characters |
model | string | Yes | at least 1 characters, up to 80 characters |
outcome | "done" | "partial" | "failed" | Yes | – |
summary | string | Yes | at least 1 characters, up to 1,000 characters |
skills | string[] | No | up to 20 items, name@1.2.3 |
filesChanged | integer | No | from 0, up to 1,000,000,000 |
linesAdded | integer | No | from 0, up to 1,000,000,000 |
linesRemoved | integer | No | from 0, up to 1,000,000,000 |
testsPassed | integer | No | from 0, up to 1,000,000,000 |
testsFailed | integer | No | from 0, up to 1,000,000,000 |
role | "orchestrator" | "planner" | "coder" | "test_runner" | "reviewer" | "other" | Yes | – |
inputTokens | integer | Yes | from 0, up to 1,000,000,000 |
outputTokens | integer | Yes | from 0, up to 1,000,000,000 |
cachedTokens | integer | No | from 0, up to 1,000,000,000, default 0 |
durationMs | integer | Yes | from 0, up to 1,000,000,000 |
costUsd | number | No | from 0, up to 100,000 |
update_progress write
Say what you are doing now. Call at least every 20 minutes while working, or the session shows as stale. Send the whole plan each time.
| Field | Type | Required | Rules |
|---|---|---|---|
key | string | Yes | an item key, like PAY-26 |
note | string | Yes | at least 1 characters, up to 500 characters |
plan | object[] of { text, status } | No | up to 30 items |
model | string | No | at least 1 characters, up to 80 characters |
record_test test
Record a test you ran against one acceptance criterion (0-based) or the whole item. This is evidence, not sign-off: a person still checks each criterion.
| Field | Type | Required | Rules |
|---|---|---|---|
key | string | Yes | an item key, like PAY-26 |
criterion | integer | No | from 0, up to 100 |
result | "pass" | "fail" | "blocked" | "skipped" | Yes | – |
how | string | Yes | at least 1 characters, up to 2,000 characters |
environment | string | No | up to 120 characters |
build | string | No | up to 120 characters |
evidence | string | No | up to 500 characters |
import_test_results test
Record the totals of an automated test run for an item.
| Field | Type | Required | Rules |
|---|---|---|---|
key | string | Yes | an item key, like PAY-26 |
suite | string | Yes | at least 1 characters, up to 120 characters |
passed | integer | Yes | from 0, up to 1,000,000,000 |
failed | integer | Yes | from 0, up to 1,000,000,000 |
skipped | integer | No | from 0, up to 1,000,000,000, default 0 |
failures | string[] | No | at least 1 characters, up to 300 characters, up to 50 items |
environment | string | No | up to 120 characters |
build | string | No | up to 120 characters |
evidence | string | No | up to 500 characters |
durationMs | integer | No | from 0, up to 1,000,000,000 |
record_deployment deploy
Record a deployment to any environment, for example uat or production. A successful one ticks the team's matching done step (see get_team doneMeans) on each item in keys, and production deployments are used to measure delivery.
| Field | Type | Required | Rules |
|---|---|---|---|
version | string | Yes | at least 1 characters, up to 80 characters |
ok | boolean | Yes | – |
unplanned | boolean | No | default false |
environment | string | No | up to 60 characters, default "production" |
committedAt | string | No | an ISO date and time |
recoveredAt | string | No | an ISO date and time |
keys | string[] | No | up to 100 items, an item key, like PAY-26 |
add_to_inbox inbox
Send a request or finding to the team inbox.
| Field | Type | Required | Rules |
|---|---|---|---|
title | string | Yes | at least 1 characters, up to 200 characters |
body | string | No | up to 20,000 characters |