Now inviting automation leaders: publish your playbook as a skill, under your own name. Publish yours →
Automation Skills
All skills/Make endpoints/Discovery-and-contracts
Reference · Make endpoints

Discovery-and-contracts

Part of Make endpoints. Install the skill and your agent reads this page when it needs the depth.

Discovery, connections, and schemas

Load when choosing an action/connection, checking live availability, using a custom app, or resolving a schema mismatch. Avoid loading the complete catalog and every output schema for a single operation.

Three distinct questions

  1. What does this installed package describe? list, describe, generated app clients, and EndpointTools answer from bundled definitions.
  2. What can this team use now? Live Make discovery and current connections answer after authorization.
  3. What is authorized for this task? The user's request and host policy decide; neither of the catalogs grants permission to write.

Narrow bundled discovery

make-endpoints-cli list
make-endpoints-cli list google-docs v1
make-endpoints-cli describe google-docs v1 get-document

describe includes the input schema, accepted account types, scopes, context, and behavioral annotations. Add --output-schema only to inspect the returned structure. Pin an app version for repeatable calls; omitting it selects the latest version bundled in that package, not a live service lookup.

The app package name, JavaScript client/property name, CLI kebab-case action, and wire Endpoint name can differ. Discover the mapping rather than converting an unverified string. In the documented example, google-docs, GoogleDocsV1Sdk, get-document, and getDocument identify different parts of one contract.

Establish live team/connection availability

Use an already authenticated platform client or CLI to inspect the intended team's connections:

make-cli connections list --team-id "$MAKE_TEAM_ID" --output json

A connection must match the Endpoint's account type and required provider scopes, not just the app's display name. If several candidates remain, confirm the intended account. For identity-sensitive retrieval or writes, a documented read-only account/profile operation can establish which account the connection serves. Never use a write as a credential test.

Some enabled environments expose the team-filtered catalog through GET /api/v2/imt/endpoints-usable?teamId=<TEAM_ID>. This is a beta interface, not a command provided by the current Endpoints CLI. Call it only through an authorized Make client when the current environment exposes that contract; do not turn its refusal into an empty inventory or route around an access restriction.

Its structure is packages -> versions -> endpoints. Preserve returned names and inspect credentialsRequired and credentialsAvailable:

Both native apps and custom app#... apps can appear. Listing metadata does not bypass the runtime's own permission checks. When live usable discovery is unavailable, bundled definitions plus an authorized connection listing remain useful, but report compatibility/enablement as unverified until a permitted read succeeds.

Missing credentials or approved authentication repair

The scenario editor remains the standard manual connection-setup path. For agents, prefer Credential Requests as the secure authorization handoff; a new scenario is not required solely for provisioning.

Load make-credential-requests when authorized discovery confirms a required compatible connection is missing, or authentication repair is needed and approved. A denied catalog, missing action, or empty list alone does not establish that a new request is needed. Verify availability and credential requirements first; no-auth actions need no credential request.

Credential provisioning and Endpoint execution are separate. Use the companion skill's chosen authorized request interface: the credential owner receives an authorization link and supplies secrets in Make, not to the agent. Verify the resulting managed connection ID against the intended team, account type, provider scopes, and account before resuming the original Endpoints SDK/CLI workflow under its own execution approval. A completed request does not prove beta/runtime access or authorize an app action. Do not build a scenario or substitute scenario/MCP execution for the requested Endpoint call.

Use the exact input contract

Treat the generated definition, current app-version schema, or authoritative custom-app definition as the field contract. Do not infer schemas from an app label, scenario module, or another version. For native app schemas, some environments expose GET /api/v2/imt/apps/<app>/<major>; custom-app authoring/read interfaces are separate and require their own permissions. Recheck the exposed contract rather than assuming every app resolves through one metadata URL.

The execution envelope and business input have different jobs:

Use the types the interface actually accepts. Do not silently coerce identifiers, fill unknown required values, remove meaningful false/0, or put a provider token into the input. Validate required fields even when a README example is shorter. For example, the current Google Docs getDocument contract requires both documentId and filter.

Generic execution is not generic discovery

make-endpoints-cli endpoints execute and SDK execute(pointer, options) can call a known target outside the bundled generated clients, including a custom app. They cannot infer its schema or prove entitlement. Use a verified contract and preserve literal app# names. Prefer dedicated Endpoints over arbitraryCall when available; a generic API-call Endpoint still needs an authoritative provider method/path/body and explicit authorization for the intended operation.

For code-generated agent tools, expose a small allowlist of definitions. Keep credential resolution and execution in the trusted host. Validate model-produced arguments and approved identifiers before dispatch; readOnlyHint or destructiveHint is metadata, not an access-control implementation.

Publish your skill

Copy this prompt into Claude Code, Codex or any agent. It walks you through your first skill in about 20 minutes, with you as the author.

Click to copy.