Connectors (APIs and MCP)
When an app has an API, call it directly instead of clicking through screens.
What it is
Structured integrations (REST, OAuth, MCP servers) for services such as mail, chat and CRM. The agent calls a tool such as crm.find_vendor(name) and gets JSON back.
When to use it
- The service has an API or an MCP server
- Volume is high and every click is a chance to fail
When to skip it
- Legacy apps with no API
- Actions that only exist in the UI
Why (the trade-off)
An API call is faster, cheaper and far more reliable than reading a screen and clicking.
Where it sits
Action layer. It skips perception entirely for that service.
What it needs first
- Agent loopthe loop decides when to call a tool
- Credential vaultOAuth tokens and API keys must not live in the prompt
What can be added to it
- builds on itEvent triggersEvent triggers needs it: events come from connected apps
- builds on itScoped, time-boxed grantsScoped, time-boxed grants needs it: grants are what connectors are allowed to do
- pairs withAction policyAPI writes are side effects too
Instead of it
- Mouse and keyboard actionsworks where there's no API
Effect of adding it
- cost —
- latency —
- reliability ↑↑
- safety ↑
Risks it handles
- Clicking the wrong element · partial
- Login expired midway · partial
Learn first (AI Engineering)
Free and open-source implementations
- MCP SDKsMIT
Sources
depth 4+2 production notes with numbers.