mcp

v0.0.1-beta.17348
@productbrain/mcp Checked 15 hours ago Published 3 hours ago

Product Brain — MCP server for AI-assisted product knowledge management

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

session Session — Lifecycle & Facilitation

Start here. When the person says "Start my Product Brain session.", call start. Session lifecycle, wrapup review, and work package facilitation. - **start**: Begin a tracked write session for attribution. **This is the ONLY call that creates a session** — write tools (capture, entries action=update/accept, relations) require it. Its reply is the briefing; then `orient task="<what you are doing>"` loads the context for a task. - **close**: End the current session. Records structured data (entries created, modified, relations). Run `session action=wrapup-review` before closing. - **status**:…

ParameterTypeDescription
action *string'start': begin a tracked session. 'close': end the session and record activity. 'status': check current session state. 'wrapup-review': list this session's drafts before closing. 'resume': load sessio…
betEntryIdstringFor 'resume': work package entry ID. Required.
previewstringStart: serve this workspace draft, like direction@4; facts after a semicolon.
rolestringFor 'start': role to act as this session, by the '<PREFIX>-<n>' id a start reply prints beside the role name — only needed if you hold more than one; the error lists your roles if omitted.
sessionIdstringThe sessionId `session action=start` returned. Pass it on every write: the connection does not remember your session between calls.
teamstringFor 'start': the team the role is held in, by its 'TEAM-<n>' id — only needed with role, when you hold that role in more than one team; a refusal that names the way in prints it.

entries Entries

Write entries on the Chain: the entry lifecycle after capture. Reads live on `context`. - **update**: Change fields on an existing entry (publishes whenever the entry is not draft — includes archived, not just current entries; autoPublish is accepted but ignored). - **accept**: Accept a draft entry onto the Chain. Runs the possible-clash check first. - **move**: Relocate an entry to a different collection; pass canonicalKey too for an atomic move+retype. - **verify**: Mark verified (lightweight, no scan — see `quality action=verify-chain`). - **replace**: one accepted entry replaces anoth…

ParameterTypeDescription
action *string'update': change fields on an existing entry (draft by default). 'accept': accept a draft entry onto the Chain. 'move': relocate an entry to a different collection (pass `canonicalKey` too for an atom…
autoPublishbooleanFor 'update': accepted for backward compatibility but IGNORED — draft vs. published is decided by the entry's own accepted/active status, never by this flag.
canonicalKeystringFor 'update': semantic type (e.g. 'decision', 'tension'); only changeable on draft entries. For 'move': optional atomic move+retype target.
changeNotestringFor 'update': short human-readable rationale for WHY this change was made. Recorded on the history event, and on the version an accepted entry's save publishes. If omitted, the history names the field…
changeReasonstringFor 'update': Change reason — required when the update changes a promise field of an accepted entry. Recorded on the history event, and on the version an accepted entry's save publishes.
changedByEntrystringFor 'update': the entry this update answers; needs changeReason. Either a possible clash's other entry or a draft changing this one.
coherencyAcknowledgementobjectFor 'update'/'accept': your answer when an entry links to nothing.
dataobjectFor 'update': fields to update (merged with existing data).
entryIdstringEntry ID, e.g. '<PREFIX>-<n>'. Required for: update, accept, move, verify, still-true, replace (the entry being replaced).
namestringFor 'update': new display name.
newEntryIdstringFor 'replace': the accepted entry that replaces entryId (required).
ordernumberFor 'update': new sort order.
previewbooleanFor 'accept': if true, validates the accept without writing — returns what would happen.
qualityOverrideReasonstringFor 'update'/'accept': why a text keeps or passes after its checklist failed; on update, at least 12 characters. Your name is kept with it.
reasonstringFor 'accept' with replaces, and for 'replace': why, one line of at most 200 characters (required).
replacesstringFor 'accept': the accepted entry of the same kind this one replaces; it is archived.
sessionIdstringThe sessionId `session action=start` returned. Pass it on every write: the connection does not remember your session between calls.
sourceExcerptstringFor 'update': verbatim excerpt from the source backing this entry's claims. Write-once.
sourceRefFor 'update': link or path of this entry's source; null clears it.
statusstringFor 'update': draft|archived ONLY — 'accepted' is set via 'accept', never 'update'; 'active'/'deprecated' are legacy read-only words, refused on write. Workflow values use `workflowStatus` instead.
steeringOverrideReasonstringFor 'update'/'accept': why it stands alone, at least 12 characters. Your name is kept with it.
toCollectionstringFor 'move': target collection slug, e.g. 'decisions', 'rules'.
workflowStatusstringFor 'update': collection workflow state. Valid values are collection-specific and server-owned — discover via `collections action=describe`. Invalid values are rejected with the valid set.

relations Relations

Create and delete relations between entries, each written only on request with exactly the verb you send. Read relations with the read-only `context action=find`. Each level links to the one above: A work package validates an accepted key result or KPI. A key result hangs on an accepted objective with part_of. An objective hangs on an accepted strategy with part_of. A strategy hangs on an accepted vision with part_of. A vision hangs on an accepted purpose with part_of.

ParameterTypeDescription
action *string'create': link two entries. 'batch-create': create multiple relations (validates every item before writing any). 'delete': remove a relation.
fromstringFor 'create'/'delete': source entry ID.
movebooleanFor 'create' with part_of: move the entry off the parent it already hangs on, in one write.
previewbooleanFor 'create': if true, checks the relation and writes nothing.
relationsarrayFor 'batch-create': array of {from, to, type}.
sessionIdstringThe sessionId `session action=start` returned. Pass it on every write: the connection does not remember your session between calls.
tostringFor 'create'/'delete': target entry ID.
typestringRelation type, for create, delete and each batch-create item.

context Context

Read the Chain. Every action is a read except incremental, which records the brief run it steers. - **get**: Full entries by ID: data, labels, relations, history. entryIds reads up to 20. - **batch**: get with entryIds. - **history**: Audit trail for an entry. - **list**: Browse entries by collection, status, tag or label; collections action=list names the slugs. - **search**: Full-text search; scope by collection or status. - **find**: An entry's direct relations, both ways; not text search. - **people**: The workspace's members: name, email, status, role. Max 200. - **outcome**: A key resul…

ParameterTypeDescription
action *string'get': entries in full by ID (entryIds: up to 20). 'batch': get with entryIds. 'history': audit trail for an entry. 'list': browse entries with filters (current entries by default). 'search': full-tex…
briefTypestringCompound query type for 'brief' action. 'steering': 7d changes + structural aggregation (part_of, depends_on, constrains) + incremental delta + workspace readiness. 'confidence': 7d changes + active b…
canonicalKeystringFor 'accountable'/'preflight': one kind, e.g. tension.
collectionstringFor 'list'/'search': collection slug, e.g. 'glossary', 'tensions'. Required for 'preflight'.
cursornumberFor 'accountable'/'tasks': nextCursor of an earlier page.
directionstringFor 'chain': 'outgoing' follows relations from source, 'incoming' to source (default outgoing). For 'find': incoming|outgoing|both (default both).
entryIdstringThe entry ID for the actions that read one entry; optional for 'gather' (entry-graph mode).
entryIdsarrayFor 'get'/'batch': up to 20 entry IDs.
labelstringFor 'list': a label slug, across all collections.
limitintegerFor 'readings'/'accountable': max rows (default and maximum 200).
linksarrayFor 'preflight': proposed links.
mapEntryIdstringFor 'gather': journey map entry ID for journey-aware context. Returns context organised by journey stage. Takes precedence over entryId when both are supplied. Example: '<PREFIX>-<n>'.
maxHopsnumberRelation traversal depth (1=direct only, 2=default, 3=wide net, 4=deep chain walk)
maxResultsnumberMax entries to return in gather task mode (default 10)
modestringFor gather: 'search' (default) or 'graph' (enhanced with provenance paths). Ignored when mapEntryId is provided.
querystringFor 'search': search text.
relationTypestringRelation type filter. For 'chain': optional filter to traverse only this relation type. For 'cross-cut': required — scans all relations of this type across the workspace. Examples: 'part_of', 'infor…
roleIdstringFor 'accountable'/'tasks': the role's id.
sessionIdstringThe sessionId `session action=start` returned. Pass it on every write: the connection does not remember your session between calls.
sincestringFor 'changes': ISO 8601 timestamp — returns entries/relations modified since this time. For 'brief' briefType='delta': optional custom timestamp. Example: '2026-03-24T00:00:00Z'.
skillstringSkill name for 'incremental' action — identifies which skill's brief history to compare against. Examples: 'preflight', 'shaping', 'review'. Required when action is 'incremental'.
statusFor 'list': defaults to current entries (active/accepted/current); use status='draft' to discover drafts. One lifecycle or category value (draft|accepted|active|current|archived|deprecated|past|discar…
strategystringFor gather task mode: 'keyword' (text search, default) or 'hybrid' (vector plus text).
tagstringFor 'list': filter by internal tag.
taskstringFor 'gather': the task in plain words; loads its binding rules and supporting context.

collections Collections

Manage knowledge collections and workspace labels. Eleven actions: - **list**: Browse all collections — glossary, decisions, rules, tensions, etc. Returns slug, name, description, and field schema. Use before capture to see what exists. - **describe**: Full documentation for a single collection. Returns field help text, option decision guides, usage guidance, examples, and cross-references. Use when you need to understand a collection's purpose, field semantics, or option values. - **update**: Update a collection's purpose, navGroup, fields, or (non-system only) stageLabelMap; its name, des…

orient Orient

Task-grounded context loader. Call `session action=start` first; it opens the session and hands you the briefing. Pass `task` to load the governance and context for a specific task. Orient is advice for captures, relations, accepts, ticks and questions; workflow checkpoints and organisation-structure writes (membership, ownership, parent) still require an oriented session. Purpose, vision and strategy highlights are always served in full; a grounding status flags when other context was reduced. Set depth with `tier` or `mode`; `rules` adds each rule's whole body.

ParameterTypeDescription
actionstring'task': task-grounded context loader, the only action.
invocationPathstringFor 'task': how this orient was invoked. Defaults to 'manual-orient' (the direct `orient task=...` call shape) when omitted.
modestringFor 'task': full (default), or brief: a compact summary (tier=summary).
rulesbooleanFor 'task': true adds each rule's whole body under its line.
sessionIdstringThe sessionId `session action=start` returned. Pass it on every write: the connection does not remember your session between calls.
startupSignalsobjectFor 'task': best-effort startup signals — changedPaths/reviewedArtifactRefs/branchName/worktreeName. All optional; omit fields you don't know.
taskstringFor 'task': natural-language task description for task-scoped context. When provided, orient returns scored, relevant entries for the task.
tierstringFor 'task': payload depth: summary (~10 KB), standard (~256 KB, the default) or full (no cap). An explicit tier wins.

capture Capture

The tool for creating a single knowledge entry. Creates an entry and returns a quality scorecard — all in one call. Provide a name and description; `collection` is optional — the kernel classifies when omitted and files a low-confidence pick as a draft with one line saying so. An agent capturing several atoms from one text calls this once per atom. **Explicit data:** When you know the schema, pass `data: { field: value }` to set fields directly. A value in `data` is kept as sent; `description` is the entry's text and fills the collection's prose field only when `data` leaves it empty (the…

ParameterTypeDescription
actionstringCreate a single knowledge entry.
canonicalKeystringSemantic type, e.g. 'decision' or 'vision'; set from the collection if omitted.
collectionstringCollection slug, e.g. 'tensions', 'rules', 'decisions'.
contextstringExtra context, appended to the description: stored only when the description is, not when data carries the prose field.
dataobjectExplicit field values; user-provided wins over inferred.
descriptionstringThe detail, in Markdown. For a key result, open with what counts toward it; at most 4000 characters.
linksarrayLinks written with the entry; each returns written or refused with a reason, and a refusal fails nothing.
namestringA kind prefix is dropped. At most 40 characters for an objective, key result or KPI, 80 for a decision, tension, insight, task, question, work package or SOP, 110 bytes for a rule, 250 for any other k…
ownerRoleEntryIdstringOwning role (rung-2); you must hold it; its team is the one you hold it in (root first, else the shallowest).
previewbooleanIf true, validates without writing.
sessionIdstringThe sessionId `session action=start` returned. Pass it on every write: the connection does not remember your session between calls.
sourceExcerptstringVerbatim excerpt from the source backing this entry's claims.
sourceRefstringURI or path of the source document backing this entry.
suggestOnlysuggestOnly was removed: call capture with preview: true to check a capture without writing.
teamstringFor a role: the team it is born in. For a team: its parent team. Entry ID or ref; defaults to the root team.
whystringWhy this entry exists.

quality Quality

Assess, re-evaluate, and verify entry/work package quality. Four actions: - **check**: Read the entry's server quality verdict (tier + criteria) — it does not re-score. - **re-evaluate**: Trigger a fresh quality evaluation. Returns heuristic verdict immediately, schedules LLM evaluation in background. - **verify-chain**: Verify knowledge entries against the actual codebase (codeMapping drift, cross-references) — absorbs `verify`. Produces a trust report with a trust score. - **spine-check**: Checks the direction, purpose to key results, for duplicates, unlinked entries and a strategy that…

ParameterTypeDescription
action *string'check': read the entry's server quality verdict (tier + criteria). 're-evaluate': trigger fresh evaluation. 'verify-chain': verify entries against the codebase (codeMapping drift, cross-references) â…
collectionstringFor 'verify-chain': collection slug to verify (default: glossary).
contextstringFor re-evaluate: evaluation context
entryIdstringFor 'check'/'re-evaluate': entry ID, e.g. 'TEN-graph-db', '<PREFIX>-<n>'.
modestringFor 'verify-chain': 'report' = read-only trust report (default). 'fix' = also update drifted codeMapping statuses.
refreshbooleanFor 'spine-check': force a new run even if a fresh verdict already exists. Default false — a plain call NEVER re-triggers work just to read the last result; it auto-schedules only when no run is alr…
sessionIdstringThe sessionId `session action=start` returned. Pass it on every write: the connection does not remember your session between calls.
storybooleanFor 'spine-check': also run the one-story judgment (never scheduled; result labelled [unvalidated]).

workflows Workflows

Chainwork workflow discovery, start/resume, checkpointing, and run inspection. Four actions: - **list**: Browse available workflows — retro, shape-a-bet, implementation-review, process-change. - **start**: Start or resume a workflow. Call with workflowId (e.g. 'implementation-review', 'retro', 'shape', 'process-change'). Returns the first (or current) round instructions and the exact checkpoint call to use when the round is complete. Use this when the user says 'run implementation review', 'run retro', 'shape this', or 'process change' — it is the tool entry point for running a workflow.…

ParameterTypeDescription
action *string'list': browse available workflows. 'start': start or resume a workflow — returns first (or current) round and next-step checkpoint call. 'checkpoint': record round output or final summary. 'get-run…
isFinalbooleanIf true, finalize an existing durable workflow run from its terminal round and create the summary chain entry.
outputThe round's output — either legacy synthesized text or a typed workflow run payload.
ownerRoleEntryIdstringFor 'checkpoint' (isFinal): owning role (rung-2).
ownerTeamEntryIdstringFor 'checkpoint' (isFinal): owning team (rung-2).
restartbooleanIf true, start a new durable run from the workflow's first round in the current session.
roundIdstringRound ID for checkpoint, e.g. 'what-went-well'
runIdstringWorkflow run ID: for get-run, which run to load; for checkpoint, target this run (avoids session drift — pass runId from get-run).
sessionIdstringThe sessionId `session action=start` returned. Pass it on every write: the connection does not remember your session between calls.
summaryDescriptionstringOptional override for the final chain entry description. Defaults to the final round output text.
summaryEntryIdstringLink an existing entry as the run's summary instead of creating one. Used by facilitated workflows (e.g. shape) where the primary record is created by the specialized tool.
summaryNamestringOptional name for final chain entry. If omitted, the workflow summary template is used.
workflowIdstringWorkflow ID for start, checkpoint, or get-run, e.g. 'retro', 'implementation-review'

workspace Workspace

Diagnostics, session identity, and usage for the current workspace. Six actions: - **check**: Verify connectivity — workspace, collections, entries, latency. - **whoami**: Session identity — workspace ID, slug, name. - **status**: Workspace readiness — checks (pass/fail), gaps, stats (entries, relations, orphans). - **audit**: Session audit log — last N backend calls with summary. - **self-test**: Validate all registered tool schemas. - **usage**: LLM usage and cost summary — spend, tokens, model/feature breakdown.

ParameterTypeDescription
action *string'check': connectivity and workspace stats. 'whoami': session identity. 'status': workspace readiness. 'audit': session audit log. 'self-test': validate all tool schemas. 'usage': LLM usage and cost su…
limitnumberFor 'audit': how many recent calls to show (max 50, default 20).
periodDaysnumberFor 'usage': number of days to look back (default 30, max 90).
sessionIdstringThe sessionId `session action=start` returned. Pass it on every write: the connection does not remember your session between calls.

feedback Feedback — Submit & Triage

Submit Product Brain feedback from any agent, including with a read-only key and no session. list reads back your own workspace's feedback (all statuses, no gate). Vendor operators can also queue (triage), note, group, and change queue status.

ParameterTypeDescription
action *stringsubmit requires message; list returns your own workspace's feedback (all statuses); queue is the vendor triage queue (system admins only) and accepts filters; note requires feedbackId+note; group requ…
answerstringstatus only: the one sentence the reporter reads under their report, dated (at most 240 characters).
beforenumberQueue-only upper createdAt window bound (exclusive) in epoch milliseconds. A time-window FILTER, not the pager — use cursor to page.
categorystringSubmit/queue category; submit defaults to other.
clientstringOptional submit client label.
commandstringOptional submit command context; argument values are scrubbed server-side.
cursorstringOpaque pagination cursor from a previous list/queue response (continueCursor); omit for the first page.
feedbackIdstringRequired for note/status: target feedback ID.
feedbackIdsarrayRequired for group: 1–100 target feedback IDs.
fullbooleanlist/queue only: return untruncated messages; allowed only when limit <= 5.
groupIdGroup filter, or required group destination; null explicitly clears grouping.
limitintegerlist/queue row limit, default 50, maximum 100.
messagestringRequired for submit: the product feedback text (at most 10,000 characters).
notestringRequired for note: replacement triage note (at most 4,000 characters).
routestringOptional submit route context.
sessionIdstringThe sessionId `session action=start` returned. Pass it on every write: the connection does not remember your session between calls.
sincenumberQueue-only lower createdAt window bound (inclusive) in epoch milliseconds.
statusstringlist/queue filter (any status, including 'screening'); the status action's required target value excludes 'screening' (system-only).
tensionIdstringstatus only: the tension the report joined, its display id TEN- and a number (vendor-only, never shown to the reporter).
workspaceIdstringQueue-only filter (vendor cross-workspace triage); omitted means all workspaces. Has no effect on list — your own workspace is always injected server-side.

conflicts Possible clashes

List possible clashes; propose; a person answers.

ParameterTypeDescription
action *string
choicestring
issueIdstringresolve or propose: id from list.
modestringlist: all adds answered and snoozed ones.
reasonstring
sessionIdstringThe sessionId `session action=start` returned. Pass it on every write: the connection does not remember your session between calls.
targetstring
verdictstring

question Question

Routed questions — ask a role with `toRole` on create and the question is assigned to it at once. With no role named, your own team's Team Lead holds it; a Team Lead named without a team is your own team's. Six actions: - **create**: ask a question from text; `toRole` assigns it to that role at once; `toTeam`: The team whose Team Lead holds it; only for Team Lead, which is held in every team. - **assign**: reassign to a role (`toRole` required, `toTeam` as on create); the asker may, once, while a team lead holds it. - **answer**: writes `text` on the question as its answer, in full; `answer…

ParameterTypeDescription
action *string'create': ask a question; toRole assigns it to that role at once. With no role named, your own team's Team Lead holds it; a Team Lead named without a team is your own team's. (generic entry creation a…
answerEntryIdstring'answer': Link an entry beside the answer text; it resolves the question. Never instead of the text.
blocksarray'create': entry ids this question is blocking (repeatable).
entryIdstringTarget question's id (human TEN-nnn form or a raw entry id). Required for every action except 'create'/'list'.
mineboolean'list': true for every question you asked, any status; omit for what you owe.
reasonstring'force-close': required reason.
rolestring'list': role id (not with mine).
sessionIdstringThe sessionId `session action=start` returned. Pass it on every write: the connection does not remember your session between calls.
teamstring'list': Team Lead rows' team; no role: one you lead (TEAM-n); not with mine.
textstring'create': the question text. 'answer': The answer in full, at most 4,000 characters. 'add': the line to add.
toRolestringThe role (ROL-nnn or a raw entry id): optional on 'create', required on 'assign'.
toTeamstring'create' and 'assign', with toRole (TEAM-nnn or a raw entry id): The team whose Team Lead holds it; only for Team Lead, which is held in every team.

role Role

Workspace roles — who holds a role, where it sits and what it owns. Eight actions: - **seat**: put a person in this role, by person id or email, or by `newPersonName` for someone with no login yet (a placeholder person, created once per exact name). The role's home team is used; name `teamId` only for Team Lead. A held role refuses a second holder and names the holder; the person keeps their other roles in the team. Needs the team's Team Lead. With `replace`, the lead above replaces a team's Team Lead in one write. The lead directly above a team also decides who leads it. With `onMyAuthorit…

ParameterTypeDescription
action *string'seat': put a person in this role. 'unseat': take this role from a person. 'release_move' / 'accept_move' / 'refuse_move': move a role or team to a team with another Team Lead. 'move_work': move every…
childIdstring'release_move' / 'accept_move' / 'refuse_move': the role or team that moves, by chain id or entry id.
dryRunboolean'move_work': list the role's open items, 200 a page with how many are listed, and change nothing.
fromRoleIdstring'move_work': the role whose open work moves, by chain id or entry id.
newPersonNamestring'seat': the name of a person who has no login yet; a placeholder person is created once and reused for the same exact name. Refused when the name belongs to someone with an account.
onMyAuthorityboolean'seat', Team Lead only: as the team's Team Lead, seat a second Team Lead who holds the seat on your authority until you unseat them.
pageinteger'move_work' with dryRun: the page to list, from 1.
personstring'seat' / 'unseat': an existing person, by person id or exact email. For 'seat', give this or newPersonName, not both.
replacestring'seat', Team Lead only: the holder you replace as the lead above. They are unseated in the same write.
roleIdstringThe role, by the human chain id `chain.getEntry` or `pb get` would print for it, or a raw entry id.
sessionIdstringThe sessionId `session action=start` returned. Pass it on every write: the connection does not remember your session between calls.
teamIdstring'seat' / 'unseat': the team, by chain id or entry id. Only needed for Team Lead, which lives in every team; any other role is seated in its home team. 'release_move': the team it moves to. 'give_right…
toRoleIdstring'move_work': the receiving role; without it, the nearest Team Lead of the old role's home team.
whystring'refuse_move': why the move is refused; it becomes a tension for the old team's Team Lead.

people People

People in the workspace. Two actions: - **invite**: send a login link to `email`. Give `person` (a placeholder's id, as `role action=seat` printed it) to invite that person in place: they keep every role they hold. Or give `newPersonName` to invite someone new. A person who already has a login or an invite is refused. Needs a workspace owner or admin. - **remove**: take `person` out of the team `teamId`; every role they hold there goes with it. To take one role, use `role action=unseat`. Needs the team's Team Lead.

ParameterTypeDescription
action *string'invite': send a login link by email. 'remove': take a person out of a team.
emailstring'invite': where the login link goes. Required for 'invite'.
newPersonNamestring'invite': the name of a new person to invite, instead of person.
personstring'invite': a placeholder's person id, instead of newPersonName. 'remove': the person, by person id or exact email.
sessionIdstringThe sessionId `session action=start` returned. Pass it on every write: the connection does not remember your session between calls.
teamIdstring'remove': the team, by chain id or entry id. Required for 'remove'.

outcome Outcome

Key result and KPI outcomes: record the measured readings behind a number. - **record**: Record a reading — evidence, not a verdict; any connector may record one. Read with the read-only `context` tool: `context action=outcome entryId="..."` (the derived view, its objective and sibling key results), `context action=readings entryId="..."` (the readings).

ParameterTypeDescription
action *string'record': record a reading (evidence, not a verdict). Reads live on context: action=outcome and action=readings.
asOfstring'record': when the world was in this state, as a parseable date (default: now). Back-dating a backfill is legitimate — it shows up as asOf earlier than recordedAt.
correctsReadingIdstring'record': required with kind='correction' — the reading id this replaces. Refused if that row is already superseded.
countnumber'record': The number counted
entryIdstringThe key result or KPI, by its chain id. Required.
kindstring'record': measurement | estimate | correction (default: measurement).
notestring'record': free-text note recorded with the reading.
recordedByRoleIdstring'record': the accountable role (default: the entry's reporter, then its owner).
sessionIdstringThe sessionId `session action=start` returned. Pass it on every write: the connection does not remember your session between calls.
sourcestring'record': Where the number comes from (required for a KPI)
totalnumber'record': Out of how many
valuenumber'record': the measured value; or leave it out and give count and total.
valueTextstring'record': verbatim as-reported form when the source was not clean, e.g. '~62%'. Display only.