Skip to main content
Glama

Onboarding State

get_onboarding_state
Read-only

Read the tenant's onboarding state. Call this FIRST when onboarding or when asked 'what's left to set up'. When issues is present, something the person started has failed (an import, a connection, a backfill, a migration): open with it, call get_onboarding_issues and offer its first fix before anything else. Otherwise lead the answer with foundationsNextStep: the one next step Foundations picks for this account, from the same goals and checks the Foundations page shows (goal, step, its state and measured counts, a plain-English statement and why it matters, and a link that opens that step on the Foundations page for the person to act on), and connectQueue: the person's sources one at a time (from save_data_sources), each with what it brings, its route, status and the one action to take (ordered by the kinds connectQueue.orderedForGoals need, when goals are chosen). While sources are waiting, present only connectQueue.next: one line on what it brings, its action, then call this again once the person is back. Never list the whole queue as a menu. Say foundationsNextStep's statement as written; never invent numbers or treat an answered question as setup done. kind all_set means every chosen goal Spark can check is ready (openGoals lists chosen goals Spark cannot measure yet). journey is the in-chat onboarding path for a person setting Spark up from this conversation: seven stages in order (account_linked, goals, data_sources, connect_sources, sales_and_stock, first_signal, purchasing), each with its status (done | current | upcoming), what Spark measured, the fact that finishes it, and a playbook naming the tools for it. Work only the current stage's playbook, open each reply with what changed in the account's own numbers, and end it with exactly one thing for the person to do. When a person says 'Continue my Spark setup', call this and resume at journey.stage. Also returns setup profile key, sandbox/live + evaluation window (days remaining, frozen), the free trial while it runs (plan, end, whether it ends on Free without a card), enabled modules and feature flags, the profile's onboarding checklist (ordered steps with completion), and a data profile (item/order/customer/supplier/warehouse counts + active integrations). Then get_data_readiness for the per-capability gap analysis. For a client-pinned credential the data counts confine to that client, configuration stays tenant-level, and foundationsNextStep and journey are null (Foundations is account-wide). An unpinned 3PL operator can pass clientId to inspect one client (foundationsNextStep and journey are then null too).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_onboarding_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
clientIdNoOptional client id for a 3PL operator view. Client-pinned credentials omit it; the credential decides.

Output Schema

NameRequiredDescriptionDefault
planNo
trialNo
intentNo
isLiveNo
issuesNo
journeyNo
modulesNo
checklistNo
isSandboxNo
workflowsNo
tenantNameNo
dataProfileNo
connectQueueNo
featureFlagsNo
scopeClientIdNo
foundationsUrlNo
intentAdvisoryNo
scopedToClientNo
scopeClientNameNo
setupProfileKeyNo
credentialPinnedNo
evaluationWindowNo
foundationsNextStepNo
foundationPreferencesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly/closed-world/non-destructive, and the description adds substantial behavior beyond them: the null-ing of foundationsNextStep and journey for client-pinned credentials and for clientId-scoped 3PL views, the tenant-level vs client-level scoping of counts, and the instruction to re-call after the person returns. It also discloses the failure semantics of the issues field, which no annotation covers.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The critical directive is front-loaded, and most sentences carry real operational guidance rather than restating the name. However, it is a single ~400-word block with run-on sentences and nested parentheticals, so scanning it for the one rule that matters at a given moment is hard; a few sentences about return fields overlap with the existing output schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool this complex — onboarding state, next-step object, connect queue, journey stages, profile, checklist, data profile — the description covers the field groups an agent must act on, including how to present them (say the statement as written, one action per reply, open with measured numbers). Nothing needed to call it correctly or interpret the response appears to be missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the single clientId parameter is already documented in the schema, so the baseline is 3. The description earns above baseline by explaining the consequence of passing it (an unpinned 3PL operator inspecting one client, with foundationsNextStep and journey nulled) and by noting that client-pinned credentials omit it because 'the credential decides'.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource ('Read the tenant's onboarding state') and immediately differentiates itself from siblings by naming get_onboarding_issues and get_data_readiness as the follow-on tools. An agent can tell this apart from get_client_onboarding_status or get_onboarding_goals without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit triggering conditions ('Call this FIRST when onboarding or when asked what's left to set up', 'When a person says Continue my Spark setup'), explicit branching (if issues is present, call get_onboarding_issues first; otherwise lead with foundationsNextStep), and an explicit hand-off ('Then get_data_readiness for the per-capability gap analysis'). It also states what not to do: 'Never list the whole queue as a menu.'

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources