Skip to main content
PG:AI exposes 22 tools through MCP. Your AI client selects tools automatically - you normally interact in natural language. This page documents names, behaviour, and parameters for builders and power users.
Tool names are plain snake_case (company, templates) - there is no pgai_ prefix.

Async operations

Several tools start background jobs and return an operation_id: Poll every ~2 seconds while status is queued or running. Status values: queued, running, completed, failed, cancelled.

Content generation (4-step flow)

Use this flow for documents, emails, call scripts, analysis, and sequences.
Do not use canvas_list or sequence_list for step 1 - those list already generated content, not recipes.

templates

List generation recipes (workspace + PG:AI templates).

template_generate

Start async generation from a template. * One of company, company_name, or company_id is required.

canvas_get

Read one finished canvas (document, email, call script, analysis).

sequence_get

Read one finished sequence (metadata + steps).

canvas_list

Browse already generated canvases.

sequence_list

Browse already generated sequences.

canvas_update

Update an existing canvas (title, body, sections, tags). At least one field besides canvas_id is required.

Company research

company

Rich company profile for one tracked company. Include sections: overview, key_executives, divisions, geographical_operations, swot_analysis, competitors, industry_insights, strategic_priorities, digital_strategies, risks, goals, insights_scores, events, value_pyramid, three_whys, discovery_questions, how_they_make_money, how_they_lose_money, custom_insights, employee_groups, favourite_technologies_count, territory_custom_scores, content, canvas, or full for everything. Semantic search across PG:AI vector indexes (not keyword grep). Sources: public_docs, web_pages, organisation_company_docs, organisation_docs, pgai_insights, contacts, technologies, conversations, company_content, company_jobs. Search job postings across tracked companies.

Accounts

accounts

List companies already in your workspace. Discover companies globally (workspace + external directory). Returns is_in_org_accounts and is_in_user_accounts flags.

companies_add

Add companies to the workspace (max 5 per call). Async and credit-gated - poll get_operation_status. HTTP 402 means credits exhausted.

Contacts

Search contacts in your tracked workspace.

contact

Full contact record by UUID. Use contact_search first to find IDs.

create_contact

Save a contact to a tracked company. Use companies_add first if the company is not tracked.

contact_find_email_phone

Enrich email and/or phone for an existing contact. Async and credit-gated.

Operations

get_operation_status

Poll any async job by operation_id.

Agent (advanced)

These tools talk to the full PG:AI agent (chat, plan, sessions). They are optional - most sellers use template_generate for content instead.

agent_message_send

Send a message to the agent queue. Returns operation_id.

agent_sessions_create

Create a session (chat, plan, document, email, workspace, project, canvas_settings).

agent_sessions_list

List sessions with optional company filter.

agent_sessions_get

Fetch one session (metadata + transcript) by session_id.

Permissions

API keys are issued with appropriate scopes in Settings. OAuth users receive scopes from their PG:AI account.

Not available via MCP (yet)

The following exist in the PG:AI app but are not exposed as MCP tools today:
  • Monitoring agents and alert configuration
  • Territory admin and scoring configuration
If you need REST access to these areas, use the PG:AI API.