Provider Tools
Provider Tools
When you’re authenticated as a provider, you get access to 24 operations across 9 categories for managing your pharmacy, patients, orders, and analytics.
Authentication
# Link your provider accountnpx @famasi/agents@latest link provider --provider-id YOUR_PROVIDER_ID
# This creates .famasi/provider-link.json with your provider contextCustomer Management
# List all customersfetchCustomers({ page: 1, search: "John" })
# Create new customeraddProviderCustomer({ name: "John Doe", phone: "+2348012345678", email: "john@example.com"})
# View customer detailsviewProviderCustomerDetails({ customerId: "CUST-123" })
# Add customer to planaddCustomerPlan({ customerId: "CUST-123", planId: "PLAN-456" })Orders
# List all ordersgetAllProviderOrder({ page: 1, status: "pending" })
# Create new ordercreateNewProviderOrderController({ customerId: "CUST-123", pharmacyId: "PH-456", items: [{ medicationId: "MED-789", quantity: 2 }]})Formulary & Products
# Search formularyfetchFormularyForProvider({ query: "Amoxicillin 500mg", branchId: "BR-123"})Analytics
# Get platform analyticsgetProviderAnalytics({ startDate: "2026-01-01", endDate: "2026-04-30"})
# Get order analyticsgetProviderOrderAnalytics({ period: "month"})
# Get order statsgetProviderOrderStats()Wallet & Transactions
# Check wallet balancegetProviderWalletBalance()
# View transaction historygetProviderTransactionHistory({ page: 1, limit: 20})
# Get virtual accountsgetAllProviderVirtualAccounts()User Management
# Create provider usercreateProviderUser({ name: "Dr. Sarah", email: "sarah@pharmacy.com", role: "admin"})
# List user profilesgetProviderProfiles()Provider Management
# Edit provider infoeditProviderInfo({ name: "GreenCross Pharmacy", contact: "+2348012345678"})
# Upload logouploadProviderLogo({ file: "logo.png" })
# Update payment typeupdatePaymentType({ type: "bank_transfer" })
# Set low balance thresholdsetLowWalletThreshold({ threshold: 10000 })
# Toggle auto-debittoggleAutoDebit({ enabled: true })Tool details
Each tool has its own documentation:
- Customers — Manage patients
- Orders — Create and manage orders
- Formulary — Search products
- Analytics — View reports
- Wallet — Manage transactions
- Users — Team management
- Provider Settings — Configure your account
Next steps
- Individual Tools — For people ordering medications
- Coding Agents — Claude Code and Codex
- CLI — Installation and commands
- Reference — API documentation