Skip to main content
proposes is where you declare what is true about your integration: which credentials it uses and what each tool does. The host applies these values once your integration is admitted — the human-reviewed admission PR is the review, and a declaration then carries the same standing as a first-party integration’s own.

Basic proposal

credentialModel

What kind of credentials your integration uses. The workflow engine reads it to decide whether a run may call your tools. Undeclared means your tools are not usable by workflows.
  • 'account' — credentials resolve at the account level (typical). Declaring it asserts that no handler reads a personal grant or a session client
  • 'user' — credentials or identity are personal to a user
  • 'source' — source-level credentials
Team workflows (they run as a machine actor) admit 'account' and 'source'. Personal workflows (they run as the user) admit 'user' and 'account'.

scope

Optional. Your declared intent for whether activation is per user or per team. The host does not act on it: an integration published with the SDK connects once per team whatever it says. It only feeds your contract, as the connection level inferred (after credentialModel) when you declare no connection.levels. A credentialModel: 'user' + scope: 'team' pairing is flagged as unusual, and ekanos validate warns when scope is not one of your declared connection.levels.

Tool classifications

Declare one for every tool:
  • effect — 'read' (data fetch) or 'write' (modifies state)
  • sensitivity — what kind of data: public, internal, personally identifiable, or financial
A field you leave out falls back, per field, to effect: 'write' and sensitivity: 'pii'. An undeclared tool is treated as a pii write, which will not run in a team workflow.

Key requirement

Tool names in proposes.tools must match declared tool names exactly (the raw name, not the slug-prefixed one). A proposal for a tool you didn’t declare is a validation error — proposes.tools["<name>"] does not match any declared tool — so a rename cannot leave stale classifications behind. proposes is the only place these classifications go: credentialModel and per-tool effect/sensitivity declared anywhere else in the definition are rejected as unrecognized keys.

Review

Admission reviews your declarations against your code. Marking a tool that moves money as 'read' to get past a gate is a review failure. The host also keeps an overrides file that can only tighten a declaration (read to write, a higher sensitivity, dropping credentialModel), never loosen it, so a declaration can be tightened after admission.

Where your declarations apply

ctx.storage.user still throws for machine actors, so a tool that a team workflow may call cannot depend on user-scoped storage. Partner OAuth tokens remain account-scoped.

Workflow impact

Declare credentialModel and classify every tool honestly:

Next steps