Skip to contentleitvik

Documentation

Tools

The connector exposes 39 tools: 16 read tools and 23 write tools. A tool appears only when the credential has every scope it needs; write tools also need writing enabled on the service.

How to read this page

  • readOnlyHint is true for tools that never change data.
  • destructiveHint is true when a write can overwrite or change existing data. No tool deletes records: archiving hides a task or opportunity and keeps it for audit and export.
  • idempotentHint is true when repeating the same call (same requestId where there is one) does not write twice.

Read

Inspect workspace and permissions

leitvik_context
Read

Returns the workspace name, plan, timezone and the scopes of the connection. Use it first to confirm the assistant is in the right workspace.

Scopes
Any scope
Annotations
readOnlyHint: truedestructiveHint: falseidempotentHint: true
Example prompt
Which Leitvik workspace are you connected to, and what can you do there?

List or search companies

leitvik_companies_list
Read

Lists companies with pagination; can search by name or domain.

Scopes
companies:read
Annotations
readOnlyHint: truedestructiveHint: falseidempotentHint: true
Example prompt
Find the company with the domain bruma.example.

Read a company

leitvik_company_get
Read

Reads one company by its id. Private captured emails and provider credentials are not included.

Scopes
companies:read
Annotations
readOnlyHint: truedestructiveHint: falseidempotentHint: true
Example prompt
Show me the record for Nubelar Labs.

List the pipeline

leitvik_leads_list
Read

Reads leads with their state and next step; can filter by state and search by company or contact.

Scopes
leads:read
Annotations
readOnlyHint: truedestructiveHint: falseidempotentHint: true
Example prompt
Which leads are in proposal right now?

Read a lead

leitvik_lead_get
Read

Reads one lead with its state, next step, owner, tags and notes. The first contact is included only with read access to contacts.

Scopes
leads:read
Annotations
readOnlyHint: truedestructiveHint: falseidempotentHint: true
Example prompt
What notes do we have on the Bruma lead?

List a company's contacts

leitvik_contacts_list
Read

Reads the contacts of one company. Contact details are personal data.

Scopes
contacts:read
Annotations
readOnlyHint: truedestructiveHint: falseidempotentHint: true
Example prompt
Who do we know at Bruma?

Read recorded conversations

leitvik_touches_list
Read

Reads the conversations recorded for a company. A record is history, not proof that a message was delivered.

Scopes
touches:read
Annotations
readOnlyHint: truedestructiveHint: falseidempotentHint: true
Example prompt
When did we last talk to Bruma, and what about?

Read company signals

leitvik_signals_list
Read

Reads buying signals with their source and quote.

Scopes
signals:read
Annotations
readOnlyHint: truedestructiveHint: falseidempotentHint: true
Example prompt
Are there recent signals for Nubelar Labs?

Read research dossiers

leitvik_dossiers_list
Read

Reads the research dossiers stored for a company.

Scopes
dossiers:read
Annotations
readOnlyHint: truedestructiveHint: falseidempotentHint: true
Example prompt
Summarize the dossier we have on Bruma.

Read today's agenda

leitvik_today
Read

Returns what is due today, most urgent first: waiting replies, overdue and due next steps, open tasks, the next 7 days, bounces, stale signals and open leads with no next step.

Scopes
leads:read
Annotations
readOnlyHint: truedestructiveHint: falseidempotentHint: true
Example prompt
What do I have to do today in Leitvik?

List tasks

leitvik_tasks_list
Read

Lists tasks by due date, with filters for status, due date, owner and company. Each task carries the version needed to change it.

Scopes
tasks:read
Annotations
readOnlyHint: truedestructiveHint: falseidempotentHint: true
Example prompt
Which tasks are overdue?

Read a task

leitvik_task_get
Read

Reads one task with its status, due date, owner and the version needed to change it.

Scopes
tasks:read
Annotations
readOnlyHint: truedestructiveHint: falseidempotentHint: true
Example prompt
Show me the details of the Bruma proposal task.

Read a relationship brief

leitvik_relationship_brief
Read

Summarizes one company from stored evidence: next step, notes, last conversation and signals. Needs read access to companies, leads, conversations and signals.

Scopes
companies:readleads:readtouches:readsignals:read
Annotations
readOnlyHint: truedestructiveHint: falseidempotentHint: true
Example prompt
Brief me on Bruma before my call.

List audit activities

leitvik_activities_list
Read

Reads paginated workspace audit events with optional entity, actor and date filters.

Scopes
activities:read
Annotations
readOnlyHint: truedestructiveHint: falseidempotentHint: true
Example prompt
Show the last twenty changes to this lead.

List outbound review queue

leitvik_list_review_queue
Read

Lists outreach drafts awaiting independent review with body and gate evaluation. Author agent is omitted.

Scopes
outbound:read
Annotations
readOnlyHint: truedestructiveHint: falseidempotentHint: true
Example prompt
What outbound drafts need a reviewer pass?

Read outbound send status

leitvik_get_send_status
Read

Returns kill switch state, deliverability breaker evaluation and rates per sending domain.

Scopes
outbound:breaker_read
Annotations
readOnlyHint: truedestructiveHint: falseidempotentHint: true
Example prompt
Is outbound paused for deliverability?

Write: CRM records

Add a new company and its lead

leitvik_company_create
Write

Adds a company that is not in the CRM yet, with its lead. Never changes an existing company: a domain already in the workspace is a conflict that returns the existing company. Does no research or outreach.

Scopes
companies:create
Annotations
readOnlyHint: falsedestructiveHint: falseidempotentHint: true
Example prompt
Add Taller Alba, taller-alba.example, as a new lead if it is not in the CRM yet.

Save company and lead details

leitvik_company_upsert
Write

Creates or updates a company by domain and its lead. Fields you send can overwrite existing ones. Does no research or outreach.

Scopes
companies:write
Annotations
readOnlyHint: falsedestructiveHint: trueidempotentHint: true
Example prompt
Add Taller Alba, taller-alba.example, as a company in Spain.

Save a contact

leitvik_contact_upsert
Write

Creates or updates a contact at a company; a contact with the same email is updated. Does not contact the person.

Scopes
contacts:write
Annotations
readOnlyHint: falsedestructiveHint: trueidempotentHint: true
Example prompt
Add Ana Rivas, CEO, ana@taller-alba.example, to Taller Alba.

Update a lead

leitvik_lead_update
Write

Changes only the lead fields you send: state, next step and date, notes. A held lead needs a reason.

Scopes
leads:write
Annotations
readOnlyHint: falsedestructiveHint: trueidempotentHint: false
Example prompt
Move Bruma to contacted with the next step "Send the proposal" on Friday.

Record a conversation

leitvik_touch_record
Write

Records a conversation that already happened, with its real date. It never sends a message.

Scopes
touches:write
Annotations
readOnlyHint: falsedestructiveHint: trueidempotentHint: true
Example prompt
Log that I emailed Ana at Bruma this morning about pricing.

Record a signal

leitvik_signal_record
Write

Stores a buying signal with its source URL, literal quote and dates.

Scopes
signals:write
Annotations
readOnlyHint: falsedestructiveHint: trueidempotentHint: true
Example prompt
Save this job post as a signal for Nubelar Labs.

Replace a dossier

leitvik_dossier_write
Write

Saves the dossier text for a company, replacing the stored one.

Scopes
dossiers:write
Annotations
readOnlyHint: falsedestructiveHint: trueidempotentHint: false
Example prompt
Rewrite Bruma's dossier with what we learned in today's call.

Write: tasks and opportunities

Create a task

leitvik_task_create
Write

Creates an open task for a company, optionally with owner, due date and detail. Sends nothing to anyone.

Scopes
tasks:write
Annotations
readOnlyHint: falsedestructiveHint: falseidempotentHint: true
Example prompt
Create a task for Bruma: "Send the revised proposal", due Friday.

Complete a task

leitvik_task_complete
Write

Marks an open task completed at its current version.

Scopes
tasks:write
Annotations
readOnlyHint: falsedestructiveHint: trueidempotentHint: false
Example prompt
Mark the proposal task for Bruma as done.

Snooze a task

leitvik_task_snooze
Write

Moves an open task's due date later, with a reason kept in the audit log.

Scopes
tasks:write
Annotations
readOnlyHint: falsedestructiveHint: trueidempotentHint: false
Example prompt
Snooze the Bruma task to next Tuesday: they asked for more time.

Dismiss a task

leitvik_task_dismiss
Write

Closes an open task without completing it, with a reason. It can be reopened.

Scopes
tasks:write
Annotations
readOnlyHint: falsedestructiveHint: trueidempotentHint: false
Example prompt
Dismiss the follow-up task for Nubelar Labs; they went with another supplier.

Reopen a task

leitvik_task_reopen
Write

Reopens a completed or dismissed task.

Scopes
tasks:write
Annotations
readOnlyHint: falsedestructiveHint: trueidempotentHint: false
Example prompt
Reopen the Nubelar Labs follow-up task.

Edit a task

leitvik_task_edit
Write

Changes only the title, detail, owner or due date you send.

Scopes
tasks:write
Annotations
readOnlyHint: falsedestructiveHint: trueidempotentHint: false
Example prompt
Rename the Bruma task to "Call Ana about the budget".

Archive a task

leitvik_task_archive
Write

Removes a task created by mistake or duplicated. It leaves every list and the Today agenda but stays in the audit log and exports.

Scopes
tasks:write
Annotations
readOnlyHint: falsedestructiveHint: trueidempotentHint: true
Example prompt
Archive the duplicate Bruma task from the CSV import.

Write: reviewed capture

Preview a conversation capture

leitvik_capture_preview
Write

Turns pasted notes into a proposal: the conversation and the new next step. It changes no CRM data until you approve.

Scopes
captures:write
Annotations
readOnlyHint: falsedestructiveHint: falseidempotentHint: true
Example prompt
Here are my notes from the call with Bruma. Record them and set the next step to "Call on Tuesday".

Apply a reviewed capture

leitvik_capture_apply
Write

Applies exactly the proposal you reviewed. If the next step changed in the meantime, nothing is written.

Scopes
captures:write
Annotations
readOnlyHint: falsedestructiveHint: trueidempotentHint: true
Example prompt
Yes, apply it.

Undo a reviewed next step

leitvik_capture_undo
Write

Restores the next step an applied proposal replaced. The conversation stays in the history.

Scopes
captures:write
Annotations
readOnlyHint: falsedestructiveHint: trueidempotentHint: true
Example prompt
Undo the next step you just set for Bruma.

Discard a capture proposal

leitvik_capture_discard
Write

Closes a proposal still in review without writing anything, for example when you decline it.

Scopes
captures:write
Annotations
readOnlyHint: falsedestructiveHint: trueidempotentHint: true
Example prompt
Forget that proposal for Bruma, it was the wrong company.

Write: outbound review and deliverability

Submit outbound review verdict

leitvik_submit_review_verdict
Write

Records pass or block with reasons. Block moves the message to blocked_by_review. A pass alone never sends to protected recipient classes.

Scopes
outbound:review
Annotations
readOnlyHint: falsedestructiveHint: trueidempotentHint: true
Example prompt
Pass the Bruma cold draft: hook is accurate and tone is fine.

Reset deliverability breaker

leitvik_reset_outbound_breaker
Write

Proposes or confirms clearing a deliverability breaker with root cause and fix notes.

Scopes
outbound:breaker_reset
Annotations
readOnlyHint: falsedestructiveHint: trueidempotentHint: true
Example prompt
We fixed SPF; propose clearing the breaker.

Record an outreach outcome

leitvik_record_outbound_outcome
Write

Records bounce, complaint, reply, or other funnel outcomes for one message. Bounces may trip the kill switch.

Scopes
outbound:write
Annotations
readOnlyHint: falsedestructiveHint: trueidempotentHint: true
Example prompt
Record a hard bounce for yesterday's Bruma send.

Schedule an outreach message

leitvik_schedule_outbound_message
Write

Moves a message to scheduled at the given time and version.

Scopes
outbound:write
Annotations
readOnlyHint: falsedestructiveHint: trueidempotentHint: true
Example prompt
Schedule the Bruma follow-up for tomorrow morning.

Reject an outreach message

leitvik_reject_outbound_message
Write

Moves a message to rejected at its current version.

Scopes
outbound:write
Annotations
readOnlyHint: falsedestructiveHint: trueidempotentHint: true
Example prompt
Reject the outdated Bruma draft.

Errors

A failed call returns isError with { "error": { "code", "reason", "message", "retryable" } }. reason is a stable sub-code such as stale_version, snooze_not_later or missing_scope; issues names each rejected field and requiredScopes lists the scopes a token lacks. The message says how to recover and never carries server internals.

CodeMeaningRetry
validationThe input was rejected: by the tool's schema (reason: schema) or by a rule such as a snooze date that is not later.No
not_foundNo such record in this workspace, or the company was merged.No
unknown_toolNo tool has that name.No
conflictThe record changed, the transition is not allowed, or the requestId was used with different content.No
forbiddenThis workspace or credential cannot do it.No
unauthorizedThe credential is missing, expired or revoked, or lacks the scope (requiredScopes).No
rate_limitedThe per-minute limit was reached; wait retryAfterSeconds.Yes
too_largeThe request or response is too large.No
timeoutNo answer in time; a write may already have applied.Yes
unavailableLeitvik could not be reached.Yes
result_too_largeThe result was withheld; ask for a smaller page.No
request_failedThe operation could not be completed.No