Docs/System & Configuration/Tools Reference

Tools Reference

Complete reference for all query, reporting, and write tools available through the conversational interface

12 min read

Overview#

Artifi provides a unified set of tools for querying, analyzing, and modifying your financial data through natural conversation. These tools cover 59 entity types across all financial domains -- from vendors and invoices to fixed assets and recurring contracts.

Tool Inventory#

ToolPurposeType
searchFree-text search across entitiesRead
get_entityGet a single entity by IDRead
list_entitiesPaginated list with filtersRead
batch_lookupFetch multiple entity types in one callRead
aggregate_entitiesGROUP BY analytics (sum, count, avg)Read
generate_reportFormal financial and operational reportsRead
list_report_typesDiscover available reportsRead
submitCreate, update, and delete via workflowsWrite

Plus 8 workflow management tools for approval tasks, and 5 domain gateway tools for imports, onboarding, organization admin, banking connectors, and agent management.

Total: 34 tools covering all financial operations.


Tool Selection Guide#

I want to...UseWhy?
Find records by name or textsearchText matching across configurable search fields
Get one record with full detailsget_entityIncludes related entities (addresses, lines, etc.)
List records with filtering and paginationlist_entitiesDate ranges, sorting, page navigation
Fetch reference data before a create/updatebatch_lookupReplaces 3-5 sequential lookups in one call
Get totals, counts, or trendsaggregate_entitiesAd-hoc GROUP BY analytics
Generate formal financial statementsgenerate_reportStandard accounting formats with full detail
Discover which reports existlist_report_typesBrowse by category
Create, update, or delete recordssubmitAll writes go through workflow validation and audit

Search vs. List#

ScenarioTool
"Find vendor named Acme"search
"All pending bills for entity 10"list_entities
"Transactions from January 2025"list_entities with date filters
"Search transactions mentioning AWS"search

Aggregate vs. Report#

ScenarioTool
"Total spend by vendor"aggregate_entities
"Monthly revenue trend"aggregate_entities with time bucketing
"Trial balance as of Dec 31"generate_report
"AP aging report"generate_report

Rule of thumb: Use aggregate_entities for quick ad-hoc questions. Use generate_report for formal financial statements with standard accounting formatting.


Free-text search across configurable fields for any entity type. Returns up to 100 results with optional line items.

Key behaviors:

  • Searches different fields depending on entity type (e.g., vendors search name, email, tax ID, phone, website, and notes)
  • Warns you if your query looks like a date -- use list_entities with date filters instead
  • Can include line items in a single batch query (not N+1)
  • Invalid filter fields are ignored with warnings in the response

Get Entity#

Retrieve a single entity by numeric ID or global ID, with optional related entities loaded automatically.

Supported global ID lookups:

Entity TypeGlobal ID Example
VendorVEND-000123
CustomerCUST-000456
EmployeeEMP-000789
ItemITEM-000001
ProjectPROJ-000001
Bank StatementBS-2025-001
Agent Definitionbill_processor
Expense ReportEXP-000001
Payment BatchPAY-000001
Connectorwise_usd
Transaction TypeAP_INVOICE

Key behaviors:

  • Related entities (addresses, bank accounts, lines, dimensions) are fetched by default
  • If one related query fails, others still return successfully
  • UUID-based entities (agent instances, events, requests, sagas) accept UUID strings as IDs

List Entities#

Paginated listing with flexible filtering, date ranges, sorting, and optional line items.

Key behaviors:

  • Full pagination metadata: total count, total pages, has next/previous
  • Date range filters with from, to, or both
  • Sort by any configured field in ascending or descending order
  • Line items loaded in a single batch query when requested
  • Virtual fields (like vendor name on bills) resolved automatically

Batch Lookup#

Fetch multiple entity types in a single call. Ideal for gathering reference data before creating or updating records.

Constraints:

ConstraintValue
Max queries per call10
Max results per sub-query100
Single database connectionYes (efficient)

Key behaviors:

  • One sub-query failure does not block others
  • All sub-queries execute on a single database connection for efficiency
  • Perfect for loading payment terms, tax codes, dimension types, and accounts before posting a transaction

Aggregate Entities#

Ad-hoc GROUP BY analytics across entity types. Group by up to 3 columns with sum, count, average, min, and max functions.

Supported entity types: Transactions, bills, bank statement lines, card transactions, fixed assets, recurring contracts, budget lines, expense reports, payment batches, depreciation runs, and billing runs.

Time Bucketing#

Add a time_bucket to group results by day, week, month, quarter, or year. Results include a period column for charting and trend analysis.

Aggregate Functions#

FunctionResult ColumnDescription
sumsum_{column}Sum of values
countcount_{column}Count of rows
count_distinctcount_distinct_{column}Count of unique values
avgavg_{column}Average
minmin_{column}Minimum
maxmax_{column}Maximum

Results include a totals row with aggregated values across all groups.


Generate Report#

Formal financial and operational reports with standard accounting formats. Use list_report_types to discover all available reports.

Report Categories#

Financial Reports

ReportKey Parameters
Trial BalanceEntity, as-of date
Balance SheetEntity, as-of date
Income StatementEntity, date range
Cash Flow StatementEntity, date range
Account ActivityEntity, account, date range
General Ledger DetailEntity, date range
Statement of Changes in EquityEntity, date range
AR AgingEntity, as-of date
AP AgingEntity, as-of date
Vendor Aging DetailEntity, vendor, as-of date

Consolidated Reports

ReportKey Parameters
Consolidated Trial BalanceMultiple entities, as-of date
Consolidated Balance SheetMultiple entities, as-of date
Consolidated Income StatementMultiple entities, date range
Entity ComparisonMultiple entities, date range

Tax Reports

ReportKey Parameters
Sales Tax SummaryEntity, date range
Tax Filing WorksheetEntity, period
VAT ReportEntity, date range
1099 ReportEntity, tax year

Operational Reports

ReportKey Parameters
Revenue by CustomerEntity, date range
Revenue by ItemEntity, date range
Expense by VendorEntity, date range
Expense by CategoryEntity, date range
Deferred RevenueEntity, as-of date
Prepaid ExpenseEntity, as-of date

Banking Reports

ReportKey Parameters
Cash PositionEntity
Cash ForecastEntity, forecast days
Reconciliation SummaryEntity
Outstanding Reconciliation ItemsEntity, bank account

SaaS Metrics

ReportKey Parameters
Monthly Recurring Revenue (MRR)Entity, as-of date
Annual Recurring Revenue (ARR)Entity, as-of date
ChurnEntity, date range

Submit (Write Operations)#

Universal gateway for all create, update, and delete operations. Every write goes through the workflow system for validation, authorization, and audit trail.

Common Operations#

Object TypeOperations
Vendorcreate, update, delete
Customercreate, update, delete
Employeecreate, update, delete, reactivate
Transactionpost, reverse
Fixed Assetcreate, update, acquire from bill, dispose, transfer, impair
Bank Accountcreate, update, delete, verify
Expense Reportcreate, update, submit, approve, reject, cancel
Payment Batchcreate, approve, execute
Cardissue, activate, suspend, cancel

Transaction Types#

All financial transactions use a unified transaction type system:

Transaction TypeDescription
AP_INVOICEVendor bill
AR_INVOICECustomer invoice
AP_PAYMENTVendor payment
AR_RECEIPTCustomer receipt
JOURNAL_ENTRYManual journal entry
BANK_TRANSFERBank-to-bank transfer

Key behaviors:

  • All inputs validated via structured models before execution
  • Risk-based workflow routing: Green (auto-approve), Yellow (single approval), Red (multi-level)
  • Complete audit trail for every operation
  • Operations run inside database transactions for safety

Workflow Management Tools#

Tools for managing approval workflows and tasks:

ToolPurpose
My TasksGet tasks assigned to you, filtered by status
Task DetailsSee the full payload, history, and comments for a task
Complete TaskApprove or reject a workflow task
Edit PayloadModify workflow data fields before approval
Add CommentAttach notes to a workflow
Workflow HistoryFull audit trail of events, decisions, and comments
Get SchemaDiscover required and optional fields for any workflow type
Import StatusTrack progress of bulk import operations

Domain Gateway Tools#

Five domain gateways consolidate specialized operations:

GatewayPurposeKey Actions
ImportsBulk data importAccounts, customers, vendors, employees, transactions, fixed assets, items, dimensions
OnboardingEntity setup and configurationCheck status, run setup waves, load demo data, download skills
OrganizationOrg administrationGet info, switch org, manage roles, manage plugins, create client orgs
ConnectorsBanking integrationsRegister, activate, sync statements, manage credentials
AgentsAI agent managementConfigure agents, manage events, view instances, manage memory

Entity Type Quick Reference#

Master Data#

TypeSearch FieldsKey Filters
VendorName, email, tax ID, phone, websiteEntity, active status, vendor type, payment terms
CustomerName, email, tax ID, phone, websiteEntity, active status, customer type, payment terms
EmployeeFirst/last name, email, job title, departmentEntity, status, department, location
ItemName, number, description, categoryEntity, active status, item type

Transactions#

TypeSearch FieldsKey Filters
TransactionNumber, description, reference, party IDEntity, type, status, party, fiscal period
BillNumber, description, referenceEntity, status, vendor, currency
Expense ReportReport number, title, notesEntity, employee, status
Payment BatchBatch number, payment methodEntity, status, payment method

Fixed Assets#

TypeSearch FieldsKey Filters
Fixed AssetAsset number, name, serial number, locationEntity, status, category, depreciation method
Asset CategoryCode, name, descriptionActive status, depreciation method

Banking#

TypeSearch FieldsKey Filters
Bank AccountCode, name, bank name, account number, IBANEntity, currency, account type
Bank StatementStatement numberEntity, bank account, status, date
Statement LineDescription, referenceEntity, bank account, reconciliation status

Configuration#

TypeSearch FieldsKey Filters
AccountNumber, name, descriptionEntity, type, subtype, active status
Legal EntityCode, name, tax IDActive status, currency, country
Fiscal PeriodPeriod nameEntity, year, closed status
Tax CodeCode, name, descriptionActive status, tax type
Dimension TypeName, display nameActive status, required flag

Subscribe to new posts

Get notified when we publish new insights on AI-native finance.