Tool reference
Every tool the GTM Engine MCP server exposes, with inputs, required permissions, and what each returns.
The GTM Engine MCP server exposes 53 tools. All tool names start with gtm_ so they're easy to spot alongside tools from other servers.
You normally don't call these yourself. Your assistant picks them based on what you ask. This reference is for understanding what the assistant can do, debugging, and writing precise prompts.
How tools behave
- Permission-filtered. Your client only sees tools your GTM Engine role allows. The Requires column lists the permission for each tool. See Permissions and security.
- Annotated. Read tools are marked read-only. Write tools are marked as modifying data, so most clients ask for confirmation before running them.
- Scoped to your organization. Every call runs against the organization you signed in to.
- JSON results. Each tool returns its result as JSON text. Errors come back as a tool error with a short message, for example
Account not found.orInsufficient permissions for MCP tool. - Pagination. List and search tools take
limit(1–100, default 25) andoffset(default 0). List tools return no total count: if a page comes back with fewer thanlimitresults, it's the last page. Search tools return the total underpagination.total. - IDs are UUIDs. Dates are ISO 8601.
Searching records
gtm_search_accounts, gtm_search_contacts, and gtm_search_opportunities share one input shape and filter on any default or custom field.
| Input | Type | Notes |
|---|---|---|
filters | { field, operator, value }[] | Conditions that must all match |
or_filters | { field, operator, value }[][] | Groups of alternatives. A record must match at least one condition in every group. |
query | string | Plain-language description of the records to find. Uses credits on every call. |
search | string | Free-text match on the record's main name fields |
sort | { field, direction } | Defaults to created_at descending |
limit, offset | number | 1–100 (default 25), and 0 by default |
field is a field key. Use gtm_list_fields to find custom field keys. An unknown field is rejected rather than ignored.
| Operator | Meaning | Value |
|---|---|---|
eq, neq | Equals, does not equal | Single value |
gt, gte, lt, lte | Comparisons for numbers and dates | Single value |
ilike, like | Contains (case-insensitive, case-sensitive) | Text |
in, notin, not_in_or_null | Matches any, or none, of a list. not_in_or_null also matches empty values. | Array |
null, not | Field is empty, is not empty | None |
in_last, in_next, not_in_last | Relative date window | Duration: 30d, 2w, 3m, 1q |
Returns { data, pagination: { limit, offset, total } }. When query is used, the result also includes interpretation: an explanation plus the filters and or_filters the query was translated into, so the assistant can reuse them without spending more credits. Assistants can usually build filters themselves, so query is rarely needed over MCP.
Campaigns
| Tool | What it does | Requires |
|---|---|---|
gtm_list_campaigns | List campaigns | Campaigns: read |
gtm_get_campaign | Get one campaign with its steps | Campaigns: read |
gtm_create_campaign | Create a campaign, optionally with its steps | Campaigns: write |
gtm_update_campaign | Update a campaign's settings or status | Campaigns: write |
gtm_enroll_campaign_contacts | Enroll contacts in a campaign | Campaigns: write |
gtm_enroll_campaign_accounts | Enroll the contacts at accounts, optionally finding new contacts and routing between campaigns | Campaigns: write, Pipeline generation: write, Accounts: read all |
gtm_list_campaign_target_personas | List saved contact Target Personas | Campaigns: read |
gtm_list_campaign_enrollments | List who is enrolled in a campaign, with status and progress | Campaigns: read, Contacts: read all |
gtm_send_campaign_step_test | Send one email step as a test | Campaigns: write, Contacts: read all |
gtm_remove_campaign_contacts | Remove contacts or accounts from a campaign | Campaigns: write |
gtm_create_campaign_step | Add a step to a campaign | Campaigns: write |
gtm_update_campaign_step | Edit a campaign step | Campaigns: write |
gtm_delete_campaign_step | Delete a campaign step | Campaigns: write |
gtm_list_campaign_sending_inboxes | List sending inboxes and whether each can send a campaign type | Campaigns: read |
gtm_get_campaign_performance | Get detailed performance for one campaign | Campaigns: read |
gtm_list_campaign_performance | Get summary performance for up to 200 campaigns | Campaigns: read |
gtm_list_campaign_email_templates | List reusable email templates | Campaigns: read |
gtm_get_campaign_email_template | Get one email template with its body | Campaigns: read |
gtm_create_campaign_email_template | Create a reusable email template | Campaigns: write |
gtm_update_campaign_email_template | Edit, activate, or archive an email template | Campaigns: write |
System-managed campaigns (such as one-off sends created inside the app) aren't returned, editable, or reported on through MCP.
gtm_list_campaigns
| Input | Type | Notes |
|---|---|---|
status | draft | active | paused | archived | Optional filter |
limit, offset | number | Pagination |
Returns an array of campaigns with id, name, description, campaign_type, status, sending_provider, send/suppression/enrichment configuration, tracking flags, and timestamps.
gtm_get_campaign
| Input | Type | Notes |
|---|---|---|
id | UUID | Campaign ID |
Returns the campaign plus its steps, linked trigger_campaigns, and created_by_user.
gtm_create_campaign
| Input | Type | Notes |
|---|---|---|
name | string | Required. 1–255 characters |
campaign_type | string | Required. For example cold_outbound, warm_outbound, inbound, newsletter |
status | draft | active | Defaults to draft. active turns the campaign on right away and requires at least one step. |
steps | object[] | Optional, up to 100. Same fields as gtm_create_campaign_step (except parent_connect_step_id), each with a unique step_number |
| Other settings | Same fields as gtm_update_campaign's data (description, sending_provider, provider_config, send_config, and so on) |
A typical flow is: list sending inboxes, create the campaign as a draft with its steps, review it with gtm_get_campaign, set status to active with gtm_update_campaign, then enroll contacts.
The campaign and its steps are saved together: if anything fails, nothing is created. Pinned sending inboxes in provider_config.inbox_ids must be eligible for the campaign type. Unless you set them, include_unsubscribe_link defaults to on for marketing types (newsletter, consideration, lifecycle, pre- and post-event) and auto_remove_on_reply defaults to on. The campaign is attributed to you. Returns the campaign with its steps, like gtm_get_campaign.
gtm_update_campaign
| Input | Type | Notes |
|---|---|---|
id | UUID | Campaign ID |
data.name | string | 1–255 characters |
data.description | string | Up to 2,000 characters |
data.status | draft | active | paused | archived | Use to launch, pause, or archive |
data.campaign_type | string | For example cold_outbound, warm_outbound, inbound |
data.sending_provider | string | For example gtm_native, instantly, salesloft |
data.send_config | object | When emails may go out: timezone (IANA name, default UTC), allowed_days (default Monday–Friday), time_windows of { start, end } in 24-hour HH:MM (default 08:00–18:00) |
data.suppression_config | object | null | Suppression rules |
data.enrichment_config | object | null | Just-in-time enrichment settings |
data.newsletter_config | object | null | Newsletter settings |
data.provider_config | object | Sender settings, merged into the existing config. inbox_ids: sending inbox IDs from gtm_list_campaign_sending_inboxes (omit to use every eligible inbox). delivery_type: "direct_connected" with direct_user_ids: send from those users' connected Gmail or Outlook mailboxes instead. review_all_emails: hold every email for approval in the app. Server-managed keys can't be changed. |
data.include_unsubscribe_link, data.auto_remove_on_reply, data.track_opens, data.track_clicks | boolean | Toggles |
Only the fields you include are changed. Returns the updated campaign. An update that pins sending inboxes which are missing or not eligible for the campaign type is rejected.
gtm_enroll_campaign_contacts
| Input | Type | Notes |
|---|---|---|
id | UUID | Campaign ID |
data.contactIds | UUID[] | 1–500 contact IDs |
data.allowReEnrollment | boolean | Re-enroll contacts who were previously in this campaign |
data.excludeActiveInOtherCampaigns | boolean | Skip contacts currently active in another campaign |
data.startAt | ISO datetime | Schedule when the enrollment starts |
Returns { message, enrolled, skipped, startAt }. skipped lists each contact that wasn't enrolled with a reason, so the assistant can tell you why.
gtm_enroll_campaign_accounts
| Input | Type | Notes |
|---|---|---|
id | UUID | Campaign ID. The campaign must be active. |
data.accountIds | UUID[] | 1–200 account IDs |
data.includeExistingContacts | boolean | Enroll the contacts already linked to each account. Defaults to true. |
data.personaIds | UUID[] | Up to 20 Target Persona IDs from gtm_list_campaign_target_personas. New contacts matching them are found at each account, imported, and enrolled. Spends credits. Outreach-builder campaigns only. |
data.maxContactsPerAccount | integer | 1–50, default 5. Outreach-builder campaigns only. |
data.excludeActiveInOtherCampaigns | boolean | Skip contacts currently active in another campaign |
data.allowReEnrollment | boolean | For campaigns created through the API or MCP: re-enroll contacts who already finished the campaign |
data.routing | object | Turns on campaign routing: each contact goes to the best-fitting campaign, with this campaign as the fallback. candidateCampaignIds (up to 50) limits the candidates; omit it to consider every live Outreach-builder campaign. Outreach-builder campaigns only. |
What happens depends on how the campaign was made:
- Campaigns built in the Outreach builder run the same background job the app uses when you enroll accounts, one per account. Only non-customer accounts whose sales status is lead or working are eligible. The call returns straight away with
mode: "background_job", abatchId, andaccountsQueued; contacts are enrolled as the jobs finish, and progress shows in the app. - Campaigns created through the API or MCP enroll each account's existing contacts immediately and return
mode: "direct"withenrolledandskipped.personaIds,maxContactsPerAccount, androutingare rejected for these campaigns, and at most 500 contacts can be enrolled per call.
Either way, ineligibleAccounts lists every account that was skipped with a reason (not_found, customer, or sales_status_not_lead_or_working).
gtm_list_campaign_target_personas
No inputs. Returns the organization's contact Target Personas (saved contact filters such as job titles and seniority) as { id, name, description, products }. Use the IDs as personaIds in gtm_enroll_campaign_accounts. Personas are created and edited in the app.
gtm_list_campaign_enrollments
| Input | Type | Notes |
|---|---|---|
id | UUID | Campaign ID |
status | string | Only enrollments in this status, e.g. scheduled, enrolled, active, paused, completed, bounced, unsubscribed, failed |
contactIds | UUID[] | Up to 100 contacts to check on |
limit | integer | 1–200, default 50 |
offset | integer | Default 0 |
Returns the campaign's roster, newest first. Each entry has status, currentStepNumber (the last step reached), nextSendAt, enrolledAt, scheduledAt, updatedAt, and the contact's name and email. pausedReason says why sending is on hold or was skipped, for example missing_email, invalid_email, out_of_office, or campaign_paused. Use it after enrolling to confirm contacts are in, or with contactIds to find out why someone hasn't received an email. Contacts enrolled through an account enrollment job appear as their job finishes.
gtm_send_campaign_step_test
| Input | Type | Notes |
|---|---|---|
id | UUID | Campaign ID |
stepId | UUID | Step ID from gtm_get_campaign. Must be an email step. |
data.contactId | UUID | Contact whose data fills the template. They don't receive the email. |
data.recipientEmail | string | Where to deliver the test. Defaults to your own email address; otherwise it must be an active user in your organization. |
Renders the step exactly as a real send would (template variables, AI-written content, tracking and unsubscribe settings) and delivers it to you instead of the contact. It works on draft campaigns, so you can check an email in a real inbox before turning the campaign on. Nothing is recorded against the contact. The test goes out from one of the campaign's sending inboxes and counts toward that inbox's daily limit. A step that replies in the previous email's thread is sent with a simulated "Re:" subject, and the result says so. Returns { status, recipientEmail, mailboxId, replyContextSimulated, warning }.
gtm_remove_campaign_contacts
| Input | Type | Notes |
|---|---|---|
id | UUID | Campaign ID |
data.contactIds | UUID[] | Up to 500 contacts to remove |
data.accountIds | UUID[] | Up to 200 accounts. Every contact linked to these accounts is removed. |
Provide contactIds, accountIds, or both. Removal works like Stop on the campaign's roster: a contact whose enrollment hasn't started yet is cancelled, and an active contact is ended with their remaining steps skipped. Contacts who aren't active in the campaign are ignored, so the call is safe to repeat. It works on paused campaigns, but not on scheduled (newsletter) campaigns. Returns { removed, contactIds } listing the contacts actually removed. A removed contact can be enrolled again with allowReEnrollment.
gtm_create_campaign_step
| Input | Type | Notes |
|---|---|---|
id | UUID | Campaign ID |
data.step_number | number | Required. Position in the sequence, starting at 1. Must be unique in the campaign. |
data.step_type | message | enroll_campaign | create_task | Defaults to message |
data.channel | email | linkedin_dm | linkedin_inmail | sms | Defaults to email |
data.content_type | liquid_template | ai_generated | html | hybrid | template_library | Defaults to liquid_template |
data.subject_template, data.content | string | null | Subject and body. Both support Liquid variables such as {{ contact.first_name }}, {{ contact.company }}, {{ contact.custom.<field_key> }}, {{ account.name }}, {{ user.name }}, and {{ system.unsubscribe_url }}. |
data.ai_prompt | string | null | Instructions for writing the body when content_type is ai_generated (content is ignored) |
data.hybrid_config | object | null | Sections for hybrid content. For template_library: { templateIds, tags, tagMatchMode, fallbackTemplateId, selectorInstructions } with at least one of templateIds or tags (see gtm_list_campaign_email_templates) |
data.body_format | html | plain_text | Email body format |
data.email_thread_mode | new_thread | reply_to_previous | Whether the email replies in the previous step's thread |
data.delay_minutes | number | Minutes to wait after the previous step (for step 1, after enrollment) before this step is scheduled. Defaults to 0. The send then waits for the next allowed send window. |
data.target_campaign_id | UUID | null | Campaign to enroll into, for enroll_campaign steps |
data.parent_connect_step_id | UUID | null | The LinkedIn connection step in this campaign that this step follows |
data.task_assignee | record_owner | mailbox_owner | Who gets the task, for create_task steps |
Returns the created step. Attachments can't be added through MCP yet.
Campaigns built from a workflow (in Outreach) get their steps from the workflow, which overwrites them on every publish. Step tools reject those campaigns: edit the workflow instead. On a live campaign, the same rules apply as editing in the app: content changes are used by every send that hasn't gone out yet, but contacts already enrolled keep the steps and timing they were scheduled with when they enrolled. New steps and delay changes apply to contacts enrolled afterwards.
gtm_update_campaign_step
| Input | Type | Notes |
|---|---|---|
id | UUID | Campaign ID |
stepId | UUID | Step ID (from gtm_get_campaign) |
data | object | Any gtm_create_campaign_step fields to change |
Only the fields you include are changed. Returns the updated step.
gtm_delete_campaign_step
| Input | Type | Notes |
|---|---|---|
id | UUID | Campaign ID |
stepId | UUID | Step ID |
Deletes the step, any LinkedIn steps that depend on it, and the step's send history. This can't be undone. Returns { id, deleted: true }.
gtm_list_campaign_sending_inboxes
| Input | Type | Notes |
|---|---|---|
campaign_type | string | Optional. Campaign type to check eligibility for. Marketing-domain inboxes are only eligible for newsletter. |
Returns the organization's sending inboxes with id, email_address, display_name, status, daily_send_limit, user_id, domain, domain_purpose, eligible, and ineligible_reason (for example "Warming" or "Domain DNS failing"). Put the id of eligible inboxes in a campaign's provider_config.inbox_ids. Inboxes are set up in Campaign Engine → Sending; they can't be created through MCP.
gtm_get_campaign_performance
| Input | Type | Notes |
|---|---|---|
id | UUID | Campaign ID |
startDate | date or ISO datetime | Optional. Only limits the daily series. |
Returns the same numbers as the campaign's analytics page:
enrollmentsandremoved: totals by status and by removal reason (reply, bounce, unsubscribe).enrollmentLifecycle: completed, in-flight, scheduled, awaiting-review, and invalid-email counts for contacts and accounts.sends: totals by send status.engagement: sent, delivered, opened, clicked, replied, bounced, and unsubscribed counts, unique-contact counts,ratesanduniqueRates(percent of sends), and reply classifications (positive, negative, out of office).daily,steps, andtopLinks: activity by day, by step, and the most-clicked links.
gtm_list_campaign_performance
| Input | Type | Notes |
|---|---|---|
ids | UUID[] | 1–200 campaign IDs |
Returns an object keyed by campaign ID with sent, uniqueOpened, uniqueReplied, uniqueBounced, and positiveReplies. Campaigns with no sends yet, and IDs that aren't campaigns in your organization, are left out.
gtm_list_campaign_email_templates
| Input | Type | Notes |
|---|---|---|
q | string | Optional. Search text matched against title, description, subject, body, and tags |
status | draft | active | archived | all | Optional. Draft and active templates are returned when omitted |
tags | string[] | Optional. Up to 24 tags to filter by |
tag_match_mode | any | all | With tags: match any tag (default) or every tag |
folder_path | string | Optional. Only templates in this folder or its subfolders |
limit, offset | number | Pagination. limit defaults to 50, at most 200 |
Returns the reusable templates in the Email templates library, most recently updated first. Each entry has id, title, description, subject_template, body_format, status, tags, folder_path, and timestamps. Bodies are left out to keep the list small; read one with gtm_get_campaign_email_template.
gtm_get_campaign_email_template
| Input | Type | Notes |
|---|---|---|
id | UUID | Template ID |
Returns the template, including its body.
gtm_create_campaign_email_template
| Input | Type | Notes |
|---|---|---|
title | string | Required. Up to 200 characters |
description | string | null | What the template is for. Template library steps read it when picking a template for a contact. |
subject_template | string | Email subject. Supports Liquid variables and spintax. |
body | string | Email body: email-safe HTML or raw text, depending on body_format. Supports Liquid variables and spintax. |
body_format | html | plain_text | Defaults to html |
status | draft | active | archived | Defaults to draft |
tags | string[] | Up to 24 tags |
folder_path | string | null | Folder in the library, for example Outbound/Follow-ups |
Returns the created template. Only active templates are picked by campaign steps, so set status to active when the template should be used. To send it, add a campaign step with content_type: "template_library" and hybrid_config: { templateIds: [id] } (or tags). The template is attributed to you.
gtm_update_campaign_email_template
| Input | Type | Notes |
|---|---|---|
id | UUID | Template ID |
data | object | Any of the gtm_create_campaign_email_template fields |
Only the fields you include are changed; tags replaces the whole tag list. Set data.status to archived to retire a template. Returns the updated template. Campaigns that use the template pick up the change on their next send.
Accounts
| Tool | What it does | Requires |
|---|---|---|
gtm_list_accounts | List accounts | Accounts: read all |
gtm_search_accounts | Search accounts by any default or custom field | Accounts: read all |
gtm_get_account | Get one account | Accounts: read all |
gtm_create_account | Create an account | Accounts: write all |
gtm_update_account | Update an account | Accounts: write all |
gtm_upsert_account | Create or update an account matched by domain | Accounts: write all |
List filters: domain, tags (comma-separated; matches accounts with any of the tags), limit, offset. For anything else, use gtm_search_accounts. See Searching records.
Account fields (create, update, upsert):
| Field | Type | Notes |
|---|---|---|
account_name | string | Required on create and upsert |
domain | string | Required on upsert, where it's the match key |
linkedin_url, address, city, state, country | string | |
relationship_type | prospect | customer | partner | investor | |
sales_status | lead | not_qualified | working | pipeline | renewal_growth | closed_lost | churned | |
icp_label | string | |
tags | string[] | |
custom_fields | object | See Custom field values |
gtm_update_account takes { id, data }, where data holds only the fields to change. gtm_upsert_account returns { data, created }, where created is true if a new account was made.
Contacts
| Tool | What it does | Requires |
|---|---|---|
gtm_list_contacts | List contacts | Contacts: read all |
gtm_search_contacts | Search contacts by any default or custom field | Contacts: read all |
gtm_get_contact | Get one contact | Contacts: read all |
gtm_create_contact | Create a contact | Contacts: write all |
gtm_update_contact | Update a contact | Contacts: write all |
gtm_upsert_contact | Create or update a contact matched by email | Contacts: write all |
List filters: email, tags (comma-separated), limit, offset. For anything else, use gtm_search_contacts. See Searching records.
Contact fields (create, update, upsert):
| Field | Type | Notes |
|---|---|---|
first_name, last_name | string | Required on create and upsert |
email | string | Required on upsert, where it's the match key. Stored lowercase. |
middle_name, title, phone, company, linkedin_url, location, city, state, country, icp_label | string | |
tags | string[] | |
account_ids | UUID[] | Accounts to associate. New associations are added; existing ones are kept. |
custom_fields | object | See Custom field values |
gtm_update_contact takes { id, data }. gtm_upsert_contact returns { data, created }.
Opportunities
| Tool | What it does | Requires |
|---|---|---|
gtm_list_opportunities | List opportunities | Opportunities: read all |
gtm_search_opportunities | Search opportunities by any default or custom field | Opportunities: read all |
gtm_get_opportunity | Get one opportunity | Opportunities: read all |
gtm_create_opportunity | Create an opportunity | Opportunities: write all |
gtm_update_opportunity | Update an opportunity | Opportunities: write all |
List filters: account_id, limit, offset. For anything else, use gtm_search_opportunities. See Searching records.
Opportunity fields:
| Field | Type | Notes |
|---|---|---|
opportunity_name | string | Required on create |
account_id | UUID | Required on create |
amount | number | |
close_date | string | Date (2026-12-31) or full ISO datetime |
stage_id | UUID | Defaults to the first stage of your default pipeline on create. Use gtm_list_stages to find IDs. |
pipeline | string | Pipeline name |
tags | string[] | |
custom_fields | object | See Custom field values |
gtm_update_opportunity takes { id, data }.
Pipelines and stages
| Tool | What it does | Requires |
|---|---|---|
gtm_list_pipelines | List pipelines | Opportunities: read all |
gtm_get_pipeline | Get one pipeline | Opportunities: read all |
gtm_list_stages | List stages | Opportunities: read all |
gtm_get_stage | Get one stage | Opportunities: read all |
Pipeline filters: active, limit, offset. Stage filters: pipeline_id, active, limit, offset.
Assistants typically call these to turn a stage name like "Discovery" into the stage_id needed to create or move an opportunity.
Users
| Tool | What it does | Requires |
|---|---|---|
gtm_list_users | List users in your organization | Users: manage |
gtm_get_user | Get one user | Users: manage |
List filters: email, limit, offset. Useful for resolving an owner by name or email before logging an activity.
Fields
| Tool | What it does | Requires |
|---|---|---|
gtm_list_fields | List field definitions | Fields: manage |
gtm_upsert_field | Create or update a custom field definition | Fields: manage |
gtm_list_fields
| Input | Type | Notes |
|---|---|---|
record_type | accounts | contacts | opportunities | Optional filter |
custom_only | "true" | "false" | Only return custom fields |
Returns each field's key, display_name, description, data_type, enum_values, and is_custom. Assistants call this to learn which custom_fields keys exist before writing records.
gtm_upsert_field
| Input | Type | Notes |
|---|---|---|
record_type | accounts | contacts | opportunities | Required |
key | string | Required. Lowercase letters, digits, and underscores, starting with a letter, up to 63 characters. This is the key used in custom_fields. |
display_name | string | Required |
description | string | |
data_type | text | numeric | boolean | date | timestamp with time zone | enum | multi-select | Required |
enum_values | string[] | Options for enum and multi-select. On update, new options are merged in; existing options are never removed. |
If a field with the same record_type and key exists, it's updated. Otherwise it's created.
Activities
Activities are everything on a record's timeline: meetings and recorded calls, emails, notes, form submissions, and more.
| Tool | What it does | Requires |
|---|---|---|
gtm_list_activities | List activities, newest first, with filters | Activities: read all |
gtm_get_activity | Get one activity by ID, with full content and call details | Activities: read all |
gtm_get_activity_transcript | Read the transcript text of a recorded meeting or call | Activities: read all |
gtm_create_activity | Log a custom activity on contacts and/or opportunities | Activities: write all |
gtm_list_activities
| Input | Type | Notes |
|---|---|---|
account_id | UUID | Activities linked to the account through its contacts or its opportunities |
contact_id | UUID | Activities associated with the contact |
opportunity_id | UUID | Activities associated with the opportunity |
owner_id | UUID | Activities owned by the user |
interaction_type | string | One type, such as meeting, phone_call, email, or note |
has_transcript | boolean | true for activities with a call transcript, false for those without |
after, before | ISO datetime | Date range on the activity's date |
limit, offset | number | Page size (default 25, max 100) and offset |
Each activity includes its content, type, date, owner, tags, and the IDs of its contacts and opportunities. In list results, content longer than 1,000 characters is shortened and flagged with content_truncated; gtm_get_activity returns it in full.
Activities that have a call transcript also include a meeting object with the transcript_id, title, call_type, participants, topics, and the AI-generated summary. Other activities have meeting: null.
gtm_get_activity
Takes the activity id. This is the same ID that appears in an activity link from the app, so you can paste a link like app.gtmengine.ai/records/activities/<id> and ask about it.
Returns the activity with its full content. For calls with a transcript, meeting additionally includes call_url, objections, call_score, and call_score_reasoning.
gtm_get_activity_transcript
| Input | Type | Notes |
|---|---|---|
id | UUID | Required. The activity ID. |
offset | number | Character position to start from. Defaults to 0. |
limit | number | Maximum characters to return. Defaults to the maximum, 50,000. |
Returns the transcript text along with title, date_time, participants, total_length, and next_offset. Long calls come back in parts: when next_offset isn't null, the assistant calls the tool again with it as offset to read the rest. Returns a not-found error if the activity has no transcript.
Restricted calls
These tools respect your organization's call visibility settings. A call you aren't allowed to view in the app comes back with restricted: true, its content replaced by "Restricted call", and no linked records or meeting details. Its transcript can't be read.
Restricted calls are also left out of any gtm_list_activities result that filters by account_id, contact_id, opportunity_id, or has_transcript, so those filters can't be used to work out which records a restricted call is linked to or whether it was recorded.
gtm_create_activity
| Input | Type | Notes |
|---|---|---|
content | string | Required. The activity body, such as a call note. |
interaction_type | string | Defaults to custom. Examples: note, phone_call, email, meeting, linkedin_message, event_attendance, demo_request. |
contact_ids | UUID[] | Contacts to attach the activity to |
opportunity_ids | UUID[] | Opportunities to attach the activity to |
direction | inbound | outbound | |
date_time | ISO datetime | Defaults to now |
owner_id | UUID | User who owns the activity |
source | string | Custom source label, such as claude |
tags | string[] | |
process | boolean | Set to true to have GTM Engine re-process each attached contact and opportunity so their fields reflect the new activity. Needs at least one contact or opportunity, and at most 25 in total. |
external_id | string | Idempotency key, up to 255 characters. If an activity with this ID already exists, it's returned instead of creating a duplicate, and any new associations are added. |
Use this to bring in conversations GTM Engine didn't capture itself, such as a text message thread or notes from a call that wasn't recorded: put the text in content, pick the matching interaction_type (for example text_message or phone_call), and set process to true. The result then includes a processing object listing each record that was queued. Processing is skipped when a repeated external_id returns an existing activity.
Activities show up on the record's activity timeline in GTM Engine.
Files
Files live in the Content Library and can be attached to accounts and opportunities, where they appear alongside files uploaded in the app.
| Tool | What it does | Requires |
|---|---|---|
gtm_list_files | List or search files, optionally only those attached to a record | Content library: read |
gtm_get_file | Read one file: summary, attached records, download link, and extracted text | Content library: read |
gtm_upload_file | Upload a file, optionally attaching it to a record | Content engine: write |
gtm_attach_file | Attach an existing file to a record | Content engine: write |
Whenever a call names a record, it also requires Accounts: read all or Opportunities: read all for that record's type.
gtm_list_files
| Input | Type | Notes |
|---|---|---|
record_type, record_id | accounts | opportunities, UUID | Return the files attached to this record. Provide both or neither. Without a record, only the shared Content Library is searched. |
search | string | Matches title, description, tags, filename, and extracted text |
limit | number | 1–100, default 25. There is no offset; narrow with search instead. |
List results leave out extracted text. Use gtm_get_file to read a file.
gtm_get_file
| Input | Type | Notes |
|---|---|---|
id | UUID | File ID |
Returns the file's title, summary, tags, the records it's attached to, and for each stored file a signed download_url, extracted_text_status, and extracted_text (the first 20,000 characters). Text is extracted from Word, PowerPoint, Excel, and text-based files. For other formats, such as PDFs and images, extracted_text_status is unavailable and the assistant has the summary and download link to work with.
gtm_upload_file
| Input | Type | Notes |
|---|---|---|
filename | string | Required. Include the extension, which sets the file type. |
content | string | File content as plain text. Use for Markdown, plain text, CSV, HTML, and JSON. |
content_base64 | string | File content as base64. Use for PDF, DOCX, PPTX, XLSX, and images. Provide exactly one of content and content_base64. |
mime_type | string | Defaults to a type inferred from the filename |
title | string | Defaults to an AI-generated title, or the filename without its extension |
tags | string[] | Up to 24 |
record_type, record_id | accounts | opportunities, UUID | Attach the file to this record. Provide both or neither. Without a record, the file is added to the shared Content Library. |
The file is summarized and tagged on upload, the same as files uploaded in the app. Files can be up to 3 MB. Upload larger files in the app.
gtm_attach_file
| Input | Type | Notes |
|---|---|---|
id | UUID | File ID, from gtm_list_files or gtm_upload_file |
record_type, record_id | accounts | opportunities, UUID | Record to attach the file to |
A file can be attached to several records. Attaching it to the same record twice has no effect.
Custom field values
Records accept a custom_fields object keyed by field key:
{
"custom_fields": {
"contact_type": "User",
"onboarding_checklist": ["Invite Accepted", "First Login"],
"nps_score": null
}
}- Multi-select fields take an array of options. A single string is treated as a one-option array.
- Pass
nullto clear a value. - Unknown keys are rejected. Call
gtm_list_fieldsto see valid keys, orgtm_upsert_fieldto create one first.
The same tools and schemas back the REST API. For the exact response schemas, see the API reference for the matching endpoint.