98 MCP tools for Nepal websites, eSewa/Khalti stores, CRM, 13% VAT billing & school/fleet ops.
Maintain this server? Claim it
This server signs you in with OAuth, which the playground doesn't support yet. Install it in your MCP client to try it.
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add --transport sse hamrolink-mcp https://app.hamrolink.com/api/mcp/sse
Headers
Authorization (optional, not in the config above): Bearer hl_live_<tenant_secret_key> (or keyless OAuth 2.1)Adds a new page to the user's EXISTING site and links it in the navbar. Exact pre-built page templates exist for /blog (live blog API), /about, /services, /contact, /privacy, and /terms. For all other page intents (e.g. personal portfolio showcases, facility tours, admissions, team, custom landing pages, product showcases), HamroLink builds a theme-aligned custom HTML/CSS page using our declarative SDK attributes (data-hl-contact, data-hl-action) and site theme tokens. You can also pass 'html', 'css', optional browser-side 'js' (executed in an isolated sandboxed iframe), or 'prompt' directly.
| Argument | Type | Description |
|---|
| js | string | Optional browser-side JavaScript for interactive DOM manipulation, event listeners, calculators, quizzes, or animations (executed in an isolated sandboxed iframe with restrictive CSP). |
| css | string | Optional scoped CSS styling for the custom HTML page. |
| html | string | Optional raw custom HTML content. When provided, creates a custom HTML/CSS/JS page. |
| slug | string | URL path slug (e.g. '/blog', '/services', '/about', '/contact', '/portfolio-v2', '/facility') |
| prompt | string | Optional instructions or content brief describing what to build on the custom page (e.g. 'Personal portfolio with projects and contact form' or 'School science lab and campus facilities'). |
| siteId | string | Optional Site ID. If omitted, applies to the user's active/latest website. |
| pageName* | string | Name of the page (e.g. 'Blog', 'Services', 'About Us', 'Contact', 'Portfolio V2', 'Facility') |
| pageType | string | Template layout structure. Exact templates exist for blog, services, about, contact, privacy, and terms. Use 'custom' or 'blank_html' for custom HTML/CSS/JS pages. |
| useCustomPrimitives | boolean | Set to true only if the user explicitly commanded building a custom section-by-section layout instead of using the standard template. |
{
"type": "object",
"required": [
"pageName"
],
"properties": {
"js": {
"type": "string",
"description": "Optional browser-side JavaScript for interactive DOM manipulation, event listeners, calculators, quizzes, or animations (executed in an isolated sandboxed iframe with restrictive CSP)."
},
"css": {
"type": "string",
"description": "Optional scoped CSS styling for the custom HTML page."
},
"html": {
"type": "string",
"description": "Optional raw custom HTML content. When provided, creates a custom HTML/CSS/JS page."
},
"slug": {
"type": "string",
"description": "URL path slug (e.g. '/blog', '/services', '/about', '/contact', '/portfolio-v2', '/facility')"
},
"prompt": {
"type": "string",
"description": "Optional instructions or content brief describing what to build on the custom page (e.g. 'Personal portfolio with projects and contact form' or 'School science lab and campus facilities')."
},
"siteId": {
"type": "string",
"description": "Optional Site ID. If omitted, applies to the user's active/latest website."
},
"pageName": {
"type": "string",
"description": "Name of the page (e.g. 'Blog', 'Services', 'About Us', 'Contact', 'Portfolio V2', 'Facility')"
},
"pageType": {
"enum": [
"blog",
"services",
"about",
"contact",
"privacy",
"terms",
"custom",
"blank_html"
],
"type": "string",
"description": "Template layout structure. Exact templates exist for blog, services, about, contact, privacy, and terms. Use 'custom' or 'blank_html' for custom HTML/CSS/JS pages."
},
"useCustomPrimitives": {
"type": "boolean",
"description": "Set to true only if the user explicitly commanded building a custom section-by-section layout instead of using the standard template."
}
}
}Retrieves complete Business-plan+ Storefront Customer Acquisition & Purchase Journey analytics (visitors, HTTP referrers vs UTM campaigns, First-Touch vs Last-Touch attribution, session conversion funnel, product vs variant-level performance, sales & unattributed order split, order origins, and period comparison).
| Argument | Type | Description |
|---|---|---|
| days | number | Lookback window in days (default 7, max 90) |
| page | number | Pagination page number (default 1) |
| limit | number | Max rows per table (default 20, max 100) |
| range | string | Date range preset (default '7d') |
| siteId | string | Optional MongoDB Site ID (defaults to active storefront) |
| endDate | string | Optional ISO end date |
| section | string | Optional report focus (default 'all') |
| siteName | string | Optional storefront name filter (e.g. 'Pokhara Clothing') |
| startDate | string | Optional ISO start date |
| attributionModel | string | Attribution model (default last_touch) |
| includeComparison | boolean | Include previous period comparison deltas (default true) |
| orderOriginFilter | string | Optional order origin filter (default 'all') |
{
"type": "object",
"properties": {
"days": {
"type": "number",
"description": "Lookback window in days (default 7, max 90)"
},
"page": {
"type": "number",
"description": "Pagination page number (default 1)"
},
"limit": {
"type": "number",
"description": "Max rows per table (default 20, max 100)"
},
"range": {
"enum": [
"today",
"7d",
"30d",
"90d",
"custom"
],
"type": "string",
"description": "Date range preset (default '7d')"
},
"siteId": {
"type": "string",
"description": "Optional MongoDB Site ID (defaults to active storefront)"
},
"endDate": {
"type": "string",
"description": "Optional ISO end date"
},
"section": {
"enum": [
"all",
"overview",
"acquisition",
"campaigns",
"funnel",
"products",
"sales",
"comparison"
],
"type": "string",
"description": "Optional report focus (default 'all')"
},
"siteName": {
"type": "string",
"description": "Optional storefront name filter (e.g. 'Pokhara Clothing')"
},
"startDate": {
"type": "string",
"description": "Optional ISO start date"
},
"attributionModel": {
"enum": [
"last_touch",
"first_touch"
],
"type": "string",
"description": "Attribution model (default last_touch)"
},
"includeComparison": {
"type": "boolean",
"description": "Include previous period comparison deltas (default true)"
},
"orderOriginFilter": {
"enum": [
"all",
"storefront_only",
"migrated_or_manual"
],
"type": "string",
"description": "Optional order origin filter (default 'all')"
}
}
}Retrieves Business-plan+ measured visitor analytics, sessions, traffic sources, funnel metrics, and top viewed products for a site (requires Business plan or higher).
| Argument | Type | Description |
|---|---|---|
| days | number | Lookback window in days (default 7, max 90) |
| range | string | Date range preset (default '7d') |
| siteId | string | Optional MongoDB Site ID (defaults to active storefront) |
| endDate | string | Optional ISO end date |
| siteName | string | Optional storefront name filter (e.g. 'Pokhara Clothing') |
| startDate | string | Optional ISO start date |
| attributionModel | string | Attribution model |
| orderOriginFilter | string | Optional order origin filter (default 'all') |
{
"type": "object",
"properties": {
"days": {
"type": "number",
"description": "Lookback window in days (default 7, max 90)"
},
"range": {
"enum": [
"today",
"7d",
"30d",
"90d",
"custom"
],
"type": "string",
"description": "Date range preset (default '7d')"
},
"siteId": {
"type": "string",
"description": "Optional MongoDB Site ID (defaults to active storefront)"
},
"endDate": {
"type": "string",
"description": "Optional ISO end date"
},
"siteName": {
"type": "string",
"description": "Optional storefront name filter (e.g. 'Pokhara Clothing')"
},
"startDate": {
"type": "string",
"description": "Optional ISO start date"
},
"attributionModel": {
"enum": [
"last_touch",
"first_touch"
],
"type": "string",
"description": "Attribution model"
},
"orderOriginFilter": {
"enum": [
"all",
"storefront_only",
"migrated_or_manual"
],
"type": "string",
"description": "Optional order origin filter (default 'all')"
}
}
}Business Brain reasoning engine: delivers cross-domain operational recommendations.
No arguments.
{
"type": "object",
"properties": {}
}Creates and publishes a new blog article on a website.
| Argument | Type | Description |
|---|---|---|
| slug | string | Optional custom URL slug |
| tags | array | List of tags (e.g. ['Japan', 'N5', 'COE']) |
| title* | string | Title of the blog post |
| siteId* | string | MongoDB Site ID |
| content* | string | Main blog content formatted in Markdown (use '##' for section headings, '###' for subsections, **bold**, - bullet lists, > quotes). DO NOT include a top '# Title' (H1) in content because the title is already rendered by the page header. |
| excerpt | string | Short summary excerpt |
| category | string | Article category (e.g. 'Student Visa', 'NAT-TEST') |
| authorName | string | Optional author name. LEAVE OMITTED to automatically use the site's saved default Blog Author (with avatar). Never invent a generic placeholder name like 'Editorial Team' or 'Tech Desk'; call blog.list_authors first if you want to check or pick a saved author. |
| isPublished | boolean | Publish status (default true) |
| coverImageUrl | string | Public image URL for cover photo (e.g. Unsplash stock photo or verified CDN URL). NEVER use an un-uploaded presigned URL. If no image is available, omit or leave empty. |
{
"type": "object",
"required": [
"siteId",
"title",
"content"
],
"properties": {
"slug": {
"type": "string",
"description": "Optional custom URL slug"
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of tags (e.g. ['Japan', 'N5', 'COE'])"
},
"title": {
"type": "string",
"description": "Title of the blog post"
},
"siteId": {
"type": "string",
"description": "MongoDB Site ID"
},
"content": {
"type": "string",
"description": "Main blog content formatted in Markdown (use '##' for section headings, '###' for subsections, **bold**, - bullet lists, > quotes). DO NOT include a top '# Title' (H1) in content because the title is already rendered by the page header."
},
"excerpt": {
"type": "string",
"description": "Short summary excerpt"
},
"category": {
"type": "string",
"description": "Article category (e.g. 'Student Visa', 'NAT-TEST')"
},
"authorName": {
"type": "string",
"description": "Optional author name. LEAVE OMITTED to automatically use the site's saved default Blog Author (with avatar). Never invent a generic placeholder name like 'Editorial Team' or 'Tech Desk'; call blog.list_authors first if you want to check or pick a saved author."
},
"isPublished": {
"type": "boolean",
"description": "Publish status (default true)"
},
"coverImageUrl": {
"type": "string",
"description": "Public image URL for cover photo (e.g. Unsplash stock photo or verified CDN URL). NEVER use an un-uploaded presigned URL. If no image is available, omit or leave empty."
}
}
}Deletes a blog article from a site.
| Argument | Type | Description |
|---|---|---|
| slug* | string | Target post slug to delete |
| siteId* | string | MongoDB Site ID |
{
"type": "object",
"required": [
"siteId",
"slug"
],
"properties": {
"slug": {
"type": "string",
"description": "Target post slug to delete"
},
"siteId": {
"type": "string",
"description": "MongoDB Site ID"
}
}
}Retrieves a single blog post by slug.
| Argument | Type | Description |
|---|---|---|
| slug* | string | Blog post slug |
| siteId* | string | MongoDB Site ID |
{
"type": "object",
"required": [
"siteId",
"slug"
],
"properties": {
"slug": {
"type": "string",
"description": "Blog post slug"
},
"siteId": {
"type": "string",
"description": "MongoDB Site ID"
}
}
}Lists saved blog authors (and the default author with avatar) configured for a specific tenant site.
| Argument | Type | Description |
|---|---|---|
| siteId* | string | MongoDB Site ID |
{
"type": "object",
"required": [
"siteId"
],
"properties": {
"siteId": {
"type": "string",
"description": "MongoDB Site ID"
}
}
}Lists published blog posts for a specific tenant site.
| Argument | Type | Description |
|---|---|---|
| siteId* | string | MongoDB Site ID |
{
"type": "object",
"required": [
"siteId"
],
"properties": {
"siteId": {
"type": "string",
"description": "MongoDB Site ID"
}
}
}Updates an existing blog article.
| Argument | Type | Description |
|---|---|---|
| slug* | string | Target post slug |
| tags | array | Updated tags |
| title | string | Updated title |
| siteId* | string | MongoDB Site ID |
| content | string | Updated content |
| excerpt | string | Updated excerpt |
| category | string | Updated category |
| authorName | string | Updated author name (matching a saved author from blog.list_authors will also apply their saved avatar) |
| isPublished | boolean | Updated publish status |
| coverImageUrl | string | Updated cover image URL. Pass a live public image URL or verified CDN URL. If omitting change, leave unchanged. |
{
"type": "object",
"required": [
"siteId",
"slug"
],
"properties": {
"slug": {
"type": "string",
"description": "Target post slug"
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"description": "Updated tags"
},
"title": {
"type": "string",
"description": "Updated title"
},
"siteId": {
"type": "string",
"description": "MongoDB Site ID"
},
"content": {
"type": "string",
"description": "Updated content"
},
"excerpt": {
"type": "string",
"description": "Updated excerpt"
},
"category": {
"type": "string",
"description": "Updated category"
},
"authorName": {
"type": "string",
"description": "Updated author name (matching a saved author from blog.list_authors will also apply their saved avatar)"
},
"isPublished": {
"type": "boolean",
"description": "Updated publish status"
},
"coverImageUrl": {
"type": "string",
"description": "Updated cover image URL. Pass a live public image URL or verified CDN URL. If omitting change, leave unchanged."
}
}
}Changes the visual theme and brand tokens of the user's EXISTING site across the entire storefront (header, footer, homepage, all content pages, and product detail pages) without altering page copy. Supports all 16 curated themes ('light', 'emerald', 'modern', 'warm', 'luxury', 'ocean', 'crimson', 'minimal', 'dark', 'forest', 'premium', 'bright', 'vibrant', 'colorful', 'bold', 'elegant') plus Basic and Advanced color/typography overrides. UI/UX & ANTI-SLOP RULES: Maintain strict WCAG AA+ contrast (4.5:1+); never pair dark text with dark card/background surfaces or light text with light surfaces. Follow 60-30-10 color balance (60% neutral surface, 30% card/border structure, 10% primary CTA & accent highlights).
| Argument | Type | Description |
|---|---|---|
| theme* | string | The curated theme preset to apply across the site. |
| siteId | string | Optional Site ID. If omitted, applies to the user's active website. |
| cardColor | string | Optional custom card / box surface hex color (--card). |
| textColor | string | Optional main heading & body text hex color (--foreground). Must contrast strongly with backgroundColor and cardColor. |
| fontFamily | string | Optional global font family (e.g. "'Inter', sans-serif", "'Plus Jakarta Sans', sans-serif", "'Playfair Display', serif", "'Lora', serif", "'Space Grotesk', sans-serif", "'Outfit', sans-serif"). |
| isDarkMode | boolean | Optional global contrast toggle: true for Dark Mode surfaces, false for Light Mode surfaces. |
| accentColor | string | Optional secondary badge / highlight hex color (e.g. '#f59e0b', '#10b981'). |
| borderColor | string | Optional card border & divider hex color (--border). |
| primaryColor | string | Optional primary brand / CTA button hex color (e.g. '#ea580c', '#059669', '#2563eb'). |
| mutedTextColor | string | Optional subtitle / secondary text hex color (--muted-foreground). |
| backgroundColor | string | Optional custom page canvas background hex color (--background). |
| buttonTextColor | string | Optional text hex color inside primary buttons (e.g. '#ffffff'). |
| resetAdvancedOverrides | boolean | Set true to clear custom backgroundColor, cardColor, textColor, mutedTextColor, and borderColor overrides back to the theme's curated defaults. |
{
"type": "object",
"required": [
"theme"
],
"properties": {
"theme": {
"enum": [
"light",
"emerald",
"modern",
"warm",
"luxury",
"ocean",
"crimson",
"minimal",
"dark",
"forest",
"premium",
"bright",
"vibrant",
"colorful",
"bold",
"elegant"
],
"type": "string",
"description": "The curated theme preset to apply across the site."
},
"siteId": {
"type": "string",
"description": "Optional Site ID. If omitted, applies to the user's active website."
},
"cardColor": {
"type": "string",
"description": "Optional custom card / box surface hex color (--card)."
},
"textColor": {
"type": "string",
"description": "Optional main heading & body text hex color (--foreground). Must contrast strongly with backgroundColor and cardColor."
},
"fontFamily": {
"type": "string",
"description": "Optional global font family (e.g. \"'Inter', sans-serif\", \"'Plus Jakarta Sans', sans-serif\", \"'Playfair Display', serif\", \"'Lora', serif\", \"'Space Grotesk', sans-serif\", \"'Outfit', sans-serif\")."
},
"isDarkMode": {
"type": "boolean",
"description": "Optional global contrast toggle: true for Dark Mode surfaces, false for Light Mode surfaces."
},
"accentColor": {
"type": "string",
"description": "Optional secondary badge / highlight hex color (e.g. '#f59e0b', '#10b981')."
},
"borderColor": {
"type": "string",
"description": "Optional card border & divider hex color (--border)."
},
"primaryColor": {
"type": "string",
"description": "Optional primary brand / CTA button hex color (e.g. '#ea580c', '#059669', '#2563eb')."
},
"mutedTextColor": {
"type": "string",
"description": "Optional subtitle / secondary text hex color (--muted-foreground)."
},
"backgroundColor": {
"type": "string",
"description": "Optional custom page canvas background hex color (--background)."
},
"buttonTextColor": {
"type": "string",
"description": "Optional text hex color inside primary buttons (e.g. '#ffffff')."
},
"resetAdvancedOverrides": {
"type": "boolean",
"description": "Set true to clear custom backgroundColor, cardColor, textColor, mutedTextColor, and borderColor overrides back to the theme's curated defaults."
}
}
}Applies OR updates a special offer and linked storefront banner on a specific product variant (`targetVariant`/`targetVariants`) or on the whole product and all its variants in place (preserves existing promotion dates and regular prices unless explicitly changed) or adds a discount coupon code.
| Argument | Type | Description |
|---|---|---|
| type* | string | Promotion type: 'special_offer' updates live offerPrice & banner; 'coupon' adds checkout promo code; 'remove_offer' resets |
| theme | string | Optional banner color theme |
| siteId | string | Optional MongoDB Site ID |
| endDate | string | Optional ISO expiry timestamp (omit to preserve existing) |
| headline | string | Optional storefront banner headline |
| badgeText | string | Optional pill badge text (e.g. '15% OFF') |
| productId | string | Optional product ID |
| startDate | string | Optional ISO start timestamp (omit to preserve existing) |
| variantId | string | Optional exact variant ID to target (alias for targetVariant) |
| couponCode | string | Coupon code (e.g. 'SAVE10') |
| offerPrice | number | Special offer price in NPR (e.g. 1530) |
| productName | string | Product name to search and update |
| subheadline | string | Optional storefront banner subheadline |
| variantName | string | Optional variant name/label to target (alias for targetVariant) |
| durationDays | number | Optional duration in days |
| durationHours | number | Optional duration in hours |
| promotionName | string | Optional promotion/campaign name |
| publishBanner | boolean | Set true to publish storefront banner, false for draft; omit to preserve |
| targetVariant | string | Optional specific variant (e.g. '128GB', '8GB / 256GB', 'White / S', variant ID, or SKU) to discount or remove offer from. When provided, ONLY that variant is discounted and sibling variants keep their regular price. Omit to discount the whole product and all its variants. |
| targetVariants | array | Optional list of multiple specific variants (e.g. ['128GB', '256GB']) to apply or remove the discount on. |
| durationMinutes | number | Optional duration in minutes from now |
| discountPercentage | number | Discount percentage (e.g. 15) |
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"enum": [
"special_offer",
"coupon",
"remove_offer"
],
"type": "string",
"description": "Promotion type: 'special_offer' updates live offerPrice & banner; 'coupon' adds checkout promo code; 'remove_offer' resets"
},
"theme": {
"enum": [
"red",
"dark",
"gradient",
"gold",
"emerald"
],
"type": "string",
"description": "Optional banner color theme"
},
"siteId": {
"type": "string",
"description": "Optional MongoDB Site ID"
},
"endDate": {
"type": "string",
"description": "Optional ISO expiry timestamp (omit to preserve existing)"
},
"headline": {
"type": "string",
"description": "Optional storefront banner headline"
},
"badgeText": {
"type": "string",
"description": "Optional pill badge text (e.g. '15% OFF')"
},
"productId": {
"type": "string",
"description": "Optional product ID"
},
"startDate": {
"type": "string",
"description": "Optional ISO start timestamp (omit to preserve existing)"
},
"variantId": {
"type": "string",
"description": "Optional exact variant ID to target (alias for targetVariant)"
},
"couponCode": {
"type": "string",
"description": "Coupon code (e.g. 'SAVE10')"
},
"offerPrice": {
"type": "number",
"description": "Special offer price in NPR (e.g. 1530)"
},
"productName": {
"type": "string",
"description": "Product name to search and update"
},
"subheadline": {
"type": "string",
"description": "Optional storefront banner subheadline"
},
"variantName": {
"type": "string",
"description": "Optional variant name/label to target (alias for targetVariant)"
},
"durationDays": {
"type": "number",
"description": "Optional duration in days"
},
"durationHours": {
"type": "number",
"description": "Optional duration in hours"
},
"promotionName": {
"type": "string",
"description": "Optional promotion/campaign name"
},
"publishBanner": {
"type": "boolean",
"description": "Set true to publish storefront banner, false for draft; omit to preserve"
},
"targetVariant": {
"type": "string",
"description": "Optional specific variant (e.g. '128GB', '8GB / 256GB', 'White / S', variant ID, or SKU) to discount or remove offer from. When provided, ONLY that variant is discounted and sibling variants keep their regular price. Omit to discount the whole product and all its variants."
},
"targetVariants": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional list of multiple specific variants (e.g. ['128GB', '256GB']) to apply or remove the discount on."
},
"durationMinutes": {
"type": "number",
"description": "Optional duration in minutes from now"
},
"discountPercentage": {
"type": "number",
"description": "Discount percentage (e.g. 15)"
}
}
}Lists all distinct product categories and their product/stock counts in the store catalog.
| Argument | Type | Description |
|---|---|---|
| siteId | string | Optional MongoDB Site ID |
| siteName | string | Optional store name |
{
"type": "object",
"properties": {
"siteId": {
"type": "string",
"description": "Optional MongoDB Site ID"
},
"siteName": {
"type": "string",
"description": "Optional store name"
}
}
}Creates and adds a new product (with optional size/weight/color variants) to an e-commerce website store inventory.
| Argument | Type | Description |
|---|---|---|
| name* | string | Product name (e.g. 'Single Origin Ilam CTC Tea') |
| tags | array | List of tags |
| price* | number | Product regular price in NPR |
| stock | number | Inventory stock count |
| images | array | Array of product image URLs |
| siteId* | string | MongoDB Site ID |
| category | string | Product category (e.g. 'Tea', 'Pashmina', 'Handicrafts') |
| currency | string | Currency code (default 'NPR') |
| variants | array | List of variant objects with name, price, offerPrice, and stock |
| offerPrice | number | Optional discounted offer price in NPR |
| description | string | Product description (Markdown supported) |
| variantType | string | Type of variants (e.g. 'ram_storage', 'ram', 'storage', 'mobile', 'size', 'color', 'weight', 'flavor', 'custom') |
{
"type": "object",
"required": [
"siteId",
"name",
"price"
],
"properties": {
"name": {
"type": "string",
"description": "Product name (e.g. 'Single Origin Ilam CTC Tea')"
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of tags"
},
"price": {
"type": "number",
"description": "Product regular price in NPR"
},
"stock": {
"type": "number",
"description": "Inventory stock count"
},
"images": {
"type": "array",
"items": {
"type": "string"
},
"description": "Array of product image URLs"
},
"siteId": {
"type": "string",
"description": "MongoDB Site ID"
},
"category": {
"type": "string",
"description": "Product category (e.g. 'Tea', 'Pashmina', 'Handicrafts')"
},
"currency": {
"type": "string",
"description": "Currency code (default 'NPR')"
},
"variants": {
"type": "array",
"items": {
"type": "object"
},
"description": "List of variant objects with name, price, offerPrice, and stock"
},
"offerPrice": {
"type": "number",
"description": "Optional discounted offer price in NPR"
},
"description": {
"type": "string",
"description": "Product description (Markdown supported)"
},
"variantType": {
"type": "string",
"description": "Type of variants (e.g. 'ram_storage', 'ram', 'storage', 'mobile', 'size', 'color', 'weight', 'flavor', 'custom')"
}
}
}Creates a multi-product storefront flash-sale / festival promotional campaign with discount value, date range, and optional countdown banner.
| Argument | Type | Description |
|---|---|---|
| name* | string | Promotion campaign name |
| type | string | Discount type (default 'percentage') |
| theme | string | Banner theme |
| siteId | string | Optional store Site ID |
| endDate | string | Optional ISO end date |
| headline | string | Optional storefront banner headline |
| badgeText | string | Optional badge label |
| startDate | string | Optional ISO start date |
| subheadline | string | Optional banner subheadline |
| productNames | array | Optional target product names (applies storewide if omitted) |
| discountValue* | number | Discount percentage or fixed NPR amount |
| publishBanner | boolean | Publish storefront announcement banner immediately |
{
"type": "object",
"required": [
"name",
"discountValue"
],
"properties": {
"name": {
"type": "string",
"description": "Promotion campaign name"
},
"type": {
"enum": [
"percentage",
"fixed"
],
"type": "string",
"description": "Discount type (default 'percentage')"
},
"theme": {
"enum": [
"red",
"dark",
"gradient",
"gold",
"emerald"
],
"type": "string",
"description": "Banner theme"
},
"siteId": {
"type": "string",
"description": "Optional store Site ID"
},
"endDate": {
"type": "string",
"description": "Optional ISO end date"
},
"headline": {
"type": "string",
"description": "Optional storefront banner headline"
},
"badgeText": {
"type": "string",
"description": "Optional badge label"
},
"startDate": {
"type": "string",
"description": "Optional ISO start date"
},
"subheadline": {
"type": "string",
"description": "Optional banner subheadline"
},
"productNames": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional target product names (applies storewide if omitted)"
},
"discountValue": {
"type": "number",
"description": "Discount percentage or fixed NPR amount"
},
"publishBanner": {
"type": "boolean",
"description": "Publish storefront announcement banner immediately"
}
}
}Deletes a product from the e-commerce store.
| Argument | Type | Description |
|---|---|---|
| siteId* | string | MongoDB Site ID |
| productId* | string | MongoDB Product ID |
{
"type": "object",
"required": [
"siteId",
"productId"
],
"properties": {
"siteId": {
"type": "string",
"description": "MongoDB Site ID"
},
"productId": {
"type": "string",
"description": "MongoDB Product ID"
}
}
}Retrieves details for a single e-commerce product.
| Argument | Type | Description |
|---|---|---|
| siteId* | string | MongoDB Site ID |
| productId* | string | Product MongoDB ID |
{
"type": "object",
"required": [
"siteId",
"productId"
],
"properties": {
"siteId": {
"type": "string",
"description": "MongoDB Site ID"
},
"productId": {
"type": "string",
"description": "Product MongoDB ID"
}
}
}Lists e-commerce products for a specific site.
| Argument | Type | Description |
|---|---|---|
| siteId* | string | MongoDB Site ID |
| category | string | Optional category filter |
{
"type": "object",
"required": [
"siteId"
],
"properties": {
"siteId": {
"type": "string",
"description": "MongoDB Site ID"
},
"category": {
"type": "string",
"description": "Optional category filter"
}
}
}READ-ONLY check of existing product offers, flash-sale promotions, active prices, exact ISO start/end expiry timestamps, banner publish state, and countdown visibility.
| Argument | Type | Description |
|---|---|---|
| siteId | string | Optional store Site ID |
| siteName | string | Optional store name |
| productName | string | Optional product name filter |
| includeExpired | boolean | Include expired or inactive promotions (default true) |
{
"type": "object",
"properties": {
"siteId": {
"type": "string",
"description": "Optional store Site ID"
},
"siteName": {
"type": "string",
"description": "Optional store name"
},
"productName": {
"type": "string",
"description": "Optional product name filter"
},
"includeExpired": {
"type": "boolean",
"description": "Include expired or inactive promotions (default true)"
}
}
}Creates a verified e-commerce customer order (COD or QR payment) with atomic inventory validation and deduction, server-side total calculation, and post-write database verification.
| Argument | Type | Description |
|---|---|---|
| size | string | Shorthand single-item size |
| color | string | Shorthand single-item color |
| items | array | Array of line items: [{ productId?, productName?, variant?, size?, color?, quantity }] |
| siteId | string | Optional store Site ID |
| variant | string | Shorthand single-item variant name |
| quantity | number | Shorthand single-item quantity |
| siteName | string | Optional store name (e.g. 'Pokhara Clothing') |
| productId | string | Shorthand single-item product ID |
| productName | string | Shorthand single-item product name |
| customerName* | string | Customer full name |
| deliveryType | string | Delivery or pickup (default: 'delivery') |
| customerEmail | string | Optional customer email |
| customerPhone* | string | Customer phone number |
| paymentMethod | string | Payment method (default: 'cod') |
| customerAddress* | string | Delivery address |
{
"type": "object",
"required": [
"customerName",
"customerPhone",
"customerAddress"
],
"properties": {
"size": {
"type": "string",
"description": "Shorthand single-item size"
},
"color": {
"type": "string",
"description": "Shorthand single-item color"
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"size": {
"type": "string"
},
"color": {
"type": "string"
},
"variant": {
"type": "string"
},
"quantity": {
"type": "number"
},
"productId": {
"type": "string"
},
"productName": {
"type": "string"
}
}
},
"description": "Array of line items: [{ productId?, productName?, variant?, size?, color?, quantity }]"
},
"siteId": {
"type": "string",
"description": "Optional store Site ID"
},
"variant": {
"type": "string",
"description": "Shorthand single-item variant name"
},
"quantity": {
"type": "number",
"description": "Shorthand single-item quantity"
},
"siteName": {
"type": "string",
"description": "Optional store name (e.g. 'Pokhara Clothing')"
},
"productId": {
"type": "string",
"description": "Shorthand single-item product ID"
},
"productName": {
"type": "string",
"description": "Shorthand single-item product name"
},
"customerName": {
"type": "string",
"description": "Customer full name"
},
"deliveryType": {
"enum": [
"delivery",
"pickup"
],
"type": "string",
"description": "Delivery or pickup (default: 'delivery')"
},
"customerEmail": {
"type": "string",
"description": "Optional customer email"
},
"customerPhone": {
"type": "string",
"description": "Customer phone number"
},
"paymentMethod": {
"enum": [
"cod",
"cash_on_delivery",
"qr_code"
],
"type": "string",
"description": "Payment method (default: 'cod')"
},
"customerAddress": {
"type": "string",
"description": "Delivery address"
}
}
}Retrieves complete details for a single e-commerce customer order including line items, payment status, First-Touch & Last-Touch attribution, linked storefront session details, and explanation of whether/how it was attributed.
| Argument | Type | Description |
|---|---|---|
| siteId | string | Optional store Site ID filter |
| orderId* | string | Order ID (e.g. 'ORD-510738-448') or MongoDB 24-character _id |
| siteName | string | Optional store name filter (e.g. 'Pokhara Clothing') |
{
"type": "object",
"required": [
"orderId"
],
"properties": {
"siteId": {
"type": "string",
"description": "Optional store Site ID filter"
},
"orderId": {
"type": "string",
"description": "Order ID (e.g. 'ORD-510738-448') or MongoDB 24-character _id"
},
"siteName": {
"type": "string",
"description": "Optional store name filter (e.g. 'Pokhara Clothing')"
}
}
}Queries individual e-commerce customer orders, line items, fulfillment status, independent paymentStatus, and campaign/session attribution across tenant storefronts.
| Argument | Type | Description |
|---|---|---|
| limit | number | Maximum orders to return (default 15, max 50) |
| search | string | Optional search by orderId, customer name, phone, email, or product name |
| siteId | string | Optional store Site ID filter |
| status | string | Optional fulfillment status filter |
| orderId | string | Optional exact Order ID (e.g. 'ORD-510738-448') |
| siteName | string | Optional store name (e.g. 'Pokhara Clothing') |
| productName | string | Optional product name filter |
| customerName | string | Optional customer name filter |
| customerPhone | string | Optional customer phone filter |
| paymentStatus | string | Optional independent paymentStatus filter |
| attributionStatus | string | Optional attribution filter (attributed vs unattributed) |
{
"type": "object",
"properties": {
"limit": {
"type": "number",
"description": "Maximum orders to return (default 15, max 50)"
},
"search": {
"type": "string",
"description": "Optional search by orderId, customer name, phone, email, or product name"
},
"siteId": {
"type": "string",
"description": "Optional store Site ID filter"
},
"status": {
"enum": [
"pending",
"paid",
"confirmed",
"preparing",
"ready_for_pickup",
"out_for_delivery",
"shipped",
"delivered",
"completed",
"cancelled"
],
"type": "string",
"description": "Optional fulfillment status filter"
},
"orderId": {
"type": "string",
"description": "Optional exact Order ID (e.g. 'ORD-510738-448')"
},
"siteName": {
"type": "string",
"description": "Optional store name (e.g. 'Pokhara Clothing')"
},
"productName": {
"type": "string",
"description": "Optional product name filter"
},
"customerName": {
"type": "string",
"description": "Optional customer name filter"
},
"customerPhone": {
"type": "string",
"description": "Optional customer phone filter"
},
"paymentStatus": {
"enum": [
"PENDING",
"PAID",
"FAILED",
"REFUNDED"
],
"type": "string",
"description": "Optional independent paymentStatus filter"
},
"attributionStatus": {
"enum": [
"attributed",
"unattributed"
],
"type": "string",
"description": "Optional attribution filter (attributed vs unattributed)"
}
}
}Independently updates ONLY the paymentStatus (PENDING, PAID, FAILED, REFUNDED) of an order without modifying its fulfillment status or inventory. Only mark PAID after explicit merchant confirmation of actual cash or QR receipt.
| Argument | Type | Description |
|---|---|---|
| orderId* | string | Order ID (e.g. 'ORD-123456-789') or MongoDB 24-character _id |
| paymentNote | string | Optional verification or refund note |
| paymentStatus* | string | New independent payment status |
{
"type": "object",
"required": [
"orderId",
"paymentStatus"
],
"properties": {
"orderId": {
"type": "string",
"description": "Order ID (e.g. 'ORD-123456-789') or MongoDB 24-character _id"
},
"paymentNote": {
"type": "string",
"description": "Optional verification or refund note"
},
"paymentStatus": {
"enum": [
"PENDING",
"PAID",
"FAILED",
"REFUNDED"
],
"type": "string",
"description": "New independent payment status"
}
}
}Updates ONLY the fulfillment lifecycle status of an e-commerce or store order (e.g. pending, confirmed, preparing, ready_for_pickup, out_for_delivery, shipped, delivered, completed, cancelled). Never modifies paymentStatus. Automatically generates a digital sale invoice when confirming, idempotently restocks inventory upon cancellation, and sends a notification email to the customer.
| Argument | Type | Description |
|---|---|---|
| status* | string | New order fulfillment lifecycle status |
| orderId* | string | Order ID (e.g. 'ORD-123456-789') or MongoDB 24-character _id |
| estimatedTime | string | Optional estimated delivery or pickup time |
| sendCustomerEmail | boolean | Whether to send an email notification to the customer with digital invoice receipt (default: true) |
{
"type": "object",
"required": [
"orderId",
"status"
],
"properties": {
"status": {
"enum": [
"pending",
"paid",
"confirmed",
"preparing",
"ready_for_pickup",
"out_for_delivery",
"shipped",
"delivered",
"completed",
"cancelled"
],
"type": "string",
"description": "New order fulfillment lifecycle status"
},
"orderId": {
"type": "string",
"description": "Order ID (e.g. 'ORD-123456-789') or MongoDB 24-character _id"
},
"estimatedTime": {
"type": "string",
"description": "Optional estimated delivery or pickup time"
},
"sendCustomerEmail": {
"type": "boolean",
"description": "Whether to send an email notification to the customer with digital invoice receipt (default: true)"
}
}
}Aggregates historical store Orders into units sold, completed vs. cancelled orders, gross order value, received PAID revenue, pending revenue, and variant/size breakdowns.
| Argument | Type | Description |
|---|---|---|
| siteId | string | Optional store Site ID |
| endDate | string | Optional ISO end date |
| siteName | string | Optional store name |
| productId | string | Optional product ID filter |
| startDate | string | Optional ISO start date |
| productName | string | Optional product name filter |
{
"type": "object",
"properties": {
"siteId": {
"type": "string",
"description": "Optional store Site ID"
},
"endDate": {
"type": "string",
"description": "Optional ISO end date"
},
"siteName": {
"type": "string",
"description": "Optional store name"
},
"productId": {
"type": "string",
"description": "Optional product ID filter"
},
"startDate": {
"type": "string",
"description": "Optional ISO start date"
},
"productName": {
"type": "string",
"description": "Optional product name filter"
}
}
}Configures storewide free-shipping threshold and standard shipping fee in NPR.
| Argument | Type | Description |
|---|---|---|
| siteId | string | Optional Site ID |
| message | string | Custom cart banner message |
| threshold* | number | Minimum cart subtotal in NPR to unlock free shipping |
| freeShippingEnabled | boolean | Enable or disable free shipping threshold |
| standardShippingFee | number | Standard shipping fee in NPR below threshold |
{
"type": "object",
"required": [
"threshold"
],
"properties": {
"siteId": {
"type": "string",
"description": "Optional Site ID"
},
"message": {
"type": "string",
"description": "Custom cart banner message"
},
"threshold": {
"type": "number",
"description": "Minimum cart subtotal in NPR to unlock free shipping"
},
"freeShippingEnabled": {
"type": "boolean",
"description": "Enable or disable free shipping threshold"
},
"standardShippingFee": {
"type": "number",
"description": "Standard shipping fee in NPR below threshold"
}
}
}Configures e-commerce payment methods: Fonepay/eSewa/Khalti/Bank QR image URL, Cash on Delivery toggle, and payout identifiers.
| Argument | Type | Description |
|---|---|---|
| siteId | string | Optional Site ID |
| esewaId | string | eSewa ID |
| codEnabled | boolean | Enable or disable Cash on Delivery |
| bankDetails | string | Bank account details |
| khaltiNumber | string | Khalti phone number |
| paymentQrCode | string | Uploaded payment QR image URL |
{
"type": "object",
"properties": {
"siteId": {
"type": "string",
"description": "Optional Site ID"
},
"esewaId": {
"type": "string",
"description": "eSewa ID"
},
"codEnabled": {
"type": "boolean",
"description": "Enable or disable Cash on Delivery"
},
"bankDetails": {
"type": "string",
"description": "Bank account details"
},
"khaltiNumber": {
"type": "string",
"description": "Khalti phone number"
},
"paymentQrCode": {
"type": "string",
"description": "Uploaded payment QR image URL"
}
}
}Updates an existing product or specific variants in store inventory (supports additive stockDelta and atomic bulk variantUpdates) with post-write persistence verification.
| Argument | Type | Description |
|---|---|---|
| name | string | Updated name |
| size | string | Optional variant size |
| color | string | Optional variant color |
| price | number | Updated price |
| stock | number | Updated stock count |
| images | array | Updated images array |
| siteId* | string | MongoDB Site ID |
| category | string | Updated category |
| variants | array | List of variant objects with name, price, offerPrice, and stock |
| productId* | string | MongoDB Product ID |
| offerPrice | number | Updated offer price |
| stockDelta | number | Additive stock adjustment (e.g. +10) |
| description | string | Updated description |
| variantType | string | Type of variants (e.g. 'ram_storage', 'ram', 'storage', 'mobile', 'size', 'color', 'weight', 'flavor', 'custom') |
| targetVariant | string | Optional specific variant selector |
| variantUpdates | array | Atomic bulk multi-variant updates ({ targetVariant/color/size, stock?, stockDelta?, price? }) |
{
"type": "object",
"required": [
"siteId",
"productId"
],
"properties": {
"name": {
"type": "string",
"description": "Updated name"
},
"size": {
"type": "string",
"description": "Optional variant size"
},
"color": {
"type": "string",
"description": "Optional variant color"
},
"price": {
"type": "number",
"description": "Updated price"
},
"stock": {
"type": "number",
"description": "Updated stock count"
},
"images": {
"type": "array",
"items": {
"type": "string"
},
"description": "Updated images array"
},
"siteId": {
"type": "string",
"description": "MongoDB Site ID"
},
"category": {
"type": "string",
"description": "Updated category"
},
"variants": {
"type": "array",
"items": {
"type": "object"
},
"description": "List of variant objects with name, price, offerPrice, and stock"
},
"productId": {
"type": "string",
"description": "MongoDB Product ID"
},
"offerPrice": {
"type": "number",
"description": "Updated offer price"
},
"stockDelta": {
"type": "number",
"description": "Additive stock adjustment (e.g. +10)"
},
"description": {
"type": "string",
"description": "Updated description"
},
"variantType": {
"type": "string",
"description": "Type of variants (e.g. 'ram_storage', 'ram', 'storage', 'mobile', 'size', 'color', 'weight', 'flavor', 'custom')"
},
"targetVariant": {
"type": "string",
"description": "Optional specific variant selector"
},
"variantUpdates": {
"type": "array",
"items": {
"type": "object"
},
"description": "Atomic bulk multi-variant updates ({ targetVariant/color/size, stock?, stockDelta?, price? })"
}
}
}Registers a prospective student inquiry / applicant lead into the abroad-study consultancy CRM pipeline.
| Argument | Type | Description |
|---|---|---|
| notes | string | Counseling notes, student academic background, or remarks |
| stage | string | Pipeline stage (defaults to 'inquiry') |
| siteId | string | Optional site ID. Defaults to active consultancy site. |
| priority | string | Lead priority level |
| studentName* | string | Full name of the prospective student |
| studentEmail | string | Optional email address |
| studentPhone* | string | Primary phone or WhatsApp number |
| targetCourse | string | Target program or course (e.g., 'Language School + Bachelor IT') |
| counselorName | string | Assigned staff counselor name |
| targetCountry | string | Target study destination (e.g., 'Japan', 'Australia', 'Canada', 'UK', 'USA') |
{
"type": "object",
"required": [
"studentName",
"studentPhone"
],
"properties": {
"notes": {
"type": "string",
"description": "Counseling notes, student academic background, or remarks"
},
"stage": {
"enum": [
"inquiry",
"counseling",
"documentation",
"applied",
"offer_received",
"visa_processing",
"visa_approved",
"enrolled",
"rejected"
],
"type": "string",
"description": "Pipeline stage (defaults to 'inquiry')"
},
"siteId": {
"type": "string",
"description": "Optional site ID. Defaults to active consultancy site."
},
"priority": {
"enum": [
"low",
"medium",
"high",
"urgent"
],
"type": "string",
"description": "Lead priority level"
},
"studentName": {
"type": "string",
"description": "Full name of the prospective student"
},
"studentEmail": {
"type": "string",
"description": "Optional email address"
},
"studentPhone": {
"type": "string",
"description": "Primary phone or WhatsApp number"
},
"targetCourse": {
"type": "string",
"description": "Target program or course (e.g., 'Language School + Bachelor IT')"
},
"counselorName": {
"type": "string",
"description": "Assigned staff counselor name"
},
"targetCountry": {
"type": "string",
"description": "Target study destination (e.g., 'Japan', 'Australia', 'Canada', 'UK', 'USA')"
}
}
}Creates an educational/visa consultancy service or counseling package (e.g., JLPT N5 Preparation, Visa Filing Assistance, University Application Support).
| Argument | Type | Description |
|---|---|---|
| name* | string | Service name (e.g., 'Study in Japan Complete Processing') |
| siteId | string | Optional site ID. Defaults to active consultancy site. |
| currency | string | Currency code, defaults to 'NPR' |
| imageUrl | string | Optional banner or thumbnail image URL |
| feeAmount* | number | Service fee / package price (numeric) |
| description | string | Detailed description of what is included |
| meetingLink | string | Optional Google Meet / Zoom counseling link |
{
"type": "object",
"required": [
"name",
"feeAmount"
],
"properties": {
"name": {
"type": "string",
"description": "Service name (e.g., 'Study in Japan Complete Processing')"
},
"siteId": {
"type": "string",
"description": "Optional site ID. Defaults to active consultancy site."
},
"currency": {
"type": "string",
"description": "Currency code, defaults to 'NPR'"
},
"imageUrl": {
"type": "string",
"description": "Optional banner or thumbnail image URL"
},
"feeAmount": {
"type": "number",
"description": "Service fee / package price (numeric)"
},
"description": {
"type": "string",
"description": "Detailed description of what is included"
},
"meetingLink": {
"type": "string",
"description": "Optional Google Meet / Zoom counseling link"
}
}
}Lists prospective student applicants in the consultancy CRM pipeline with optional filtering by stage, country, or keyword search.
| Argument | Type | Description |
|---|---|---|
| limit | number | Max results to return (default 50, max 100) |
| stage | string | Filter by pipeline stage (e.g., 'inquiry', 'visa_processing', 'documentation') |
| search | string | Search by student name, phone, email, or lead ID |
| siteId | string | Optional site ID. Defaults to active consultancy site. |
| targetCountry | string | Filter by destination country (e.g., 'Japan') |
{
"type": "object",
"properties": {
"limit": {
"type": "number",
"description": "Max results to return (default 50, max 100)"
},
"stage": {
"type": "string",
"description": "Filter by pipeline stage (e.g., 'inquiry', 'visa_processing', 'documentation')"
},
"search": {
"type": "string",
"description": "Search by student name, phone, email, or lead ID"
},
"siteId": {
"type": "string",
"description": "Optional site ID. Defaults to active consultancy site."
},
"targetCountry": {
"type": "string",
"description": "Filter by destination country (e.g., 'Japan')"
}
}
}Lists all active consultancy packages, language courses, and visa counseling services offered by the institute.
| Argument | Type | Description |
|---|---|---|
| siteId | string | Optional site ID. Defaults to active consultancy site. |
{
"type": "object",
"properties": {
"siteId": {
"type": "string",
"description": "Optional site ID. Defaults to active consultancy site."
}
}
}Searches private student counseling notes across consultancy records by keyword, student name, or category.
| Argument | Type | Description |
|---|---|---|
| query* | string | Keyword or topic to search |
| studentName | string | Optional student name filter |
{
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "string",
"description": "Keyword or topic to search"
},
"studentName": {
"type": "string",
"description": "Optional student name filter"
}
}
}Returns count and metrics of students across 6 consultancy admissions stages.
No arguments.
{
"type": "object",
"properties": {}
}Sends document submission reminder emails to students missing required files.
| Argument | Type | Description |
|---|---|---|
| docLabel* | string | Document name (e.g. 'Passport', 'Academic Transcripts') |
| confirmed | boolean | Set true to send live email after preview |
{
"type": "object",
"required": [
"docLabel"
],
"properties": {
"docLabel": {
"type": "string",
"description": "Document name (e.g. 'Passport', 'Academic Transcripts')"
},
"confirmed": {
"type": "boolean",
"description": "Set true to send live email after preview"
}
}
}Retrieves complete student profile including universities, documents, test scores, and notes.
| Argument | Type | Description |
|---|---|---|
| leadId | string | Student lead ID |
| studentName | string | Name of the student |
{
"type": "object",
"properties": {
"leadId": {
"type": "string",
"description": "Student lead ID"
},
"studentName": {
"type": "string",
"description": "Name of the student"
}
}
}Lists students filtered by stage, country, priority, or missing document flags.
| Argument | Type | Description |
|---|---|---|
| limit | number | Max results (default 50) |
| stage | string | Stage filter (inquiry, counseling, application, coe, visa_prep, enrolled) |
| priority | string | Priority filter (low, medium, high, urgent) |
| destinationCountry | string | Country filter (Japan, Australia, Canada, USA, UK) |
{
"type": "object",
"properties": {
"limit": {
"type": "number",
"description": "Max results (default 50)"
},
"stage": {
"type": "string",
"description": "Stage filter (inquiry, counseling, application, coe, visa_prep, enrolled)"
},
"priority": {
"type": "string",
"description": "Priority filter (low, medium, high, urgent)"
},
"destinationCountry": {
"type": "string",
"description": "Country filter (Japan, Australia, Canada, USA, UK)"
}
}
}Updates a student lead's pipeline stage (e.g., moving from 'counseling' to 'documentation' or 'visa_approved') and appends counselor notes.
| Argument | Type | Description |
|---|---|---|
| stage* | string | Target pipeline stage |
| leadId* | string | Student Lead ID (e.g., 'CL-2026-0001') or MongoDB ID |
| counselorNote | string | Progress note or feedback to log with timestamp |
{
"type": "object",
"required": [
"leadId",
"stage"
],
"properties": {
"stage": {
"enum": [
"inquiry",
"counseling",
"documentation",
"applied",
"offer_received",
"visa_processing",
"visa_approved",
"enrolled",
"rejected"
],
"type": "string",
"description": "Target pipeline stage"
},
"leadId": {
"type": "string",
"description": "Student Lead ID (e.g., 'CL-2026-0001') or MongoDB ID"
},
"counselorNote": {
"type": "string",
"description": "Progress note or feedback to log with timestamp"
}
}
}Finds students with missing or overdue documents sorted by deadline urgency.
| Argument | Type | Description |
|---|---|---|
| maxDaysUntilDeadline | number | Filter documents due within X days |
{
"type": "object",
"properties": {
"maxDaysUntilDeadline": {
"type": "number",
"description": "Filter documents due within X days"
}
}
}Lists or searches CRM customers across stores with contact details, reconciled realizedPaidSpend, lastOrderDate, and itemized store purchase history.
| Argument | Type | Description |
|---|---|---|
| limit | number | Max customers to return (default 15) |
| search | string | Search query by customer name, phone, or email |
| siteId | string | Optional store Site ID |
| paidOnly | boolean | Filter to customers with at least one PAID order |
| siteName | string | Optional store name (e.g. 'Pokhara Clothing') |
| hasOrders | boolean | Filter to customers with at least one order |
| productName | string | Optional product name filter |
{
"type": "object",
"properties": {
"limit": {
"type": "number",
"description": "Max customers to return (default 15)"
},
"search": {
"type": "string",
"description": "Search query by customer name, phone, or email"
},
"siteId": {
"type": "string",
"description": "Optional store Site ID"
},
"paidOnly": {
"type": "boolean",
"description": "Filter to customers with at least one PAID order"
},
"siteName": {
"type": "string",
"description": "Optional store name (e.g. 'Pokhara Clothing')"
},
"hasOrders": {
"type": "boolean",
"description": "Filter to customers with at least one order"
},
"productName": {
"type": "string",
"description": "Optional product name filter"
}
}
}Creates or logs a new CRM customer/lead record with contact info and optional opening Udharo balance.
| Argument | Type | Description |
|---|---|---|
| name* | string | Customer or lead full name |
| string | Optional email | |
| notes | string | Notes or follow-up details |
| phone | string | Optional phone number |
| source | string | Lead acquisition source |
| udharoBalance | number | Optional opening Udharo credit balance in NPR |
| whatsappNumber | string | Optional WhatsApp number |
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Customer or lead full name"
},
"email": {
"type": "string",
"description": "Optional email"
},
"notes": {
"type": "string",
"description": "Notes or follow-up details"
},
"phone": {
"type": "string",
"description": "Optional phone number"
},
"source": {
"type": "string",
"description": "Lead acquisition source"
},
"udharoBalance": {
"type": "number",
"description": "Optional opening Udharo credit balance in NPR"
},
"whatsappNumber": {
"type": "string",
"description": "Optional WhatsApp number"
}
}
}Queries customer and student leads submitted via lead forms across tenant sites.
| Argument | Type | Description |
|---|---|---|
| siteId | string | Optional Site ID filter |
{
"type": "object",
"properties": {
"siteId": {
"type": "string",
"description": "Optional Site ID filter"
}
}
}Manages customer Udharo (credit/khata): list balances, add credit, record payments, settle accounts, or prepare WhatsApp reminders.
| Argument | Type | Description |
|---|---|---|
| note | string | Transaction note |
| action* | string | Udharo action |
| amount | number | Amount in NPR |
| siteId | string | Optional Site ID |
| customerName | string | Customer name |
| customerPhone | string | Customer phone |
{
"type": "object",
"required": [
"action"
],
"properties": {
"note": {
"type": "string",
"description": "Transaction note"
},
"action": {
"enum": [
"list",
"add_credit",
"record_payment",
"settle",
"remind"
],
"type": "string",
"description": "Udharo action"
},
"amount": {
"type": "number",
"description": "Amount in NPR"
},
"siteId": {
"type": "string",
"description": "Optional Site ID"
},
"customerName": {
"type": "string",
"description": "Customer name"
},
"customerPhone": {
"type": "string",
"description": "Customer phone"
}
}
}Generates or updates an SEO blog post with 7-metric quality scorecard and auto cover imagery.
| Argument | Type | Description |
|---|---|---|
| topic* | string | Article topic |
| blogId | string | Optional existing blog ID to update |
| confirmed | boolean | Set true to publish live |
{
"type": "object",
"required": [
"topic"
],
"properties": {
"topic": {
"type": "string",
"description": "Article topic"
},
"blogId": {
"type": "string",
"description": "Optional existing blog ID to update"
},
"confirmed": {
"type": "boolean",
"description": "Set true to publish live"
}
}
}Discovers high-impact blog topic opportunities from customer inquiries and site trends.
No arguments.
{
"type": "object",
"properties": {}
}Evaluates a draft blog/editorial article for SEO quality, brand voice alignment, and duplicate topic risk.
| Argument | Type | Description |
|---|---|---|
| title* | string | Draft article title |
| content* | string | Draft Markdown/text content |
{
"type": "object",
"required": [
"title",
"content"
],
"properties": {
"title": {
"type": "string",
"description": "Draft article title"
},
"content": {
"type": "string",
"description": "Draft Markdown/text content"
}
}
}Drafts a personalized customer email with variable interpolation for preview.
| Argument | Type | Description |
|---|---|---|
| to* | any | Recipient email address, array of addresses, or audience tag ('all', 'customers', 'leads', 'students') |
| ctaUrl | string | Optional CTA destination URL |
| ctaText | string | Optional CTA button label |
| heading | string | Optional email header title |
| message* | string | Email body text |
| subject* | string | Email subject line |
| template | string | Optional template key ('marketing', 'newsletter', 'announcement', 'followup', 'support', 'blank') |
| primaryColor | string | Optional brand color hex |
{
"type": "object",
"required": [
"to",
"subject",
"message"
],
"properties": {
"to": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Recipient email address, array of addresses, or audience tag ('all', 'customers', 'leads', 'students')"
},
"ctaUrl": {
"type": "string",
"description": "Optional CTA destination URL"
},
"ctaText": {
"type": "string",
"description": "Optional CTA button label"
},
"heading": {
"type": "string",
"description": "Optional email header title"
},
"message": {
"type": "string",
"description": "Email body text"
},
"subject": {
"type": "string",
"description": "Email subject line"
},
"template": {
"type": "string",
"description": "Optional template key ('marketing', 'newsletter', 'announcement', 'followup', 'support', 'blank')"
},
"primaryColor": {
"type": "string",
"description": "Optional brand color hex"
}
}
}Dispatches an approved email to recipient via SES with atomic quota tracking.
| Argument | Type | Description |
|---|---|---|
| to* | any | Recipient email address, array of addresses, or audience tag ('all', 'customers', 'leads', 'students') |
| heading | string | Optional email header title |
| message* | string | Email body text |
| subject* | string | Email subject line |
| template | string | Optional template key |
| confirmed | boolean | Confirmation flag (must be true to send) |
{
"type": "object",
"required": [
"to",
"subject",
"message"
],
"properties": {
"to": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Recipient email address, array of addresses, or audience tag ('all', 'customers', 'leads', 'students')"
},
"heading": {
"type": "string",
"description": "Optional email header title"
},
"message": {
"type": "string",
"description": "Email body text"
},
"subject": {
"type": "string",
"description": "Email subject line"
},
"template": {
"type": "string",
"description": "Optional template key"
},
"confirmed": {
"type": "boolean",
"description": "Confirmation flag (must be true to send)"
}
}
}Records a vehicle repair or garage maintenance service with cost and replaced parts.
| Argument | Type | Description |
|---|---|---|
| status | string | Repair status |
| workshop* | string | Workshop/garage name |
| repairCost* | number | Total repair cost in NPR |
| truckQuery* | string | Truck plate or identifier |
| description* | string | Repair details |
| estimatedDays | number | Estimated days if In Progress |
{
"type": "object",
"required": [
"truckQuery",
"workshop",
"description",
"repairCost"
],
"properties": {
"status": {
"enum": [
"Completed",
"In Progress",
"Pending"
],
"type": "string",
"description": "Repair status"
},
"workshop": {
"type": "string",
"description": "Workshop/garage name"
},
"repairCost": {
"type": "number",
"description": "Total repair cost in NPR"
},
"truckQuery": {
"type": "string",
"description": "Truck plate or identifier"
},
"description": {
"type": "string",
"description": "Repair details"
},
"estimatedDays": {
"type": "number",
"description": "Estimated days if In Progress"
}
}
}Logs or edits a truck fuel entry with audit trail, odometer tracking, and efficiency check.
| Argument | Type | Description |
|---|---|---|
| route | string | Trip route |
| action | string | Create or edit |
| fuelRate* | number | Price per Litre in NPR |
| fuelType | string | Fuel type |
| odometer | number | Odometer reading in km |
| quantity* | number | Fuel quantity in Litres |
| editReason | string | Audit reason when editing |
| truckQuery* | string | Truck plate or identifier |
| fuelStation | string | Fuel pump name |
| totalAmount | number | Optional total amount in NPR |
{
"type": "object",
"required": [
"truckQuery",
"quantity",
"fuelRate"
],
"properties": {
"route": {
"type": "string",
"description": "Trip route"
},
"action": {
"enum": [
"create",
"edit"
],
"type": "string",
"description": "Create or edit"
},
"fuelRate": {
"type": "number",
"description": "Price per Litre in NPR"
},
"fuelType": {
"enum": [
"Diesel",
"Petrol",
"Other"
],
"type": "string",
"description": "Fuel type"
},
"odometer": {
"type": "number",
"description": "Odometer reading in km"
},
"quantity": {
"type": "number",
"description": "Fuel quantity in Litres"
},
"editReason": {
"type": "string",
"description": "Audit reason when editing"
},
"truckQuery": {
"type": "string",
"description": "Truck plate or identifier"
},
"fuelStation": {
"type": "string",
"description": "Fuel pump name"
},
"totalAmount": {
"type": "number",
"description": "Optional total amount in NPR"
}
}
}Assigns or unassigns drivers to fleet vehicles with license compliance warnings.
| Argument | Type | Description |
|---|---|---|
| notes | string | Optional notes |
| action* | string | Assign or unassign |
| truckQuery* | string | Truck plate |
| driverQuery* | string | Driver name, phone, or license number |
{
"type": "object",
"required": [
"action",
"truckQuery",
"driverQuery"
],
"properties": {
"notes": {
"type": "string",
"description": "Optional notes"
},
"action": {
"enum": [
"assign",
"unassign"
],
"type": "string",
"description": "Assign or unassign"
},
"truckQuery": {
"type": "string",
"description": "Truck plate"
},
"driverQuery": {
"type": "string",
"description": "Driver name, phone, or license number"
}
}
}Manages fleet spare parts inventory, serialized installations, removals, and inter-truck transfers.
| Argument | Type | Description |
|---|---|---|
| cost | number | Unit cost in NPR |
| action* | string | Part action |
| partName* | string | Part name |
| quantity | number | Quantity |
| serialNumber | string | Physical serial number |
| targetTruckQuery | string | Target truck plate |
{
"type": "object",
"required": [
"action",
"partName"
],
"properties": {
"cost": {
"type": "number",
"description": "Unit cost in NPR"
},
"action": {
"enum": [
"install",
"remove",
"transfer",
"stock_add"
],
"type": "string",
"description": "Part action"
},
"partName": {
"type": "string",
"description": "Part name"
},
"quantity": {
"type": "number",
"description": "Quantity"
},
"serialNumber": {
"type": "string",
"description": "Physical serial number"
},
"targetTruckQuery": {
"type": "string",
"description": "Target truck plate"
}
}
}READ-ONLY query engine for fleet vehicles, fuel spend summaries, part serial history, garage spare parts stock, and document/license expiries.
| Argument | Type | Description |
|---|---|---|
| daysAhead | number | Expiry lookahead days (default 30) |
| queryType* | string | Query type |
| timeRange | string | Time range filter |
| truckQuery | string | Optional truck plate or identifier |
| serialNumber | string | Component serial number (for part_serial) |
{
"type": "object",
"required": [
"queryType"
],
"properties": {
"daysAhead": {
"type": "number",
"description": "Expiry lookahead days (default 30)"
},
"queryType": {
"enum": [
"part_serial",
"fuel_summary",
"expiries",
"repair_history",
"truck_status",
"inventory"
],
"type": "string",
"description": "Query type"
},
"timeRange": {
"enum": [
"this_month",
"last_month",
"today",
"all"
],
"type": "string",
"description": "Time range filter"
},
"truckQuery": {
"type": "string",
"description": "Optional truck plate or identifier"
},
"serialNumber": {
"type": "string",
"description": "Component serial number (for part_serial)"
}
}
}Updates the live route, trip status (Idle, Ongoing, Completed), and odometer for a truck.
| Argument | Type | Description |
|---|---|---|
| remarks | string | Dispatch remarks |
| odometer | number | Current odometer in km |
| tripStatus* | string | New trip status |
| truckQuery* | string | Truck plate or identifier |
| currentRoute | string | Current or destination route |
{
"type": "object",
"required": [
"truckQuery",
"tripStatus"
],
"properties": {
"remarks": {
"type": "string",
"description": "Dispatch remarks"
},
"odometer": {
"type": "number",
"description": "Current odometer in km"
},
"tripStatus": {
"enum": [
"Idle",
"Ongoing",
"Completed"
],
"type": "string",
"description": "New trip status"
},
"truckQuery": {
"type": "string",
"description": "Truck plate or identifier"
},
"currentRoute": {
"type": "string",
"description": "Current or destination route"
}
}
}Generate, calculate, issue, and optionally email a verified digital payment invoice or receipt directly to a customer with CRM integration. (Note: Digital invoicing is strictly disabled for Free and Local Start plans; requires Business plan or above).
| Argument | Type | Description |
|---|---|---|
| isVat | boolean | Set true to apply standard 13% VAT, false for 0% VAT exemption |
| items | array | Optional itemized list of items/services. If passed, overrides serviceName/price. |
| price | number | Price or rate for the service item in NPR |
| siteId | string | Optional site ID. Defaults to active business or school site. |
| dueDate | string | Due date for payment (e.g. '2026-10-30') |
| taxRate | number | VAT tax percentage (e.g. 13 for 13% VAT, 0 for tax-exempt). Defaults to site's configured VAT rate. |
| discount | number | Flat discount amount in NPR |
| sendEmail | boolean | Whether to dispatch branded HTML invoice email to customer via Amazon SES (default true) |
| customNotes | string | Custom notes, payment terms, or instructions |
| customerPan | string | Optional customer PAN / VAT registration number for B2B billing |
| serviceName | string | Single service or product item name (e.g., 'Web Development & Hosting', 'School Tuition Fee', 'Consultation Fee') |
| customerName* | string | Customer, client, or company name (e.g., 'Suman Basnet') |
| customerEmail | string | Customer email address. Leave empty if unknown so tool can search CRM database. NEVER invent a fake email. |
| customerPhone | string | Optional customer phone number |
| paymentMethod | string | Payment method (e.g. 'Fonepay / Bank QR', 'Cash', 'Bank Transfer', 'eSewa', 'Khalti') |
| paymentStatus | string | Payment status: 'paid' (default receipt) or 'pending' (unpaid bill) |
| customerAddress | string | Optional customer address |
| paymentReference | string | Transaction reference ID, receipt note, or check number |
| discountPercentage | number | Discount percentage (e.g., 10 for 10% OFF) |
{
"type": "object",
"required": [
"customerName"
],
"properties": {
"isVat": {
"type": "boolean",
"description": "Set true to apply standard 13% VAT, false for 0% VAT exemption"
},
"items": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"rate"
],
"properties": {
"name": {
"type": "string",
"description": "Item or service name"
},
"rate": {
"type": "number",
"description": "Unit price in NPR"
},
"quantity": {
"type": "number",
"description": "Quantity (default 1)"
},
"description": {
"type": "string",
"description": "Optional description"
}
}
},
"description": "Optional itemized list of items/services. If passed, overrides serviceName/price."
},
"price": {
"type": "number",
"description": "Price or rate for the service item in NPR"
},
"siteId": {
"type": "string",
"description": "Optional site ID. Defaults to active business or school site."
},
"dueDate": {
"type": "string",
"description": "Due date for payment (e.g. '2026-10-30')"
},
"taxRate": {
"type": "number",
"description": "VAT tax percentage (e.g. 13 for 13% VAT, 0 for tax-exempt). Defaults to site's configured VAT rate."
},
"discount": {
"type": "number",
"description": "Flat discount amount in NPR"
},
"sendEmail": {
"type": "boolean",
"description": "Whether to dispatch branded HTML invoice email to customer via Amazon SES (default true)"
},
"customNotes": {
"type": "string",
"description": "Custom notes, payment terms, or instructions"
},
"customerPan": {
"type": "string",
"description": "Optional customer PAN / VAT registration number for B2B billing"
},
"serviceName": {
"type": "string",
"description": "Single service or product item name (e.g., 'Web Development & Hosting', 'School Tuition Fee', 'Consultation Fee')"
},
"customerName": {
"type": "string",
"description": "Customer, client, or company name (e.g., 'Suman Basnet')"
},
"customerEmail": {
"type": "string",
"description": "Customer email address. Leave empty if unknown so tool can search CRM database. NEVER invent a fake email."
},
"customerPhone": {
"type": "string",
"description": "Optional customer phone number"
},
"paymentMethod": {
"type": "string",
"description": "Payment method (e.g. 'Fonepay / Bank QR', 'Cash', 'Bank Transfer', 'eSewa', 'Khalti')"
},
"paymentStatus": {
"enum": [
"paid",
"pending"
],
"type": "string",
"description": "Payment status: 'paid' (default receipt) or 'pending' (unpaid bill)"
},
"customerAddress": {
"type": "string",
"description": "Optional customer address"
},
"paymentReference": {
"type": "string",
"description": "Transaction reference ID, receipt note, or check number"
},
"discountPercentage": {
"type": "number",
"description": "Discount percentage (e.g., 10 for 10% OFF)"
}
}
}Retrieves complete line items, tax computations, payment status, and share URL for an invoice number.
| Argument | Type | Description |
|---|---|---|
| invoiceNumber* | string | Invoice number (e.g. 'INV-2026-10294') |
{
"type": "object",
"required": [
"invoiceNumber"
],
"properties": {
"invoiceNumber": {
"type": "string",
"description": "Invoice number (e.g. 'INV-2026-10294')"
}
}
}Query and view past issued sales invoices and receipts with status, customer details, revenue, and direct view URLs. (Requires Business plan or above).
| Argument | Type | Description |
|---|---|---|
| limit | number | Maximum number of invoices to return (default 20) |
| search | string | Search query for customer name, email, or invoice number |
| siteId | string | Optional site ID filter |
| status | string | Invoice status filter |
{
"type": "object",
"properties": {
"limit": {
"type": "number",
"description": "Maximum number of invoices to return (default 20)"
},
"search": {
"type": "string",
"description": "Search query for customer name, email, or invoice number"
},
"siteId": {
"type": "string",
"description": "Optional site ID filter"
},
"status": {
"enum": [
"all",
"paid",
"pending",
"void"
],
"type": "string",
"description": "Invoice status filter"
}
}
}Updates the payment status of a sales invoice (paid, pending, void, or cancelled).
| Argument | Type | Description |
|---|---|---|
| status* | string | New invoice status |
| invoiceNumber* | string | Invoice number |
| paymentMethod | string | Payment method used |
| paymentReference | string | Transaction reference ID |
| sendReceiptEmail | boolean | Send confirmation receipt email (default true) |
{
"type": "object",
"required": [
"invoiceNumber",
"status"
],
"properties": {
"status": {
"enum": [
"paid",
"pending",
"void",
"cancelled"
],
"type": "string",
"description": "New invoice status"
},
"invoiceNumber": {
"type": "string",
"description": "Invoice number"
},
"paymentMethod": {
"type": "string",
"description": "Payment method used"
},
"paymentReference": {
"type": "string",
"description": "Transaction reference ID"
},
"sendReceiptEmail": {
"type": "boolean",
"description": "Send confirmation receipt email (default true)"
}
}
}Generates a direct presigned PUT upload URL ONLY for callers whose execution environment has direct outbound internet access to *.r2.cloudflarestorage.com (such as local terminals, Claude Code with network enabled, or Gemini CLI scripts). WARNING: Calling this tool ONLY reserves an upload endpoint—it does NOT upload any file, and sandboxed chats (ChatGPT, Claude.ai offline sandboxes) block outbound HTTP PUT requests. Inside sandboxed chats, NEVER call this tool—use 'media.upload' with 'file'/'files', 'download_url', or 'url', or ask the user to upload in HamroLink's Media Library UI and call 'media.list'. Never place the returned 'cdnUrl' into pages until an HTTP PUT actually succeeds.
| Argument | Type | Description |
|---|---|---|
| folder | string | Destination folder (default: 'uploads') |
| filename* | string | Filename with extension (e.g. 'logo.png', 'team.webp') |
| contentType | string | MIME type (e.g. 'image/png', 'image/jpeg', 'image/webp') |
{
"type": "object",
"required": [
"filename"
],
"properties": {
"folder": {
"type": "string",
"description": "Destination folder (default: 'uploads')"
},
"filename": {
"type": "string",
"description": "Filename with extension (e.g. 'logo.png', 'team.webp')"
},
"contentType": {
"type": "string",
"description": "MIME type (e.g. 'image/png', 'image/jpeg', 'image/webp')"
}
}
}Lists non-private images already uploaded to the user's HamroLink Media Library (returning live CDN URLs, filenames, folders, sizes, and storage quota stats) so you can inspect or reuse existing images across pages, blogs, and products.
| Argument | Type | Description |
|---|---|---|
| limit | number | Max items to return (1-50, default 20) |
| folder | string | Optional folder filter (e.g. 'uploads', 'blog', 'products') |
| search | string | Optional filename or key search query |
| siteId | string | Optional Site ID to filter media linked to a specific site |
{
"type": "object",
"properties": {
"limit": {
"type": "number",
"description": "Max items to return (1-50, default 20)"
},
"folder": {
"type": "string",
"description": "Optional folder filter (e.g. 'uploads', 'blog', 'products')"
},
"search": {
"type": "string",
"description": "Optional filename or key search query"
},
"siteId": {
"type": "string",
"description": "Optional Site ID to filter media linked to a specific site"
}
}
}Transcodes and permanently saves image(s) into the user's HamroLink Media Library (Cloudflare R2 CDN as optimized WebP). Supported low-token inputs: (1) ChatGPT Apps SDK: pass attached or AI-generated image(s) via 'file' or 'files' (uses openai/fileParams signed download_url); (2) Any client with a public or temporary signed HTTPS image URL: pass 'url' or 'download_url'. NEVER encode or pass raw base64 image strings in tool arguments (wastes excessive tokens). If your client cannot supply 'file'/'files' or an HTTPS URL (e.g., Claude offline sandbox or Gemini web chat), ask the user for a public HTTPS image URL or to upload directly in HamroLink's Media Library UI, then call 'media.list'.
| Argument | Type | Description |
|---|---|---|
| url | string | Public image URL (e.g. Unsplash stock photo) for HamroLink backend to download, optimize, and host. |
| file | object | Attached or AI-generated image file object from ChatGPT Apps SDK (automatically resolved via openai/fileParams with download_url and file_id). |
| name | string | Optional image filename or label (e.g. 'the-ai-paradox.png') |
| files | array | Optional batch of up to 10 attached or AI-generated image file objects from ChatGPT Apps SDK. |
| folder | string | Destination folder in the Media Library (default: 'uploads') |
| siteId | string | Optional Site ID to associate media with |
| download_url | string | Temporary signed HTTPS download URL where HamroLink backend can fetch the image binary directly. |
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Public image URL (e.g. Unsplash stock photo) for HamroLink backend to download, optimize, and host."
},
"file": {
"type": "object",
"required": [
"download_url",
"file_id"
],
"properties": {
"file_id": {
"type": "string",
"description": "Unique file identifier assigned by the AI host."
},
"file_name": {
"type": "string",
"description": "Optional original filename (e.g. 'hero-banner.png')."
},
"mime_type": {
"type": "string",
"description": "Optional MIME type of the file (e.g. 'image/png', 'image/webp')."
},
"download_url": {
"type": "string",
"description": "Temporary signed HTTPS URL provided by the AI host to download the uploaded or generated image file."
}
},
"description": "Attached or AI-generated image file object from ChatGPT Apps SDK (automatically resolved via openai/fileParams with download_url and file_id).",
"additionalProperties": false
},
"name": {
"type": "string",
"description": "Optional image filename or label (e.g. 'the-ai-paradox.png')"
},
"files": {
"type": "array",
"items": {
"type": "object",
"required": [
"download_url",
"file_id"
],
"properties": {
"file_id": {
"type": "string",
"description": "Unique file identifier assigned by the AI host."
},
"file_name": {
"type": "string",
"description": "Optional original filename (e.g. 'hero-banner.png')."
},
"mime_type": {
"type": "string",
"description": "Optional MIME type of the file (e.g. 'image/png', 'image/webp')."
},
"download_url": {
"type": "string",
"description": "Temporary signed HTTPS URL provided by the AI host to download the uploaded or generated image file."
}
},
"additionalProperties": false
},
"description": "Optional batch of up to 10 attached or AI-generated image file objects from ChatGPT Apps SDK."
},
"folder": {
"type": "string",
"description": "Destination folder in the Media Library (default: 'uploads')"
},
"siteId": {
"type": "string",
"description": "Optional Site ID to associate media with"
},
"download_url": {
"type": "string",
"description": "Temporary signed HTTPS download URL where HamroLink backend can fetch the image binary directly."
}
}
}Appends or prepends a section to a page. Supports standard sections or custom code sections with raw HTML, CSS, and optional browser-side JavaScript (type: 'custom_code', html: '<div>...</div>', css: '...', js: '...'). When adding interactive widgets (calculators, quizzes, interactive previews) or announcements, supply responsive HTML & CSS (and optional sandboxed JS via 'js') or specify 'name' and 'position: start'. Automatically sanitizes HTML, scopes CSS, and isolates JS in a sandboxed iframe.
| Argument | Type | Description |
|---|---|---|
| js | string | Optional browser-side JavaScript for interactive DOM manipulation, event listeners, calculators, quizzes, or animations (executed in an isolated sandboxed iframe with restrictive CSP). |
| css | string | Optional scoped CSS styles for the HTML section |
| html | string | Custom HTML markup (required if type is 'custom_code' or when adding an HTML block) |
| name | string | Display name or label for the section (e.g. 'Announcement Banner', 'Custom Pricing Calculator') |
| slug* | string | Target page slug (e.g. '/' or '/about') |
| type | string | Section type. Use 'custom_code' for custom HTML/CSS/JS sections, or standard types like 'features', 'cta', 'hero', etc. Defaults to 'custom_code'. |
| siteId* | string | MongoDB Site ID |
| position | string | Where to insert the section: 'end' (default) or 'start' (top of page) |
| sectionData | object | Optional full section object or custom content dictionary |
{
"type": "object",
"required": [
"siteId",
"slug"
],
"properties": {
"js": {
"type": "string",
"description": "Optional browser-side JavaScript for interactive DOM manipulation, event listeners, calculators, quizzes, or animations (executed in an isolated sandboxed iframe with restrictive CSP)."
},
"css": {
"type": "string",
"description": "Optional scoped CSS styles for the HTML section"
},
"html": {
"type": "string",
"description": "Custom HTML markup (required if type is 'custom_code' or when adding an HTML block)"
},
"name": {
"type": "string",
"description": "Display name or label for the section (e.g. 'Announcement Banner', 'Custom Pricing Calculator')"
},
"slug": {
"type": "string",
"description": "Target page slug (e.g. '/' or '/about')"
},
"type": {
"type": "string",
"description": "Section type. Use 'custom_code' for custom HTML/CSS/JS sections, or standard types like 'features', 'cta', 'hero', etc. Defaults to 'custom_code'."
},
"siteId": {
"type": "string",
"description": "MongoDB Site ID"
},
"position": {
"enum": [
"end",
"start"
],
"type": "string",
"description": "Where to insert the section: 'end' (default) or 'start' (top of page)"
},
"sectionData": {
"type": "object",
"description": "Optional full section object or custom content dictionary"
}
}
}Creates and publishes a new page on an existing website and links it to the navbar. Exact pre-built templates exist for /blog (live blog API), /about, /services, /contact, /privacy, and /terms. For all other page intents (e.g. personal portfolio showcases, facility tours, admissions, team, custom landing pages, interactive calculators/quizzes, product catalogs), HamroLink automatically constructs a tailored, theme-aligned custom HTML/CSS page with declarative SDK actions. You can pass 'html', 'css', optional browser-side 'js' (executed in an isolated sandboxed iframe), or 'prompt' directly.
| Argument | Type | Description |
|---|---|---|
| js | string | Optional browser-side JavaScript for interactive DOM manipulation, event listeners, calculators, quizzes, or animations (executed in an isolated sandboxed iframe with restrictive CSP). |
| css | string | Optional scoped CSS styling for the custom HTML page. |
| seo | object | SEO title, description, keywords, image, and structuredData schema |
| html | string | Optional raw custom HTML content. When provided, creates a custom HTML/CSS/JS page. |
| name* | string | Name of the new page (e.g. 'Portfolio V2', 'Blog', 'About Us', 'Facility', 'Scholarships') |
| slug* | string | URL slug for the new page (e.g. '/portfolio-v2', '/blog', '/about', '/facility', '/scholarships') |
| prompt | string | Optional instructions or content brief describing what to build on the custom page (e.g. 'Personal portfolio showcase with projects and interactive contact form' or 'School science lab and campus facilities'). |
| siteId* | string | MongoDB Site ID |
| sections | array | Optional. Leave omitted to automatically use HamroLink's pre-built template or custom synthesis. Only provide if constructing custom sections, and include complete data for each section. |
| published | boolean | Set true to publish immediately |
| templateId | string | Template layout key. Use 'blank_html' for an empty custom HTML/CSS/JS canvas page, or 'about'/'services'/'contact'/'privacy'/'terms' for exact page templates. |
| useCustomPrimitives | boolean | Set true only if the user explicitly requests custom primitives instead of the standard template. |
{
"type": "object",
"required": [
"siteId",
"name",
"slug"
],
"properties": {
"js": {
"type": "string",
"description": "Optional browser-side JavaScript for interactive DOM manipulation, event listeners, calculators, quizzes, or animations (executed in an isolated sandboxed iframe with restrictive CSP)."
},
"css": {
"type": "string",
"description": "Optional scoped CSS styling for the custom HTML page."
},
"seo": {
"type": "object",
"description": "SEO title, description, keywords, image, and structuredData schema"
},
"html": {
"type": "string",
"description": "Optional raw custom HTML content. When provided, creates a custom HTML/CSS/JS page."
},
"name": {
"type": "string",
"description": "Name of the new page (e.g. 'Portfolio V2', 'Blog', 'About Us', 'Facility', 'Scholarships')"
},
"slug": {
"type": "string",
"description": "URL slug for the new page (e.g. '/portfolio-v2', '/blog', '/about', '/facility', '/scholarships')"
},
"prompt": {
"type": "string",
"description": "Optional instructions or content brief describing what to build on the custom page (e.g. 'Personal portfolio showcase with projects and interactive contact form' or 'School science lab and campus facilities')."
},
"siteId": {
"type": "string",
"description": "MongoDB Site ID"
},
"sections": {
"type": "array",
"items": {
"type": "object"
},
"description": "Optional. Leave omitted to automatically use HamroLink's pre-built template or custom synthesis. Only provide if constructing custom sections, and include complete data for each section."
},
"published": {
"type": "boolean",
"description": "Set true to publish immediately"
},
"templateId": {
"type": "string",
"description": "Template layout key. Use 'blank_html' for an empty custom HTML/CSS/JS canvas page, or 'about'/'services'/'contact'/'privacy'/'terms' for exact page templates."
},
"useCustomPrimitives": {
"type": "boolean",
"description": "Set true only if the user explicitly requests custom primitives instead of the standard template."
}
}
}Permanently deletes a page from an existing website by slug or pageId, cleans up navigation menu links, and invalidates edge caches. The homepage ('/') cannot be deleted.
| Argument | Type | Description |
|---|---|---|
| slug | string | URL slug of the page to delete (e.g. '/portfolio-v2-test' or '/about') |
| pageId | string | Optional MongoDB Page ID |
| siteId* | string | MongoDB Site ID |
| confirmed | boolean | Confirm permanent deletion (default true for external MCP) |
{
"type": "object",
"required": [
"siteId"
],
"properties": {
"slug": {
"type": "string",
"description": "URL slug of the page to delete (e.g. '/portfolio-v2-test' or '/about')"
},
"pageId": {
"type": "string",
"description": "Optional MongoDB Page ID"
},
"siteId": {
"type": "string",
"description": "MongoDB Site ID"
},
"confirmed": {
"type": "boolean",
"description": "Confirm permanent deletion (default true for external MCP)"
}
}
}Retrieves section components and content for a specific page slug on a site.
| Argument | Type | Description |
|---|---|---|
| slug* | string | Page slug (e.g. '/' or '/about' or '/contact') |
| siteId* | string | MongoDB Site ID |
{
"type": "object",
"required": [
"siteId",
"slug"
],
"properties": {
"slug": {
"type": "string",
"description": "Page slug (e.g. '/' or '/about' or '/contact')"
},
"siteId": {
"type": "string",
"description": "MongoDB Site ID"
}
}
}Lists all pages belonging to a specific tenant website (e.g. /, /about, /contact, /services).
| Argument | Type | Description |
|---|---|---|
| siteId* | string | MongoDB Site ID |
{
"type": "object",
"required": [
"siteId"
],
"properties": {
"siteId": {
"type": "string",
"description": "MongoDB Site ID"
}
}
}Removes a section from a page by section ID or section type. If the page uses a monolithic template (e.g. ecommerce, portfolio, consultancy, restaurant), it safely hides the target sub-block (e.g. showFeatures: false, showTestimonials: false, showFaq: false) without deleting the entire page or template.
| Argument | Type | Description |
|---|---|---|
| slug* | string | Target page slug (e.g. '/' or '/about') |
| siteId* | string | MongoDB Site ID |
| sectionId | string | The ID of the section to remove (e.g. 'custom-code-12345' or block identifier) |
| sectionType | string | The type or block name of the section to remove (e.g. 'hero', 'features', 'testimonials', 'faq', 'cta', 'custom_code') |
{
"type": "object",
"required": [
"siteId",
"slug"
],
"properties": {
"slug": {
"type": "string",
"description": "Target page slug (e.g. '/' or '/about')"
},
"siteId": {
"type": "string",
"description": "MongoDB Site ID"
},
"sectionId": {
"type": "string",
"description": "The ID of the section to remove (e.g. 'custom-code-12345' or block identifier)"
},
"sectionType": {
"type": "string",
"description": "The type or block name of the section to remove (e.g. 'hero', 'features', 'testimonials', 'faq', 'cta', 'custom_code')"
}
}
}Updates an existing page. SUPPORTS DIRECT RAW HTML/CSS/JS INJECTION: Pass 'html', 'css', and optional browser-side 'js' (executed in an isolated sandboxed iframe with restrictive CSP) to update or replace the page content with custom handwritten HTML, scoped CSS, and interactive JavaScript (e.g. calculators, quizzes, dynamic product experiences, personal portfolio showcase, custom landing page). You can also pass 'prompt' to have HamroLink automatically style or rewrite the page using site theme tokens and declarative SDK attributes (data-hl-contact, data-hl-action).
| Argument | Type | Description |
|---|---|---|
| js | string | Optional browser-side JavaScript for interactive DOM manipulation, event listeners, calculators, quizzes, or animations (executed in an isolated sandboxed iframe with restrictive CSP). |
| css | string | Direct scoped CSS styling for the custom HTML page. Automatically scoped with PostCSS. |
| seo | object | SEO title, description, keywords, image, and structuredData schema |
| html | string | Direct custom HTML markup to update or replace the page content with a custom HTML/CSS/JS layout. Automatically sanitized with DOMPurify. |
| name | string | Updated page name |
| slug* | string | Target page slug (e.g. '/' or '/about' or '/portfolio-v2-test') |
| prompt | string | Instructions or content brief describing what to update or style on the page. |
| siteId* | string | MongoDB Site ID |
| newSlug | string | Optional new URL slug to rename this page (e.g. '/our-services' or '/' to make it the website homepage) |
| sections | array | Array of section objects to replace page content (optional if 'html' or 'prompt' is provided) |
| published | boolean | Publication status (default true) |
| makeHomePage | boolean | Set to true to make this page the primary homepage ('/') of the website. The current homepage will be safely archived to '/home-previous'. |
| rehydrateWithAi | boolean | Set to true to automatically rewrite or style the page content with AI matching site brand tokens. |
{
"type": "object",
"required": [
"siteId",
"slug"
],
"properties": {
"js": {
"type": "string",
"description": "Optional browser-side JavaScript for interactive DOM manipulation, event listeners, calculators, quizzes, or animations (executed in an isolated sandboxed iframe with restrictive CSP)."
},
"css": {
"type": "string",
"description": "Direct scoped CSS styling for the custom HTML page. Automatically scoped with PostCSS."
},
"seo": {
"type": "object",
"description": "SEO title, description, keywords, image, and structuredData schema"
},
"html": {
"type": "string",
"description": "Direct custom HTML markup to update or replace the page content with a custom HTML/CSS/JS layout. Automatically sanitized with DOMPurify."
},
"name": {
"type": "string",
"description": "Updated page name"
},
"slug": {
"type": "string",
"description": "Target page slug (e.g. '/' or '/about' or '/portfolio-v2-test')"
},
"prompt": {
"type": "string",
"description": "Instructions or content brief describing what to update or style on the page."
},
"siteId": {
"type": "string",
"description": "MongoDB Site ID"
},
"newSlug": {
"type": "string",
"description": "Optional new URL slug to rename this page (e.g. '/our-services' or '/' to make it the website homepage)"
},
"sections": {
"type": "array",
"items": {
"type": "object"
},
"description": "Array of section objects to replace page content (optional if 'html' or 'prompt' is provided)"
},
"published": {
"type": "boolean",
"description": "Publication status (default true)"
},
"makeHomePage": {
"type": "boolean",
"description": "Set to true to make this page the primary homepage ('/') of the website. The current homepage will be safely archived to '/home-previous'."
},
"rehydrateWithAi": {
"type": "boolean",
"description": "Set to true to automatically rewrite or style the page content with AI matching site brand tokens."
}
}
}Applies a special offer or discount percentage to a restaurant dish.
| Argument | Type | Description |
|---|---|---|
| dishId | string | Optional dish ID |
| dishName | string | Dish name |
| offerPrice | number | Direct offer price in NPR |
| removeOffer | boolean | Reset offer |
| discountPercentage | number | Discount % |
{
"type": "object",
"properties": {
"dishId": {
"type": "string",
"description": "Optional dish ID"
},
"dishName": {
"type": "string",
"description": "Dish name"
},
"offerPrice": {
"type": "number",
"description": "Direct offer price in NPR"
},
"removeOffer": {
"type": "boolean",
"description": "Reset offer"
},
"discountPercentage": {
"type": "number",
"description": "Discount %"
}
}
}Creates and adds a new dish or food item to the restaurant menu catalog.
| Argument | Type | Description |
|---|---|---|
| name* | string | Dish name |
| image | string | Image URL |
| price* | number | Price in NPR |
| siteId | string | Optional Site ID |
| isSpicy | boolean | |
| category* | string | Category |
| description | string | Dish description or ingredients |
| isVegetarian | boolean |
{
"type": "object",
"required": [
"name",
"price",
"category"
],
"properties": {
"name": {
"type": "string",
"description": "Dish name"
},
"image": {
"type": "string",
"description": "Image URL"
},
"price": {
"type": "number",
"description": "Price in NPR"
},
"siteId": {
"type": "string",
"description": "Optional Site ID"
},
"isSpicy": {
"type": "boolean"
},
"category": {
"type": "string",
"description": "Category"
},
"description": {
"type": "string",
"description": "Dish description or ingredients"
},
"isVegetarian": {
"type": "boolean"
}
}
}Queries restaurant menu items, categories, dietary flags, and active discount offers.
| Argument | Type | Description |
|---|---|---|
| search | string | Search query |
| siteId | string | Optional restaurant Site ID |
| category | string | Dish category (e.g. 'Momo', 'Appetizers', 'Drinks') |
| isVegetarian | boolean | Vegetarian filter |
{
"type": "object",
"properties": {
"search": {
"type": "string",
"description": "Search query"
},
"siteId": {
"type": "string",
"description": "Optional restaurant Site ID"
},
"category": {
"type": "string",
"description": "Dish category (e.g. 'Momo', 'Appetizers', 'Drinks')"
},
"isVegetarian": {
"type": "boolean",
"description": "Vegetarian filter"
}
}
}Updates an existing dish on the restaurant menu.
| Argument | Type | Description |
|---|---|---|
| name | string | Dish name |
| price | number | New price in NPR |
| dishId | string | Dish ID |
| isSpicy | boolean | |
| description | string | |
| isAvailable | boolean | Availability toggle |
| isVegetarian | boolean |
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Dish name"
},
"price": {
"type": "number",
"description": "New price in NPR"
},
"dishId": {
"type": "string",
"description": "Dish ID"
},
"isSpicy": {
"type": "boolean"
},
"description": {
"type": "string"
},
"isAvailable": {
"type": "boolean",
"description": "Availability toggle"
},
"isVegetarian": {
"type": "boolean"
}
}
}Queries live restaurant orders (Home Delivery, Pickup, Dine-in) and table reservations.
| Argument | Type | Description |
|---|---|---|
| search | string | |
| status | string | |
| orderType | string |
{
"type": "object",
"properties": {
"search": {
"type": "string"
},
"status": {
"type": "string"
},
"orderType": {
"enum": [
"all",
"delivery",
"pickup",
"dine_in"
],
"type": "string"
}
}
}Updates lifecycle status and estimated prep/delivery time for a restaurant order.
| Argument | Type | Description |
|---|---|---|
| status* | string | |
| orderId* | string | Order ID (e.g. REST-123456-789) |
| estimatedTime | string | Estimated time (e.g. '25 mins') |
{
"type": "object",
"required": [
"orderId",
"status"
],
"properties": {
"status": {
"enum": [
"pending",
"confirmed",
"preparing",
"ready_for_pickup",
"out_for_delivery",
"completed",
"cancelled"
],
"type": "string"
},
"orderId": {
"type": "string",
"description": "Order ID (e.g. REST-123456-789)"
},
"estimatedTime": {
"type": "string",
"description": "Estimated time (e.g. '25 mins')"
}
}
}Adds a dining table to a restaurant site with capacity and QR ordering support.
| Argument | Type | Description |
|---|---|---|
| siteId | string | Optional restaurant Site ID |
| capacity | number | Seating capacity |
| tableNumber* | string | Table number or label |
{
"type": "object",
"required": [
"tableNumber"
],
"properties": {
"siteId": {
"type": "string",
"description": "Optional restaurant Site ID"
},
"capacity": {
"type": "number",
"description": "Seating capacity"
},
"tableNumber": {
"type": "string",
"description": "Table number or label"
}
}
}Lists restaurant dining tables, capacity, QR codes, and reservation/occupancy status.
| Argument | Type | Description |
|---|---|---|
| siteId | string | Optional restaurant Site ID |
{
"type": "object",
"properties": {
"siteId": {
"type": "string",
"description": "Optional restaurant Site ID"
}
}
}Registers a student admission application with grade, parent contact, and student details.
| Argument | Type | Description |
|---|---|---|
| string | Contact email | |
| grade* | string | Grade / Class applying for |
| phone | string | Contact phone number |
| parentName | string | Parent or guardian name |
| studentName* | string | Student full name |
{
"type": "object",
"required": [
"studentName",
"grade"
],
"properties": {
"email": {
"type": "string",
"description": "Contact email"
},
"grade": {
"type": "string",
"description": "Grade / Class applying for"
},
"phone": {
"type": "string",
"description": "Contact phone number"
},
"parentName": {
"type": "string",
"description": "Parent or guardian name"
},
"studentName": {
"type": "string",
"description": "Student full name"
}
}
}Schedules a school event, sports meet, cultural festival, or parents' conference in the school calendar.
| Argument | Type | Description |
|---|---|---|
| title* | string | Event title (e.g., 'Annual Sports Meet 2026') |
| venue | string | Venue (e.g., 'School Grounds / Main Auditorium') |
| siteId | string | Optional site ID. Defaults to active school site. |
| endTime | string | End time (e.g., '16:00') |
| eventDate* | string | Event date in format YYYY-MM-DD |
| startTime | string | Start time (e.g., '09:00') |
| description* | string | Event details and program schedule |
| totalCapacity | number | Maximum participant / attendee capacity |
{
"type": "object",
"required": [
"title",
"description",
"eventDate"
],
"properties": {
"title": {
"type": "string",
"description": "Event title (e.g., 'Annual Sports Meet 2026')"
},
"venue": {
"type": "string",
"description": "Venue (e.g., 'School Grounds / Main Auditorium')"
},
"siteId": {
"type": "string",
"description": "Optional site ID. Defaults to active school site."
},
"endTime": {
"type": "string",
"description": "End time (e.g., '16:00')"
},
"eventDate": {
"type": "string",
"description": "Event date in format YYYY-MM-DD"
},
"startTime": {
"type": "string",
"description": "Start time (e.g., '09:00')"
},
"description": {
"type": "string",
"description": "Event details and program schedule"
},
"totalCapacity": {
"type": "number",
"description": "Maximum participant / attendee capacity"
}
}
}Publishes a school announcement or administrative notice (e.g., Exam Schedule, Holiday Notice, Admission Open, Parent-Teacher Meeting).
| Argument | Type | Description |
|---|---|---|
| type | string | Category of the notice (default 'general') |
| title* | string | Notice headline / title |
| author | string | Publishing authority (e.g., 'Principal Office', 'Exam Department') |
| pinned | boolean | Pin notice to top of the school notice board |
| siteId | string | Optional site ID. Defaults to active school site. |
| urgent | boolean | Flag as urgent emergency alert |
| content* | string | Full text content of the notice or announcement |
| priority | string | Priority level |
{
"type": "object",
"required": [
"title",
"content"
],
"properties": {
"type": {
"enum": [
"academic",
"admission",
"event",
"exam",
"general",
"holiday",
"sports"
],
"type": "string",
"description": "Category of the notice (default 'general')"
},
"title": {
"type": "string",
"description": "Notice headline / title"
},
"author": {
"type": "string",
"description": "Publishing authority (e.g., 'Principal Office', 'Exam Department')"
},
"pinned": {
"type": "boolean",
"description": "Pin notice to top of the school notice board"
},
"siteId": {
"type": "string",
"description": "Optional site ID. Defaults to active school site."
},
"urgent": {
"type": "boolean",
"description": "Flag as urgent emergency alert"
},
"content": {
"type": "string",
"description": "Full text content of the notice or announcement"
},
"priority": {
"enum": [
"low",
"medium",
"high",
"urgent"
],
"type": "string",
"description": "Priority level"
}
}
}Lists admission applications and student enrollment inquiries submitted to the school portal.
| Argument | Type | Description |
|---|---|---|
| limit | number | Max applications to return (default 50) |
| siteId | string | Optional site ID. Defaults to active school site. |
{
"type": "object",
"properties": {
"limit": {
"type": "number",
"description": "Max applications to return (default 50)"
},
"siteId": {
"type": "string",
"description": "Optional site ID. Defaults to active school site."
}
}
}Retrieves recent notices and announcements published on the school's digital noticeboard.
| Argument | Type | Description |
|---|---|---|
| type | string | Filter by category: 'academic', 'admission', 'event', 'exam', 'general', 'holiday', 'sports' |
| limit | number | Max notices to fetch (default 20) |
| siteId | string | Optional site ID. Defaults to active school site. |
{
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Filter by category: 'academic', 'admission', 'event', 'exam', 'general', 'holiday', 'sports'"
},
"limit": {
"type": "number",
"description": "Max notices to fetch (default 20)"
},
"siteId": {
"type": "string",
"description": "Optional site ID. Defaults to active school site."
}
}
}Applies a compatible same-niche design template to an existing site.
| Argument | Type | Description |
|---|---|---|
| siteId | string | Optional Site ID |
| templateId* | string | Target template key within the same niche |
{
"type": "object",
"required": [
"templateId"
],
"properties": {
"siteId": {
"type": "string",
"description": "Optional Site ID"
},
"templateId": {
"type": "string",
"description": "Target template key within the same niche"
}
}
}Retrieves global site-wide header and footer sections, name, and company details.
| Argument | Type | Description |
|---|---|---|
| siteId* | string | MongoDB Site ID |
{
"type": "object",
"required": [
"siteId"
],
"properties": {
"siteId": {
"type": "string",
"description": "MongoDB Site ID"
}
}
}Updates business/storefront profile details (name, phone, email, address, city, hours, VAT/PAN, social links).
| Argument | Type | Description |
|---|---|---|
| name | string | Updated site/business name |
| siteId | string | Optional Site ID |
| companyDetails | object | Updated companyDetails fields (phone, email, address, city, whatsapp, etc.) |
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Updated site/business name"
},
"siteId": {
"type": "string",
"description": "Optional Site ID"
},
"companyDetails": {
"type": "object",
"description": "Updated companyDetails fields (phone, email, address, city, whatsapp, etc.)"
}
}
}Targeted helper to update site footer (company description, address, phone, email, links, copyright) without touching other layout sections.
| Argument | Type | Description |
|---|---|---|
| string | Contact email address | |
| links | array | Footer links columns or array |
| phone | string | Contact phone number |
| footer | array | Complete footer sections array (optional) |
| siteId* | string | MongoDB Site ID |
| address | string | Physical office / branch address |
| copyright | string | Custom copyright statement |
| companyName | string | Company / business display name |
| description | string | Short business description or mission |
{
"type": "object",
"required": [
"siteId"
],
"properties": {
"email": {
"type": "string",
"description": "Contact email address"
},
"links": {
"type": "array",
"items": {
"type": "object"
},
"description": "Footer links columns or array"
},
"phone": {
"type": "string",
"description": "Contact phone number"
},
"footer": {
"type": "array",
"items": {
"type": "object"
},
"description": "Complete footer sections array (optional)"
},
"siteId": {
"type": "string",
"description": "MongoDB Site ID"
},
"address": {
"type": "string",
"description": "Physical office / branch address"
},
"copyright": {
"type": "string",
"description": "Custom copyright statement"
},
"companyName": {
"type": "string",
"description": "Company / business display name"
},
"description": {
"type": "string",
"description": "Short business description or mission"
}
}
}Targeted helper to update site header/navbar (logo, navigation links, CTA button, phone, email) without touching the rest of the site.
| Argument | Type | Description |
|---|---|---|
| logo | object | Logo configuration object with url, alt, text |
| string | Top bar or contact email | |
| phone | string | Top bar or contact phone number |
| header | array | Complete header sections array (optional) |
| siteId* | string | MongoDB Site ID |
| addLink | object | Quick link to append to existing navbar, e.g. { label: 'Blog', href: '/blog' } |
| navLinks | array | Array of navigation links [{ label: string, href: string }] |
| ctaButton | object | CTA button configuration { text: string, href: string } |
| removeLink | string | Label or href of link to remove from navbar (e.g. '/privacy' or 'Terms') |
{
"type": "object",
"required": [
"siteId"
],
"properties": {
"logo": {
"type": "object",
"description": "Logo configuration object with url, alt, text"
},
"email": {
"type": "string",
"description": "Top bar or contact email"
},
"phone": {
"type": "string",
"description": "Top bar or contact phone number"
},
"header": {
"type": "array",
"items": {
"type": "object"
},
"description": "Complete header sections array (optional)"
},
"siteId": {
"type": "string",
"description": "MongoDB Site ID"
},
"addLink": {
"type": "object",
"properties": {
"href": {
"type": "string"
},
"label": {
"type": "string"
}
},
"description": "Quick link to append to existing navbar, e.g. { label: 'Blog', href: '/blog' }"
},
"navLinks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"href": {
"type": "string"
},
"label": {
"type": "string"
}
}
},
"description": "Array of navigation links [{ label: string, href: string }]"
},
"ctaButton": {
"type": "object",
"description": "CTA button configuration { text: string, href: string }"
},
"removeLink": {
"type": "string",
"description": "Label or href of link to remove from navbar (e.g. '/privacy' or 'Terms')"
}
}
}Updates global site-wide header and footer sections (navigation menu, logo, footer links, copyright) rendered across all pages.
| Argument | Type | Description |
|---|---|---|
| name | string | Updated site name |
| footer | array | Array of section objects for global footer |
| header | array | Array of section objects for global header/navbar |
| siteId* | string | MongoDB Site ID |
| companyDetails | object | Global company contact details |
{
"type": "object",
"required": [
"siteId"
],
"properties": {
"name": {
"type": "string",
"description": "Updated site name"
},
"footer": {
"type": "array",
"items": {
"type": "object"
},
"description": "Array of section objects for global footer"
},
"header": {
"type": "array",
"items": {
"type": "object"
},
"description": "Array of section objects for global header/navbar"
},
"siteId": {
"type": "string",
"description": "MongoDB Site ID"
},
"companyDetails": {
"type": "object",
"description": "Global company contact details"
}
}
}Updates the visual theme and brand design tokens across the entire website (header, footer, homepage, all content pages, and e-commerce product detail pages). Supports Basic Mode (all 16 curated themes: 'light', 'emerald', 'modern', 'warm', 'luxury', 'ocean', 'crimson', 'minimal', 'dark', 'forest', 'premium', 'bright', 'vibrant', 'colorful', 'bold', 'elegant', plus Light/Dark mode switch and primary/accent brand colors) and Advanced Mode (granular overrides for buttonTextColor, backgroundColor, cardColor, textColor, mutedTextColor, borderColor, and fontFamily). HAMROLINK HALLMARK UI/UX & ANTI-SLOP GUIDELINES: 1) Strict Contrast (WCAG AA 4.5:1+): Never pair dark textColor with dark backgroundColor/cardColor or light textColor with light surfaces. When switching between Light and Dark mode, prefer setting resetAdvancedOverrides=true unless providing a complete, high-contrast custom surface+text palette. 2) 60-30-10 Color Rule: 60% clean page background, 30% subtle card surface & border, 10% high-intent primary CTA button & accent badge. Avoid clashing neon rainbow colors.
| Argument | Type | Description |
|---|---|---|
| scope | string | Scope of application ('site', 'all_pages', 'header_only', 'footer_only'). Defaults to 'site' (full site sync). |
| theme | string | Curated theme preset ('light', 'emerald', 'modern', 'warm', 'luxury', 'ocean', 'crimson', 'minimal', 'dark', 'forest', 'premium', 'bright', 'vibrant', 'colorful', 'bold', 'elegant'). |
| siteId | string | MongoDB Site ID (optional if user has only one site) |
| cardColor | string | Advanced: Card, product box & container surface hex color (--card, e.g. '#f8fafc' or '#111827') |
| textColor | string | Advanced: Main heading & body copy hex color (--foreground, e.g. '#0f172a' or '#f8fafc'). Must have >= 4.5:1 contrast against backgroundColor and cardColor. |
| themeMode | string | Alias for theme name (e.g. 'warm', 'emerald', 'luxury', 'dark', 'light'). |
| fontFamily | string | Global typography font family (e.g. "'Inter', sans-serif", "'Plus Jakarta Sans', sans-serif", "'Playfair Display', serif", "'Lora', serif", "'Space Grotesk', sans-serif", "'Outfit', sans-serif") |
| isDarkMode | boolean | Global Light/Dark contrast switch (true = Dark Mode surfaces, false = Light Mode surfaces). |
| accentColor | string | Accent / badge highlight hex color override (--accent, e.g. '#f59e0b', '#10b981') |
| borderColor | string | Advanced: Card outline & section divider hex color (--border, e.g. '#e2e8f0' or '#1f2937') |
| primaryColor | string | Primary brand / button background hex color override (--primary, e.g. '#ea580c', '#059669') |
| mutedTextColor | string | Advanced: Subtitle, caption & muted description hex color (--muted-foreground, e.g. '#475569' or '#94a3b8') |
| secondaryColor | string | Optional secondary brand hex color override |
| backgroundColor | string | Advanced: Page canvas background hex color (--background, e.g. '#ffffff' or '#090d16') |
| buttonTextColor | string | Advanced: Text hex color inside primary buttons (--primary-foreground, e.g. '#ffffff') |
| resetAdvancedOverrides | boolean | Set true to reset custom backgroundColor, cardColor, textColor, mutedTextColor, and borderColor back to the active theme's curated defaults. |
{
"type": "object",
"properties": {
"scope": {
"type": "string",
"description": "Scope of application ('site', 'all_pages', 'header_only', 'footer_only'). Defaults to 'site' (full site sync)."
},
"theme": {
"enum": [
"light",
"emerald",
"modern",
"warm",
"luxury",
"ocean",
"crimson",
"minimal",
"dark",
"forest",
"premium",
"bright",
"vibrant",
"colorful",
"bold",
"elegant"
],
"type": "string",
"description": "Curated theme preset ('light', 'emerald', 'modern', 'warm', 'luxury', 'ocean', 'crimson', 'minimal', 'dark', 'forest', 'premium', 'bright', 'vibrant', 'colorful', 'bold', 'elegant')."
},
"siteId": {
"type": "string",
"description": "MongoDB Site ID (optional if user has only one site)"
},
"cardColor": {
"type": "string",
"description": "Advanced: Card, product box & container surface hex color (--card, e.g. '#f8fafc' or '#111827')"
},
"textColor": {
"type": "string",
"description": "Advanced: Main heading & body copy hex color (--foreground, e.g. '#0f172a' or '#f8fafc'). Must have >= 4.5:1 contrast against backgroundColor and cardColor."
},
"themeMode": {
"type": "string",
"description": "Alias for theme name (e.g. 'warm', 'emerald', 'luxury', 'dark', 'light')."
},
"fontFamily": {
"type": "string",
"description": "Global typography font family (e.g. \"'Inter', sans-serif\", \"'Plus Jakarta Sans', sans-serif\", \"'Playfair Display', serif\", \"'Lora', serif\", \"'Space Grotesk', sans-serif\", \"'Outfit', sans-serif\")"
},
"isDarkMode": {
"type": "boolean",
"description": "Global Light/Dark contrast switch (true = Dark Mode surfaces, false = Light Mode surfaces)."
},
"accentColor": {
"type": "string",
"description": "Accent / badge highlight hex color override (--accent, e.g. '#f59e0b', '#10b981')"
},
"borderColor": {
"type": "string",
"description": "Advanced: Card outline & section divider hex color (--border, e.g. '#e2e8f0' or '#1f2937')"
},
"primaryColor": {
"type": "string",
"description": "Primary brand / button background hex color override (--primary, e.g. '#ea580c', '#059669')"
},
"mutedTextColor": {
"type": "string",
"description": "Advanced: Subtitle, caption & muted description hex color (--muted-foreground, e.g. '#475569' or '#94a3b8')"
},
"secondaryColor": {
"type": "string",
"description": "Optional secondary brand hex color override"
},
"backgroundColor": {
"type": "string",
"description": "Advanced: Page canvas background hex color (--background, e.g. '#ffffff' or '#090d16')"
},
"buttonTextColor": {
"type": "string",
"description": "Advanced: Text hex color inside primary buttons (--primary-foreground, e.g. '#ffffff')"
},
"resetAdvancedOverrides": {
"type": "boolean",
"description": "Set true to reset custom backgroundColor, cardColor, textColor, mutedTextColor, and borderColor back to the active theme's curated defaults."
}
}
}Call this tool to add or remove links in the top navigation header bar (e.g. adding /services or removing /terms).
| Argument | Type | Description |
|---|---|---|
| href | string | Target URL (e.g. '/services', 'https://...', or '#' for non-clickable) |
| label* | string | Link display text (e.g. 'Services', 'Contact') |
| action* | string | Whether to add or remove the link |
| siteId | string | Optional Site ID. If omitted, applies to the user's active website. |
{
"type": "object",
"required": [
"action",
"label"
],
"properties": {
"href": {
"type": "string",
"description": "Target URL (e.g. '/services', 'https://...', or '#' for non-clickable)"
},
"label": {
"type": "string",
"description": "Link display text (e.g. 'Services', 'Contact')"
},
"action": {
"enum": [
"add",
"remove"
],
"type": "string",
"description": "Whether to add or remove the link"
},
"siteId": {
"type": "string",
"description": "Optional Site ID. If omitted, applies to the user's active website."
}
}
}ADVANCED (developers only — do NOT use for normal site creation). Dry-run compile of a raw SiteCreationPackage without saving.
| Argument | Type | Description |
|---|---|---|
| sitePackage* | object | The complete SiteCreationPackage JSON object |
{
"type": "object",
"required": [
"sitePackage"
],
"properties": {
"sitePackage": {
"type": "object",
"description": "The complete SiteCreationPackage JSON object"
}
}
}STEP 2 of website creation. Builds and publishes the real site (template + AI-written content from the user's details). ONLY call after website.preflight succeeded AND the user explicitly confirmed. Pass the proposalId returned by website.preflight, the same details, and confirmed=true. If the user says 'just create it' or 'とりあえず作成して' after preflight, that counts as confirmation — call this immediately instead of replying with text.
| Argument | Type | Description |
|---|---|---|
| name | string | Person or business name shown on the site (e.g. 'Renuka Tamang', 'Kathmandu Coffee'). Ask the user. |
| string | Public contact email. Ask the user. | |
| phone | string | Public contact phone / WhatsApp number. Ask the user. |
| location | string | City / country / address (e.g. 'Tokyo, Japan', 'Kathmandu'). |
| confirmed* | boolean | Must be true — the user confirmed the preflight preview. |
| subDomain | string | Subdomain the USER chose (lowercase, letters/numbers/hyphens, e.g. 'renuka-tamang' -> renuka-tamang.hamrolink.com). NEVER invent this — ask the user. |
| proposalId* | string | The proposalId returned by website.preflight. REQUIRED to bind creation to the approved proposal. |
| templateId | string | Template key from website.list_templates (e.g. 'portfolio-minimal') OR a category: 'portfolio', 'restaurant', 'consultancy', 'school', 'ecommerce', 'business', 'blog'. |
| description | string | The user's bio, about text, or business description IN THEIR OWN WORDS. Pass the full text the user gave you — it is used to write all site content. |
| specialties | array | Optional key skills, services, or products (3-6 items). |
{
"type": "object",
"required": [
"proposalId",
"confirmed"
],
"properties": {
"name": {
"type": "string",
"description": "Person or business name shown on the site (e.g. 'Renuka Tamang', 'Kathmandu Coffee'). Ask the user."
},
"email": {
"type": "string",
"description": "Public contact email. Ask the user."
},
"phone": {
"type": "string",
"description": "Public contact phone / WhatsApp number. Ask the user."
},
"location": {
"type": "string",
"description": "City / country / address (e.g. 'Tokyo, Japan', 'Kathmandu')."
},
"confirmed": {
"type": "boolean",
"description": "Must be true — the user confirmed the preflight preview."
},
"subDomain": {
"type": "string",
"description": "Subdomain the USER chose (lowercase, letters/numbers/hyphens, e.g. 'renuka-tamang' -> renuka-tamang.hamrolink.com). NEVER invent this — ask the user."
},
"proposalId": {
"type": "string",
"description": "The proposalId returned by website.preflight. REQUIRED to bind creation to the approved proposal."
},
"templateId": {
"type": "string",
"description": "Template key from website.list_templates (e.g. 'portfolio-minimal') OR a category: 'portfolio', 'restaurant', 'consultancy', 'school', 'ecommerce', 'business', 'blog'."
},
"description": {
"type": "string",
"description": "The user's bio, about text, or business description IN THEIR OWN WORDS. Pass the full text the user gave you — it is used to write all site content."
},
"specialties": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional key skills, services, or products (3-6 items)."
}
}
}Soft-deletes a tenant website.
| Argument | Type | Description |
|---|---|---|
| siteId* | string | MongoDB Site ID |
{
"type": "object",
"required": [
"siteId"
],
"properties": {
"siteId": {
"type": "string",
"description": "MongoDB Site ID"
}
}
}Lists all active tenant websites owned by the user account.
No arguments.
{
"type": "object",
"properties": {}
}Lists available HamroLink website templates with visual preview thumbnails for a category. Always display the returned template preview thumbnails in your chat response using Markdown: '' so the user sees a visual preview of each design before choosing.
| Argument | Type | Description |
|---|---|---|
| limit | number | Max templates to return (1-4, default 4). |
| query | string | Optional keyword, sub-niche, or style to search (e.g. 'clothing', 'fashion', 'electronics', 'grocery', 'modern', 'nexus', 'dark', 'minimal', 'flagship'). |
| offset | number | Pagination offset. When the user asks for more, other, or different templates, increment this offset by the limit (e.g. 0, 4, 8, 12, 16...) so you never repeat the same templates. |
| category | string | Category filter: 'portfolio', 'restaurant', 'consultancy', 'school', 'ecommerce', 'business', 'blog', or 'all'. |
{
"type": "object",
"properties": {
"limit": {
"type": "number",
"description": "Max templates to return (1-4, default 4)."
},
"query": {
"type": "string",
"description": "Optional keyword, sub-niche, or style to search (e.g. 'clothing', 'fashion', 'electronics', 'grocery', 'modern', 'nexus', 'dark', 'minimal', 'flagship')."
},
"offset": {
"type": "number",
"description": "Pagination offset. When the user asks for more, other, or different templates, increment this offset by the limit (e.g. 0, 4, 8, 12, 16...) so you never repeat the same templates."
},
"category": {
"type": "string",
"description": "Category filter: 'portfolio', 'restaurant', 'consultancy', 'school', 'ecommerce', 'business', 'blog', or 'all'."
}
}
}ADVANCED (developers only — do NOT use for normal site creation; use website.preflight then website.create). Saves a hand-authored SiteCreationPackage JSON.
| Argument | Type | Description |
|---|---|---|
| sitePackage* | object | The complete SiteCreationPackage JSON object |
{
"type": "object",
"required": [
"sitePackage"
],
"properties": {
"sitePackage": {
"type": "object",
"description": "The complete SiteCreationPackage JSON object"
}
}
}STEP 1 of website creation (REQUIRED before website.create). Call this whenever the user wants to build/create a website, portfolio, store, school, or restaurant site. Before calling, collect from the user: name, subDomain, phone, email, and their bio/description (location optional). If any of name/subDomain/phone/email is missing, ASK the user in ONE short message for all missing items — do not ask one at a time and do not invent values. This validates the subdomain, checks plan limits, and returns a template preview + businessDetails. Always show that preview to the user including the visual thumbnail '' and ask them to confirm. Creates nothing.
| Argument | Type | Description |
|---|---|---|
| name* | string | Person or business name shown on the site (e.g. 'Renuka Tamang', 'Kathmandu Coffee'). Ask the user. |
| string | Public contact email. Ask the user. | |
| phone | string | Public contact phone / WhatsApp number. Ask the user. |
| location | string | City / country / address (e.g. 'Tokyo, Japan', 'Kathmandu'). |
| subDomain* | string | Subdomain the USER chose (lowercase, letters/numbers/hyphens, e.g. 'renuka-tamang' -> renuka-tamang.hamrolink.com). NEVER invent this — ask the user. |
| templateId* | string | Template key from website.list_templates (e.g. 'portfolio-minimal') OR a category: 'portfolio', 'restaurant', 'consultancy', 'school', 'ecommerce', 'business', 'blog'. |
| description | string | The user's bio, about text, or business description IN THEIR OWN WORDS. Pass the full text the user gave you — it is used to write all site content. |
| specialties | array | Optional key skills, services, or products (3-6 items). |
{
"type": "object",
"required": [
"name",
"subDomain",
"templateId"
],
"properties": {
"name": {
"type": "string",
"description": "Person or business name shown on the site (e.g. 'Renuka Tamang', 'Kathmandu Coffee'). Ask the user."
},
"email": {
"type": "string",
"description": "Public contact email. Ask the user."
},
"phone": {
"type": "string",
"description": "Public contact phone / WhatsApp number. Ask the user."
},
"location": {
"type": "string",
"description": "City / country / address (e.g. 'Tokyo, Japan', 'Kathmandu')."
},
"subDomain": {
"type": "string",
"description": "Subdomain the USER chose (lowercase, letters/numbers/hyphens, e.g. 'renuka-tamang' -> renuka-tamang.hamrolink.com). NEVER invent this — ask the user."
},
"templateId": {
"type": "string",
"description": "Template key from website.list_templates (e.g. 'portfolio-minimal') OR a category: 'portfolio', 'restaurant', 'consultancy', 'school', 'ecommerce', 'business', 'blog'."
},
"description": {
"type": "string",
"description": "The user's bio, about text, or business description IN THEIR OWN WORDS. Pass the full text the user gave you — it is used to write all site content."
},
"specialties": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional key skills, services, or products (3-6 items)."
}
}
}Publishes all draft pages for a site and re-indexes businessState summary for visitor AI Chatbot RAG.
| Argument | Type | Description |
|---|---|---|
| siteId* | string | MongoDB Site ID |
{
"type": "object",
"required": [
"siteId"
],
"properties": {
"siteId": {
"type": "string",
"description": "MongoDB Site ID"
}
}
}ADVANCED (developers only — do NOT use for normal site creation; use website.preflight then website.create). Validates a raw SiteCreationPackage JSON.
| Argument | Type | Description |
|---|---|---|
| sitePackage* | object | The complete SiteCreationPackage JSON object |
{
"type": "object",
"required": [
"sitePackage"
],
"properties": {
"sitePackage": {
"type": "object",
"description": "The complete SiteCreationPackage JSON object"
}
}
}We read every tool's name, description and inputs the way the model will, looking for instructions hidden from you. A clean result means no warning signs, not a guarantee. Scanned Dec 3, 2026.