Make Endpoints

How to Build AI Agents Using the Make.com Endpoints SDK

Typed app actions as agent tools, with Make holding the credentials.

Make EndpointsAI AgentsSDK

By Troy Tessalone · · 10 minutes

Make Endpoints

A practical field guide from Automation Ace.

Short answer: to build an AI agent with the Make Endpoints SDK, enable Endpoints for your Make organization, create an API key with the endpoints:run scope, and connect the agent's apps in a dedicated team. Import EndpointTools from @makehq/endpoints-sdk/tools, which exports every endpoint as a ready-made tool definition with an input schema, register only the few tools your agent needs, and run each tool call with teamId and connectionId set by your code. For coding agents, install the make-endpoints-cli Agent Skill instead. Add approvals for writes, idempotency keys for retries, and log execution IDs.

Endpoints was in closed beta at the time of writing; method and tool names come from the SDK's GitHub README and the Make Endpoints SDK docs. Pin the SDK version you test with.

Short answer

  1. Access: Endpoints enabled, API key with endpoints:run, a team for the agent.
  2. Tools: pick a small allowlist from EndpointTools.
  3. Wire: map tool definitions to your model's function calling.
  4. Run: your code supplies team and connection IDs.
  5. Guard: approvals, idempotency, confidential runs, logs.

Four ways to give an agent Make Endpoints

ApproachBest forHow
Tool definitions in your agentAgents you build with an SDK and function callingEndpointTools from @makehq/endpoints-sdk/tools
CLI plus Agent SkillCoding agents that run shell commandsmake-endpoints-cli and the bundled SKILL.md
Your own MCP serverMany agents or clients sharing one tool setRegister the same tool definitions on an MCP server
Make MCP ServerExposing whole Make scenarios as toolsSee the Endpoints vs MCP comparison below

Which to choose: Make Endpoints vs MCP for AI agents.

Step 1: Set up access, team, and connections

  • Create a Make team just for the agent and connect only the accounts it should use.
  • Create the API key for a user with access to that team, with the endpoints:run scope.
  • Use make-endpoints-cli connections list --team-id <id> --app <app> --endpoint <endpoint> to find connection IDs; prefer rows marked "scoped": true (the connection has the scopes the endpoint needs).

Auth details: simplifying API authentication for AI agents with Make Endpoints.

Step 2: Choose a small set of endpoint tools

Tools are named <app>_<endpoint> for an app's latest version. Each has an inputSchema with teamId, connectionId (when needed), and the endpoint's fields. Use make-endpoints-cli describe <app> <endpoint> to read a tool's schema and agent guidance. Fewer, well-described tools make agents more reliable; see limiting AI agent app actions.

Step 3: Wire the tools into your agent

import { Make } from '@makehq/sdk';
import { EndpointTools } from '@makehq/endpoints-sdk/tools';

const make = new Make(process.env.MAKE_API_KEY, 'eu1.make.com');
const TEAM_ID = 77;

// 1. Pick a SMALL allowlist of endpoint tools (names: <app>_<endpoint>)
const ALLOWED = new Set(['google-docs_get-document', 'slack_create-message']);
const agentTools = EndpointTools.filter((t) => ALLOWED.has(t.name));

// 2. Give the model each tool's name, description, and inputSchema
//    (map these fields into your model provider's tool format; check field
//    names in the SDK's tool definition type)

// 3. When the model calls a tool, run it with your team and connection
async function runTool(name, args) {
  const tool = agentTools.find((t) => t.name === name);
  if (!tool) throw new Error(`Tool not allowed: ${name}`);
  return tool.execute(make, {
    ...args,
    teamId: TEAM_ID,                       // set by your code, never by the model
    connectionId: CONNECTIONS[name],       // pinned per tool, never by the model
  });
}

The SDK also exports connections_list, endpoints_list-usable, and a generic endpoints_execute tool. Give an agent those only if it should discover and call arbitrary endpoints, which is rarely a good idea in production. General pattern: turning third-party API actions into AI agent tools.

Step 4: Or let a coding agent use the CLI

# Coding agents: install the CLI skill into the project
npx skills add integromat/make-endpoints-sdk
# or generate it from the installed package
mkdir -p .agents/skills/make-endpoints-cli && \
  make-endpoints-cli agent > .agents/skills/make-endpoints-cli/SKILL.md
# Claude Code reads .claude/skills/, so link it there
ln -s ../../.agents/skills/make-endpoints-cli .claude/skills/make-endpoints-cli

# Agents that don't load skills: add the AGENTS.md snippet
make-endpoints-cli agent --snippet >> AGENTS.md

The skill teaches the agent the five steps to a call: find the team, list usable endpoints, describe the endpoint, pick a connection, call it, and never guess IDs.

Step 5: Add approvals, idempotency, and logging

  • Require human approval for sends, deletes, and payments; see permissions, approvals, and audit trails.
  • Pass an idempotencyKey on writes so a retried tool call doesn't act twice.
  • Set confidential for sensitive data you don't want in Make's execution log.
  • Log the tool name, inputs (redacted), execution ID, and result for each call.

An example agent loop

Agent loop with Endpoints tools

User: "Summarize the Q3 plan doc and post it to #leadership"
  -> model calls google-docs_get-document { documentId }
  -> your code adds teamId + connectionId, runs the endpoint, returns output
  -> model writes the summary
  -> model calls slack_create-message { channel, text }   <- approval gate for posts
  -> your code runs it with an idempotency key; logs the execution id
  -> model replies: "Posted to #leadership" + link

Guardrails

RiskGuardrail
Agent calls an action it shouldn'tAllowlist tool names; never register all endpoints
Agent picks the wrong accountSet connectionId and teamId in code, not from model output
Duplicate writes on retriesPass idempotencyKey on writes; Make replays the first outcome
Sensitive data in logsUse confidential to keep data out of Make's execution log
Prompt injection from documents or messagesTreat tool output as data; require approval for sends and deletes
Schema changes in the betaPin the SDK version; test tools after upgrades

Basics: how to build your first AI agent and how AI agents use tools. Prefer Make's no-code agent builder? See building AI agents in Make.

Frequently asked questions

How do I build an AI agent with the Make Endpoints SDK?

Enable Endpoints, create an API key with the endpoints:run scope, connect the agent’s apps in a team, import EndpointTools from @makehq/endpoints-sdk/tools, register a small allowlist of tools with your model, and execute tool calls with teamId and connectionId set by your code.

What is EndpointTools?

EndpointTools is an export of the Make Endpoints SDK that provides every endpoint as a harness-agnostic tool definition with a name, input schema, and execute function, usable for LLM function calling, an MCP server, or your own CLI.

Can coding agents use Make Endpoints?

Yes. The make-endpoints-cli ships an Agent Skill that teaches coding agents how to find a team, list endpoints, describe one, pick a connection, and call it. Claude Code needs the skill linked into .claude/skills.

Should the AI model choose the connection ID?

No. Set teamId and connectionId in your code for each allowed tool so the model can’t switch accounts or reach connections it shouldn’t use.

How do I stop an agent from repeating an action on retry?

Pass an idempotency key with write calls. Make runs the endpoint once per key within the team and returns the first run’s outcome on a repeat.

Make EndpointsAI AgentsSDK

Disclaimer: Make Endpoints was in closed beta at the time of writing; available apps, endpoints, SDK methods, scopes, and pricing can change between releases, so pin versions and test before relying on them in production; details reflect public documentation and coverage at the time of writing, so confirm current details with each provider before building. Automation Ace is not affiliated with Make beyond the referral links marked on this page. This article may include links to apps, products, or services; some links may be affiliate links, which means Automation Ace may earn a commission at no extra cost to you.

Build Better Systems

Ready to automate with confidence?

Share your tools, process, and goals. Automation Ace can design the Zapier, AI, and automation setup that fits your business.

Start a Project →