Permissions and security
How MCP sign-in works, which GTM Engine permissions each tool requires, and the server's limits.
Sign-in
The MCP server uses standard OAuth 2.1 sign-in, following the MCP authorization spec:
- Your client calls the server, which replies that sign-in is required and points to its metadata at
https://api.gtmengine.ai/.well-known/oauth-protected-resource/v1/mcp. - The client opens the GTM Engine sign-in page in your browser. You sign in the same way you do for the GTM Engine app.
- You choose the organization and approve access.
- The client receives an access token that only works for the GTM Engine MCP server, and sends it with each request.
The client never sees your password. Tokens are issued for the MCP server specifically. They don't work against the REST API, and GTM Engine API keys don't work against the MCP server.
The assistant acts as you
Every tool call runs as the signed-in user, in the organization chosen at sign-in:
- Role-based access. Tools are filtered by your GTM Engine role and permissions. Tools you can't use aren't listed, and calls to them are rejected.
- Changes are checked live. Permissions are evaluated on every request. If an admin changes your role, the change applies to your next tool call without reconnecting.
- Deactivated users are blocked. If your GTM Engine user is deactivated or removed from the organization, MCP access stops immediately.
- Organization isolation. Tools only read and write data in the signed-in organization.
Permissions by tool
Permissions come from the role assigned to you under Settings → Team → Members. Ask a GTM Engine admin if you're missing tools you need.
| Permission | Tools |
|---|---|
| Campaigns: read | gtm_list_campaigns, gtm_get_campaign, gtm_list_campaign_sending_inboxes, gtm_list_campaign_target_personas, gtm_get_campaign_performance, gtm_list_campaign_performance, gtm_list_campaign_email_templates, gtm_get_campaign_email_template |
| Campaigns: write | gtm_create_campaign, gtm_update_campaign, gtm_enroll_campaign_contacts, gtm_remove_campaign_contacts, gtm_create_campaign_step, gtm_update_campaign_step, gtm_delete_campaign_step, gtm_create_campaign_email_template, gtm_update_campaign_email_template |
| Campaigns: write, Pipeline generation: write and Accounts: read all (all three) | gtm_enroll_campaign_accounts |
| Campaigns: read and Contacts: read all (both) | gtm_list_campaign_enrollments |
| Campaigns: write and Contacts: read all (both) | gtm_send_campaign_step_test |
| Accounts: read all | gtm_list_accounts, gtm_search_accounts, gtm_get_account |
| Accounts: write all | gtm_create_account, gtm_update_account, gtm_upsert_account |
| Contacts: read all | gtm_list_contacts, gtm_search_contacts, gtm_get_contact |
| Contacts: write all | gtm_create_contact, gtm_update_contact, gtm_upsert_contact |
| Opportunities: read all | gtm_list_opportunities, gtm_search_opportunities, gtm_get_opportunity, gtm_list_pipelines, gtm_get_pipeline, gtm_list_stages, gtm_get_stage |
| Opportunities: write all | gtm_create_opportunity, gtm_update_opportunity |
| Users: manage | gtm_list_users, gtm_get_user |
| Fields: manage | gtm_list_fields, gtm_upsert_field |
| Activities: read all | gtm_list_activities, gtm_get_activity, gtm_get_activity_transcript |
| Activities: write all | gtm_create_activity |
| Content library: read | gtm_list_files, gtm_get_file |
| Content engine: write | gtm_upload_file, gtm_attach_file |
File tools that name a record also require Accounts: read all or Opportunities: read all for that record's type. The same permission decides what you see of files that are already attached: a file uploaded to an opportunity or account can only be read or re-attached if you can read a record it is attached to, and the list of records on a file leaves out record types you can't read.
Record tools require the organization-wide ("all") level of the permission, because they can read and write any record in the organization rather than only records you own.
Call recordings and transcripts
Activity tools follow your organization's call visibility settings, the same as the app. If a call is limited to its participants or their managers and you aren't one of them, the assistant sees that the call exists but not what was said: its content, linked records, summary, and transcript are withheld, and the activity is marked restricted.
Keeping writes safe
- Write tools are annotated as modifying data. Clients like Claude and ChatGPT use this to ask for approval before running them. Leave approvals on for write tools unless you've reviewed the workflow.
- Use a narrower role for experimentation. If you want an assistant that can only look things up, connect with a user whose role has read permissions only. Write tools won't appear.
- CRM sync. Records created or updated through MCP follow the same CRM sync rules as the app and REST API.
- Prompt injection. Content the assistant reads from other tools, web pages, or documents can contain instructions. Be careful when giving an assistant both untrusted content and write access to GTM Engine in the same session.
Limits
| Limit | Value |
|---|---|
| Page size for list and search tools | 1–100 results (default 25) |
| Contacts per campaign enrollment call | 500 |
| Steps per campaign create call | 100 |
| Campaigns per performance summary call | 200 |
| Request body size | 4.5 MB |
| File upload size | 3 MB per file |
| Requests in one JSON-RPC batch | 50 |
| Rate limiting | Applied per organization, shared across all MCP users in it. A limited request returns HTTP 429. Wait and retry. |
Revoking access
- For yourself: disconnect or remove the GTM Engine server in your MCP client. This deletes the client's saved token.
- For someone else: an admin can deactivate the user or remove the relevant permissions from their role in GTM Engine. Both take effect on the next request.