Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Connect AI agents to the Triangle Health MCP server

Vendor MCP
Open markdown

The Triangle Health MCP connector routes your AI agent's tool calls to Triangle Health's own MCP server through Scalekit. Each user signs in to Triangle Health once, and Scalekit stores and refreshes their tokens, so your agent never handles credentials. It comes with 59 tools.

Tools
59
What they doRead · write · destructive
35 · 11 · 1335 read11 write13 destructive
Users sign in with
OAuth app
Your own Triangle Health MCP server app

Setup

  1. Install the SDK

    Terminal window
    npm install @scalekit-sdk/node dotenv
  2. Set your credentials

    Add your Scalekit credentials to your .env file. Find values in app.scalekit.com > Developers > API Credentials.

    .env
    SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
    SCALEKIT_CLIENT_ID=<your-client-id>
    SCALEKIT_CLIENT_SECRET=<your-client-secret>
  3. Create the Triangle Health MCP connection

    In AgentKit > Connections, create a Triangle Health MCP connection and copy its redirect URI. The name you give it is the connection_name your code passes. See Configure connections.

  4. Register an OAuth app

    Triangle Health MCP server connections use your own OAuth app. Register one with Triangle Health MCP server and add the redirect URI you copied.

    Then enter the app's Client ID and Client Secret on the Triangle Health MCP connection.

  5. Authorize a user and make your first call

    quickstart.mts
    import { ScalekitClient } from '@scalekit-sdk/node'
    import 'dotenv/config'
    import { createInterface } from 'node:readline/promises'
    const scalekit = new ScalekitClient(
    process.env.SCALEKIT_ENVIRONMENT_URL,
    process.env.SCALEKIT_CLIENT_ID,
    process.env.SCALEKIT_CLIENT_SECRET,
    )
    const actions = scalekit.actions
    const connector = 'trianglehealthmcp'
    const identifier = 'user_123'
    // Generate an authorization link for the user
    const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
    console.log('Authorize Triangle Health MCP:', link)
    const rl = createInterface({ input: process.stdin, output: process.stdout })
    await rl.question('Press Enter after authorizing...')
    rl.close()
    // Make your first call
    const result = await actions.executeTool({
    connector,
    identifier,
    toolName: 'trianglehealthmcp_get_appointment_availability',
    toolInput: {},
    })
    console.log(result)
    Terminal window
    npx tsx quickstart.mts

    Each user signs in once. See Authorize a user for the full flow and statuses.

Tools

Pass the exact name to execute_tool
Try in PlaygroundRequest a tool
  • trianglehealthmcp_get_appointment_availabilityThe times a Triangle clinician can see the person, as ISO instants with offsets, plus the visit length.Read-only

    Get appointment availability

    The times a Triangle clinician can see the person, as ISO instants with offsets, plus the visit length. `schedule_appointment` books one of these times. Availability depends on the visit type and the US state the person will be in; both default from their profile. Input: optional `type` and `state`.

    Inputs

    statestring
    Two-letter US state the person will be in, for licensing. Defaults to the state of their address on file.
    typestring
    Kind of visit. Defaults to intake for a person who has not had one, otherwise navigation (a follow-up).one of intakenavigationlab-order-consult
  • trianglehealthmcp_get_care_team_practitionerOne member of the person's care team, by `teamMemberId` (from `get_care_team_practitioners`; profile ids are not accepted).Read-only

    Get care team member

    One member of the person's care team, by `teamMemberId` (from `get_care_team_practitioners`; profile ids are not accepted). Returns profile-backed and user-backed practitioners in one shape. Profile-backed members include `editableProfile` when the entry can be edited in the app.

    Inputs

    teamMemberIdstringrequired
    Care team member ID from get_care_team_practitioners
  • trianglehealthmcp_get_care_team_practitionersThe practitioners on the person's care team, with optional search and paging: who they are, their contact details and how they are linked.Read-only

    List care team

    The practitioners on the person's care team, with optional search and paging: who they are, their contact details and how they are linked. Both directory entries and verified practitioner accounts are included; pending invites are not. Input: optional `search` (name, specialty, practice, contact fields or NPI), `offset` and `limit` (default 0 and 25). `pagination.hasMore` says whether there are more. Each row's `teamMemberId` is the id the other care team tools take.

    Inputs

    limitinteger
    Page size (defaults to 25; max 50)default 25
    offsetinteger
    Pagination offset (defaults to 0)default 0
    searchstring
    Search practitioners by name, specialty, practice, contact info, or NPI
    sortBystring
    Sort order: lastName, lastSeen, specialty, or groupNameone of lastNamelastSeenspecialtygroupName
  • trianglehealthmcp_get_changes_sinceWhat has changed in this person's Triangle record since a given time: documents added or processed, records imports, clinical summary updates, notes, health topics, appointments, reports, surveys, profile and care team changes, and messages sent in Triangle's chat.Read-only

    Get record changes since

    What has changed in this person's Triangle record since a given time: documents added or processed, records imports, clinical summary updates, notes, health topics, appointments, reports, surveys, profile and care team changes, and messages sent in Triangle's chat. It keeps a conversation current without re-reading everything: pass the `nextSince` from the previous answer, and each event names the surface that changed, so only that needs reading again. Events come newest first. When `hasMore` is true, `before` set to `earlierBefore` reads the rest of the window before `since` moves forward. Both bounds include their own instant, so the event at a cursor can appear again on the next call: `eventId` tells it apart. It lists that something changed, not the change itself: it carries no document contents, note text or message text.

    Inputs

    limitintegerrequired
    Page size (defaults to 50; max 200)default 50
    beforestring
    Return changes before this time (ISO 8601). Use `earlierBefore` from a previous call to page further back.
    sincestring
    Return changes after this time (ISO 8601). Defaults to 7 days ago.
  • trianglehealthmcp_get_clinical_summaryTriangle's own written summary of the person's records: one section per health topic, written from every document on file, with whether it is current, being rewritten, or not yet written.Read-only

    Get clinical summary

    Triangle's own written summary of the person's records: one section per health topic, written from every document on file, with whether it is current, being rewritten, or not yet written. It answers "what's in my records" or "summarize my history", and is the starting point before individual documents. A new summary is written automatically after records are uploaded or imported; there is no way to ask for one here. Input: none.

    Inputs

    This tool takes no inputs.

  • trianglehealthmcp_get_genome_geneOne gene from the person's genome report: the finding in plain words, what it changes, the risk level and evidence, the medications it affects, the action plan, and the variant details.Read-only

    Get genome finding for a gene

    One gene from the person's genome report: the finding in plain words, what it changes, the risk level and evidence, the medications it affects, the action plan, and the variant details. It answers "what does my CYP2C19 result mean" or "do I carry a BRCA variant", and, gene by gene for the genes `get_genome_overview` names, "which of my medications are affected by my genes". A gene that is not in the report has no finding; that is not the same as a normal result, and the answer says so. Input: `gene`, a symbol such as CYP2C19.

    Inputs

    genestringrequired
    Gene symbol, for example CYP2C19, BRCA1 or APOE.
  • trianglehealthmcp_get_genome_overviewThe person's genome report, when one is on file: how many genes have findings, the categories they fall into (such as pharmacogenomics, cancer risk, cardiovascular), and the genes to start with.Read-only

    Get genome report overview

    The person's genome report, when one is on file: how many genes have findings, the categories they fall into (such as pharmacogenomics, cancer risk, cardiovascular), and the genes to start with. It answers "what did my DNA test show" or "do I have any genetic risks", and names the genes `get_genome_gene` covers in detail. This is the germline (inherited) genome report; the tumor genomic analysis of a cancer is a separate set of tools starting with `get_genomics_run`. Input: none.

    Inputs

    This tool takes no inputs.

  • trianglehealthmcp_get_genomics_geneEverything the tumor genomic analysis says about one gene, in one call: RNA expression, small variants with their reportability tier and reason, copy number, and whether it is a reported driver or a neoantigen source.Read-only

    Get tumor genomics for a gene

    Everything the tumor genomic analysis says about one gene, in one call: RNA expression, small variants with their reportability tier and reason, copy number, and whether it is a reported driver or a neoantigen source. It answers "what about TP53", "is EGFR amplified" or "is this a driver". A gene with no reportable variant is not the same as a gene that was not looked at; the answer says which. Input: `gene`, a symbol such as TP53.

    Inputs

    genestringrequired
    Gene symbol, for example TP53 or CDKN2A.