Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HB_ENVNolive or sandbox: overrides environment detection. An unrecognised host is treated as live.
HB_API_KEYYesThe hbk_ API key. Environment only; never a tool argument.
HB_BASE_URLNoHub API base URL. Live by default. A sandbox looks like https://<portal host>/sandbox/<uuid>. http is allowed only for localhost.https://hub.hbcompliance.co.uk
HB_TOOLSETSNoComma list of portals to expose in full mode, and a limit on hb_call_operation.
HB_LOG_LEVELNoLog level: silent, error, warn, info, or debug. Logs go to stderr and hold metadata only.warn
HB_READ_ONLYNofalse enables writes. Defaults to true.true
HB_TOOL_MODENocompact (8 tools) or full (one tool per operation).compact
HB_MCP_HTTP_HOSTNoDefault host for --http.127.0.0.1
HB_MCP_HTTP_PORTNoDefault port for --http.3333
HB_MCP_HTTP_TOKENNoBearer token required by --http when not bound to loopback.
HB_WEBHOOK_SECRETNoDefault secret for hb_verify_webhook_signature.
HB_ALLOW_LIVE_WRITESNoMust be true, together with HB_READ_ONLY=false, to write to the live Hub.false
HB_MAX_RESPONSE_CHARSNoCap on one tool answer; larger answers are truncated with a notice.60000
HB_REQUEST_TIMEOUT_MSNoPer request timeout in milliseconds.30000

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{}
resources
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
hb_statusA

Who am I and what may I do? Calls GET /auth/me and reports: environment (live or sandbox), base URL, key name and prefix, the key's scopes, whether writes are enabled, the toolsets, and the last-seen rate limit. Never reveals a key or token. Call this first.

hb_search_operationsA

Search the 189 Hub API v2 operations by text, toolset (portal), method or scope. Returns id, method, path, summary, scope, flags (credits, health data, destructive) and whether each is callable now. Start here, then hb_describe_operation, then hb_call_operation.

hb_describe_operationA

Full detail of one operation: parameters, body schema with required fields and an example, required scope, side effects (credits, health data, destructive, idempotency), documented errors, and a ready example call for hb_call_operation. Read this before any write.

hb_call_operationA

[LIVE Hub] Call any Hub API v2 operation by id. Validates against the spec before sending; adds an Idempotency-Key to writes; follows pagination with all_pages (capped). The server is READ-ONLY: only GET operations run; writes are refused. Put path parameters in path_params, filters in query, JSON in body. Use fields (dotted paths such as ["candidate_ref","name"]) to keep answers small. Credits are units; money is integer pence with a currency. Never ask the user for an API key in chat.

hb_list_eventsA

List the 59 webhook events Hub can send (type and one-line summary). Optionally filter by portal prefix (e.g. "occupational-health") or text. Knowledge only: sends nothing.

hb_describe_eventA

Describe one webhook event: summary, delivery behaviour (retries), the data payload schema and a sample payload. Payloads hold ids, statuses, dates and a candidate_ref, never names, emails or health data. Knowledge only.

hb_verify_webhook_signatureA

Pure local helper (no network): verify or compute a Hub webhook signature. The signature is "sha256=" plus the hex HMAC-SHA256 of "{timestamp}.{raw body}" with the endpoint secret; deliveries older or newer than 300 seconds are rejected. Pass the raw body byte-for-byte. The secret is read from HB_WEBHOOK_SECRET unless passed (prefer a sandbox secret if you pass it in chat). Omit signature to just compute it.

hb_search_guidesA

Search the bundled guides by words and get the best matches with a snippet and the resource to read (hb://guides/). Covers the Hub API v2 developer guides and the developer portal guides (sign up, sandboxes, keys, webhooks, Playground, going to production). Knowledge only: sends nothing, needs no key.

Prompts

Interactive templates invoked by user choice

NameDescription
book-practical-trainingFind the candidate, a course, a session with free places, check credits, then book (with a plan first in live).
check-candidate-complianceRead-only: gather a candidate's compliance status across Hub, Occupational Health and Online Training.
webhook-sandbox-setupRegister a webhook endpoint in a SANDBOX, choose events, send a test event, check deliveries and verify signatures.
get-started-in-sandboxWalk a new developer from sign-up to a first read call: work email, verify, sandbox, API key, HB_BASE_URL/HB_API_KEY, --doctor, first read.
go-live-checklistWalk through moving an integration from a sandbox to the live Hub.
onboard-candidateCheck for duplicates, then create a candidate (plan first in live).

Resources

Contextual data attached and managed by the client

NameDescription
overviewCounts, toolsets and an index of every operation.
guide-getting-startedHub API v2 developer guide (getting-started).
guide-authenticationHub API v2 developer guide (authentication).
guide-candidates-and-candidate-refHub API v2 developer guide (candidates-and-candidate-ref).
guide-scopes-and-permissionsHub API v2 developer guide (scopes-and-permissions).
guide-ip-allowlistingHub API v2 developer guide (ip-allowlisting).
guide-pagination-filtering-sortingHub API v2 developer guide (pagination-filtering-sorting).
guide-idempotencyHub API v2 developer guide (idempotency).
guide-errorsHub API v2 developer guide (errors).
guide-rate-limitsHub API v2 developer guide (rate-limits).
guide-webhooksHub API v2 developer guide (webhooks).
guide-health-data-and-privacyHub API v2 developer guide (health-data-and-privacy).
guide-testing-and-sandboxHub API v2 developer guide (testing-and-sandbox).
guide-going-liveHub API v2 developer guide (going-live).
guide-changelog-and-versioningHub API v2 developer guide (changelog-and-versioning).
guide-sdk-and-toolsHub API v2 developer guide (sdk-and-tools).
guide-portal-overviewDeveloper portal guide: What the Healthier Business developer portal is, what is in it and the shortest path from a new account to a working integration.
guide-portal-create-your-accountDeveloper portal guide: Sign up for the developer console with your work email address, every field of the form, the rules for passwords and email addresses, and what each error message means.
guide-portal-verify-your-emailDeveloper portal guide: What the Check your inbox page does, how long the confirmation link lasts, how to get another email and what to do when it does not arrive.
guide-portal-sign-in-and-securityDeveloper portal guide: Signing in, resetting a forgotten password, turning on two-step sign-in with an authenticator app, recovery codes, and how sessions and lockouts behave.
guide-portal-the-console-tourDeveloper portal guide: A walk through the console: the sidebar, the getting started checklist, the account menu, the theme switch, and how it looks on a phone.
guide-portal-sandboxesDeveloper portal guide: Create, rename, reset and delete sandboxes, read their addresses and numbers, and understand what a sandbox contains and what it never does.
guide-portal-api-keys-and-tokensDeveloper portal guide: Create test keys with the access you need, see a key once, roll and delete it, then exchange it for an access token and refresh it.
guide-portal-calling-the-api-from-curl-and-postmanDeveloper portal guide: Make your first calls to a sandbox with curl, import the OpenAPI document or Postman collection, and use variables so the same requests work against production later.
guide-portal-webhooksDeveloper portal guide: Register an https endpoint in a sandbox, choose events, keep the signing secret, verify every signature, test and simulate events, read the delivery log, and understand retries and automatic switch-off.
guide-portal-data-page-and-json-viewerDeveloper portal guide: Look at every table of a sandbox, search and sort it, and open a record as an expandable JSON tree.
guide-portal-simulateDeveloper portal guide: Make the things only a person or a clock can do happen inside a sandbox, such as a candidate paying or an interview ending, and see the webhook events, emails and data changes they cause.
guide-portal-api-playgroundDeveloper portal guide: Build and send requests to a sandbox from the console, exchange a key for a token, save requests in collections, use variables, read responses, copy code in four languages and switch to live calls.
guide-portal-request-log-and-debuggingDeveloper portal guide: Read every call your sandbox answered, filter by method and result, open a call to see both bodies, and work out why a call failed using the error code and request id.
guide-portal-inbox-and-notificationsDeveloper portal guide: See the emails and texts a sandbox would have sent to candidates, search and filter them, and turn on notifications on your own device.
guide-portal-support-and-booking-a-callDeveloper portal guide: Ask the API team a question from the console, read their answers, choose what you need (including a paid technical support call paid with HB Pay), and what to put in a message so it is answered quickly.
guide-portal-go-to-productionDeveloper portal guide: The checklist for moving an integration from a sandbox to the live HB Hub, doing it by hand or connecting your HB Hub account to manage production keys and webhooks from the console.
guide-portal-profile-and-securityDeveloper portal guide: Your name, time zone and password, the account security page, downloading your data and deleting your account.
guide-portal-moving-from-legacy-apis-to-v2Developer portal guide: A step by step migration from the per-service legacy APIs to the single Hub API v2: what changes, how to try it in a sandbox now, and how to switch to live when the Compliance Hub is released.
guide-portal-reading-the-api-referenceDeveloper portal guide: How the developer site is laid out, how to search it, what is on an endpoint page, how Try it works, and the tools around the reference (Ask AI, Copy for LLM, llms.txt, OpenAPI).
guide-portal-rate-limits-errors-and-idempotencyDeveloper portal guide: The limits that apply to keys and tokens, every error code and what to do about it, retry rules and how idempotency keys make repeated creates safe.
guide-portal-faq-and-troubleshootingDeveloper portal guide: Short answers to the questions developers ask most, grouped by the part of the portal, with where to look when something does not work.
portal-accountWhat the account portal API does and its operations.
portal-authenticationWhat the authentication portal API does and its operations.
portal-clinical-appraisalsWhat the clinical-appraisals portal API does and its operations.
portal-clinical-interviewsWhat the clinical-interviews portal API does and its operations.
portal-dbs-rtwWhat the dbs-rtw portal API does and its operations.
portal-hubWhat the hub portal API does and its operations.
portal-occupational-healthWhat the occupational-health portal API does and its operations.
portal-online-trainingWhat the online-training portal API does and its operations.
portal-practical-trainingWhat the practical-training portal API does and its operations.
portal-referencesWhat the references portal API does and its operations.
portal-registration-monitoringWhat the registration-monitoring portal API does and its operations.
portal-virtual-bls-trainingWhat the virtual-bls-training portal API does and its operations.

TDQS

A4.2/5.0

Scored across 8 tools

Disambiguation5/5

Each tool targets a distinct resource+action: auth introspection (hb_status), operation discovery (search/describe/call), webhook event discovery (list/describe), a local signature helper, and guide search. The search/describe/call trio is a classic progressive-disclosure pattern with explicitly stated ordering, so there is no realistic misselection. The only near-collision, hb_search_operations vs hb_search_guides, is cleanly separated by domain (API operations vs documentation).

Naming Consistency5/5

All eight tools share the hb_ prefix and snake_case, and follow a predictable verb_noun pattern (search_operations, describe_operation, call_operation, list_events, describe_event, verify_webhook_signature, search_guides). hb_status is the sole noun-only name, but it is a conventional whoami alias and does not break the pattern meaningfully.

Tool Count5/5

Eight tools is well within the sweet spot and each one earns its place: three for the operation lifecycle, two for webhook events, one local crypto helper, one knowledge search, one status check. The meta-tool design (search -> describe -> call) means a small surface covers 189 API operations without bloat.

Completeness4/5

The search/describe/call pattern gives effectively complete coverage of the 189-operation API surface, and webhook discovery plus signature verification covers the integration lifecycle. Minor gaps: no tool to read a guide's full content (hb_search_guides returns an hb:// resource reference, relying on MCP resources), and no webhook endpoint registration/management operations. The read-only refusal of writes is a documented server constraint rather than a surface gap.

Maintenance

ActivityMaintained
ResponsivenessNo issues