MarginEdge MCP by usefulapi

Read restaurant orders, products, recipes, inventories and profit and loss reports in MarginEdge.

Should I use this

Quality & Safety

A
Description quality
100%
Schema completeness
85%
Naming quality
72%
Poisoning risk
100%
Permission match
100%
Protocol compliance
100%

Findings (11)

  • LOWTool 'marginedge_list_restaurant_units' name length outside 3-30 rangein marginedge_list_restaurant_units
  • LOWTool 'marginedge_list_restaurant_unit_groups' name length outside 3-30 rangein marginedge_list_restaurant_unit_groups
  • LOWTool 'marginedge_list_restaurant_unit_group_categories' name length outside 3-30 rangein marginedge_list_restaurant_unit_group_categories
  • LOWTool 'marginedge_get_product_price_history' name length outside 3-30 rangein marginedge_get_product_price_history
  • LOWTool 'marginedge_list_vendor_items_by_product' name length outside 3-30 rangein marginedge_list_vendor_items_by_product
  • LOWTool 'marginedge_list_vendor_item_packaging' name length outside 3-30 rangein marginedge_list_vendor_item_packaging
  • LOWTool 'marginedge_list_inventory_section_items' name length outside 3-30 rangein marginedge_list_inventory_section_items
  • LOWTool 'marginedge_list_recipe_ingredients' name length outside 3-30 rangein marginedge_list_recipe_ingredients
  • LOWTool 'marginedge_list_recipe_conversions' name length outside 3-30 rangein marginedge_list_recipe_conversions
  • LOWTool 'marginedge_list_recipe_cost_histories' name length outside 3-30 rangein marginedge_list_recipe_cost_histories

Based on automated analysis of tool definitions and protocol compliance.

Context Cost

~6,069Tokens (tool definitions)
~1.9 KBTypical response size
Significant attention impact (4.74% of 128k context)

This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.

Install

One-Click Install

Add this to your `claude_desktop_config.json` file:

{
  "mcpServers": {
    "marginedge": {
      "url": "https://marginedge.usefulapi.io/mcp"
    }
  }
}

Remote endpoints

https://marginedge.usefulapi.io/mcpstreamable-http

What it can do

Tool inventory

Tools (26)

🟢 Read-only🟡 Write🔴 Delete⚪ Unknown
🟢marginedge_list_restaurant_units

List the restaurant units (name and id) this API key can access. Call this first: most other tools need a restaurant_unit_id from it. MarginEdge API: GET /restaurantUnits.

Input Schema

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢marginedge_list_restaurant_unit_groups(concept_id, company_id, next_page)

List paginated restaurant unit groups this key can access. MarginEdge API: GET /restaurantUnits/groups.

Input Schema

{
  "type": "object",
  "properties": {
    "concept_id": {
      "description": "Filter by concept id.",
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ]
    },
    "company_id": {
      "description": "Filter by company id.",
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ]
    },
    "next_page": {
      "description": "Cursor: pass the `nextPage` of the previous response, or omit for the first page.",
      "type": "string"
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢marginedge_list_restaurant_unit_group_categories(concept_id, company_id, next_page)

List paginated restaurant unit group categories this key can access. MarginEdge API: GET /restaurantUnits/groupCategories.

Input Schema

{
  "type": "object",
  "properties": {
    "concept_id": {
      "description": "Filter by concept id.",
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ]
    },
    "company_id": {
      "description": "Filter by company id.",
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ]
    },
    "next_page": {
      "description": "Cursor: pass the `nextPage` of the previous response, or omit for the first page.",
      "type": "string"
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢marginedge_list_orders(restaurant_unit_id, start_date, end_date, invoice_start_date, invoice_end_date, ...)

List key fields of orders for one restaurant. Filter by entry date (start_date/end_date), invoice date (invoice_start_date/invoice_end_date), or both, and optionally by order_status. Paginated. MarginEdge API: GET /orders.

Input Schema

{
  "type": "object",
  "properties": {
    "restaurant_unit_id": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ],
      "description": "Restaurant unit id (the `id` from marginedge_list_restaurant_units)."
    },
    "start_date": {
      "description": "Entry date range start, YYYY-MM-DD, inclusive.",
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "end_date": {
      "description": "Entry date range end, YYYY-MM-DD, inclusive.",
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "invoice_start_date": {
      "description": "Invoice date range start, YYYY-MM-DD.",
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "invoice_end_date": {
      "description": "Invoice date range end, YYYY-MM-DD.",
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "order_status": {
      "description": "Invoice processing stage filter.",
      "type": "string",
      "enum": [
        "PREPROCESSING",
        "EDI_PENDING",
        "IMAGE_PENDING",
        "INITIAL_REVIEW",
        "RECONCILIATION",
        "FINAL_REVIEW",
        "AM_REVIEW",
        "PENDING_APPROVAL",
        "CLOSED"
      ]
    },
    "next_page": {
      "description": "Cursor: pass the `nextPage` of the previous response, or omit for the first page.",
      "type": "string"
    }
  },
  "required": [
    "restaurant_unit_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢marginedge_get_order(restaurant_unit_id, order_id)

Get the full detail of one order. MarginEdge API: GET /orders/{orderId}.

Input Schema

{
  "type": "object",
  "properties": {
    "restaurant_unit_id": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ],
      "description": "Restaurant unit id (the `id` from marginedge_list_restaurant_units)."
    },
    "order_id": {
      "type": "string",
      "minLength": 1,
      "description": "Order id (from marginedge_list_orders)."
    }
  },
  "required": [
    "restaurant_unit_id",
    "order_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢marginedge_list_products(restaurant_unit_id, include_barcodes, barcode, next_page)

List paginated products for one restaurant. Optionally include barcodes, or return only the products one barcode maps to. MarginEdge API: GET /products.

Input Schema

{
  "type": "object",
  "properties": {
    "restaurant_unit_id": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ],
      "description": "Restaurant unit id (the `id` from marginedge_list_restaurant_units)."
    },
    "include_barcodes": {
      "description": "true = include each product's barcodes.",
      "type": "boolean"
    },
    "barcode": {
      "description": "Only products mapped to this barcode.",
      "type": "string"
    },
    "next_page": {
      "description": "Cursor: pass the `nextPage` of the previous response, or omit for the first page.",
      "type": "string"
    }
  },
  "required": [
    "restaurant_unit_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢marginedge_get_product_units(restaurant_unit_id, company_concept_product_id)

List the units of one product (by company_concept_product_id) for one restaurant. MarginEdge API: GET /products/{companyConceptProductId}/units.

Input Schema

{
  "type": "object",
  "properties": {
    "restaurant_unit_id": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ],
      "description": "Restaurant unit id (the `id` from marginedge_list_restaurant_units)."
    },
    "company_concept_product_id": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ],
      "description": "Product id (from marginedge_list_products)."
    }
  },
  "required": [
    "restaurant_unit_id",
    "company_concept_product_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢marginedge_get_product_price_history(restaurant_unit_id, company_concept_product_id, start_date, end_date, next_page)

Get the price history of one product for one restaurant, optionally within a date range. Paginated. MarginEdge API: GET /products/{companyConceptProductId}/priceHistory.

Input Schema

{
  "type": "object",
  "properties": {
    "restaurant_unit_id": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ],
      "description": "Restaurant unit id (the `id` from marginedge_list_restaurant_units)."
    },
    "company_concept_product_id": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ],
      "description": "Product id (from marginedge_list_products)."
    },
    "start_date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "end_date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "next_page": {
      "description": "Cursor: pass the `nextPage` of the previous response, or omit for the first page.",
      "type": "string"
    }
  },
  "required": [
    "restaurant_unit_id",
    "company_concept_product_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢marginedge_list_vendor_items_by_product(restaurant_unit_id, company_concept_product_id, next_page)

List the vendor items mapped to one product for one restaurant. MarginEdge API: GET /vendorItemsByProduct.

Input Schema

{
  "type": "object",
  "properties": {
    "restaurant_unit_id": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ],
      "description": "Restaurant unit id (the `id` from marginedge_list_restaurant_units)."
    },
    "company_concept_product_id": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ],
      "description": "Product id (from marginedge_list_products)."
    },
    "next_page": {
      "description": "Cursor: pass the `nextPage` of the previous response, or omit for the first page.",
      "type": "string"
    }
  },
  "required": [
    "restaurant_unit_id",
    "company_concept_product_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢marginedge_list_categories(restaurant_unit_id, next_page)

List paginated product categories for one restaurant. MarginEdge API: GET /categories.

Input Schema

{
  "type": "object",
  "properties": {
    "restaurant_unit_id": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ],
      "description": "Restaurant unit id (the `id` from marginedge_list_restaurant_units)."
    },
    "next_page": {
      "description": "Cursor: pass the `nextPage` of the previous response, or omit for the first page.",
      "type": "string"
    }
  },
  "required": [
    "restaurant_unit_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢marginedge_list_vendors(restaurant_unit_id, next_page)

List paginated vendors used by one restaurant. MarginEdge API: GET /vendors.

Input Schema

{
  "type": "object",
  "properties": {
    "restaurant_unit_id": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ],
      "description": "Restaurant unit id (the `id` from marginedge_list_restaurant_units)."
    },
    "next_page": {
      "description": "Cursor: pass the `nextPage` of the previous response, or omit for the first page.",
      "type": "string"
    }
  },
  "required": [
    "restaurant_unit_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢marginedge_list_vendor_items(restaurant_unit_id, vendor_id, next_page)

List paginated vendor items of one vendor for one restaurant. MarginEdge API: GET /vendors/{vendorId}/vendorItems.

Input Schema

{
  "type": "object",
  "properties": {
    "restaurant_unit_id": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ],
      "description": "Restaurant unit id (the `id` from marginedge_list_restaurant_units)."
    },
    "vendor_id": {
      "type": "string",
      "minLength": 1,
      "description": "Vendor id (from marginedge_list_vendors)."
    },
    "next_page": {
      "description": "Cursor: pass the `nextPage` of the previous response, or omit for the first page.",
      "type": "string"
    }
  },
  "required": [
    "restaurant_unit_id",
    "vendor_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢marginedge_list_vendor_item_packaging(restaurant_unit_id, vendor_id, vendor_item_code, next_page)

List the packaging options of one vendor item. MarginEdge API: GET /vendors/{vendorId}/vendorItems/{vendorItemCode}/packaging.

Input Schema

{
  "type": "object",
  "properties": {
    "restaurant_unit_id": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ],
      "description": "Restaurant unit id (the `id` from marginedge_list_restaurant_units)."
    },
    "vendor_id": {
      "type": "string",
      "minLength": 1,
      "description": "Vendor id (from marginedge_list_vendors)."
    },
    "vendor_item_code": {
      "type": "string",
      "minLength": 1,
      "description": "Vendor item code (from marginedge_list_vendor_items)."
    },
    "next_page": {
      "description": "Cursor: pass the `nextPage` of the previous response, or omit for the first page.",
      "type": "string"
    }
  },
  "required": [
    "restaurant_unit_id",
    "vendor_id",
    "vendor_item_code"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢marginedge_list_count_sheets(restaurant_unit_id, next_page)

List paginated inventory count sheets for one restaurant. MarginEdge API: GET /countsheets.

Input Schema

{
  "type": "object",
  "properties": {
    "restaurant_unit_id": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ],
      "description": "Restaurant unit id (the `id` from marginedge_list_restaurant_units)."
    },
    "next_page": {
      "description": "Cursor: pass the `nextPage` of the previous response, or omit for the first page.",
      "type": "string"
    }
  },
  "required": [
    "restaurant_unit_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢marginedge_get_count_sheet(restaurant_unit_id, count_sheet_id)

Get the detail of one count sheet. MarginEdge API: GET /countsheets/{id}.

Input Schema

{
  "type": "object",
  "properties": {
    "restaurant_unit_id": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ],
      "description": "Restaurant unit id (the `id` from marginedge_list_restaurant_units)."
    },
    "count_sheet_id": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ],
      "description": "Count sheet id (from marginedge_list_count_sheets)."
    }
  },
  "required": [
    "restaurant_unit_id",
    "count_sheet_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢marginedge_list_inventories(restaurant_unit_id, start_date, end_date, status, count_sheet_id, ...)

List paginated inventories for one restaurant, optionally filtered by date range, status or count sheet. MarginEdge API: GET /inventories.

Input Schema

{
  "type": "object",
  "properties": {
    "restaurant_unit_id": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ],
      "description": "Restaurant unit id (the `id` from marginedge_list_restaurant_units)."
    },
    "start_date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "end_date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "status": {
      "description": "Inventory status filter.",
      "type": "string"
    },
    "count_sheet_id": {
      "description": "Only inventories of this count sheet.",
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ]
    },
    "next_page": {
      "description": "Cursor: pass the `nextPage` of the previous response, or omit for the first page.",
      "type": "string"
    }
  },
  "required": [
    "restaurant_unit_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢marginedge_get_inventory(restaurant_unit_id, inventory_id, next_page)

Get the detail of one inventory. MarginEdge API: GET /inventories/{id}.

Input Schema

{
  "type": "object",
  "properties": {
    "restaurant_unit_id": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ],
      "description": "Restaurant unit id (the `id` from marginedge_list_restaurant_units)."
    },
    "inventory_id": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ],
      "description": "Inventory id (from marginedge_list_inventories)."
    },
    "next_page": {
      "description": "Cursor: pass the `nextPage` of the previous response, or omit for the first page.",
      "type": "string"
    }
  },
  "required": [
    "restaurant_unit_id",
    "inventory_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢marginedge_list_inventory_section_items(restaurant_unit_id, inventory_id, section_id, next_page)

List paginated items of one section of an inventory. MarginEdge API: GET /inventories/{id}/sections/{sectionId}/items.

Input Schema

{
  "type": "object",
  "properties": {
    "restaurant_unit_id": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ],
      "description": "Restaurant unit id (the `id` from marginedge_list_restaurant_units)."
    },
    "inventory_id": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ],
      "description": "Inventory id (from marginedge_list_inventories)."
    },
    "section_id": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ],
      "description": "Section id (from marginedge_get_inventory)."
    },
    "next_page": {
      "description": "Cursor: pass the `nextPage` of the previous response, or omit for the first page.",
      "type": "string"
    }
  },
  "required": [
    "restaurant_unit_id",
    "inventory_id",
    "section_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢marginedge_list_recipe_types(restaurant_unit_id)

List the recipe types of one restaurant. MarginEdge API: GET /recipeTypes.

Input Schema

{
  "type": "object",
  "properties": {
    "restaurant_unit_id": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ],
      "description": "Restaurant unit id (the `id` from marginedge_list_restaurant_units)."
    }
  },
  "required": [
    "restaurant_unit_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢marginedge_list_recipes(restaurant_unit_id, recipe_id, is_inactive, is_plate_cost_out_of_bounds, next_page)

List paginated recipes of one restaurant. Filter by recipe id, inactive state, or plate cost out of bounds. With is_inactive or is_plate_cost_out_of_bounds, next_page can be null before all matches are returned: page without those filters and apply them to the results if you need every match. MarginEdge API: GET /recipes.

Input Schema

{
  "type": "object",
  "properties": {
    "restaurant_unit_id": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ],
      "description": "Restaurant unit id (the `id` from marginedge_list_restaurant_units)."
    },
    "recipe_id": {
      "description": "Only this recipe.",
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ]
    },
    "is_inactive": {
      "description": "true = only inactive recipes.",
      "type": "boolean"
    },
    "is_plate_cost_out_of_bounds": {
      "description": "true = only recipes with a plate cost out of bounds.",
      "type": "boolean"
    },
    "next_page": {
      "description": "Cursor: pass the `nextPage` of the previous response, or omit for the first page.",
      "type": "string"
    }
  },
  "required": [
    "restaurant_unit_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢marginedge_list_recipe_ingredients(restaurant_unit_id, recipe_id, next_page)

List paginated recipe ingredients, optionally for one recipe. MarginEdge API: GET /recipeIngredients.

Input Schema

{
  "type": "object",
  "properties": {
    "restaurant_unit_id": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ],
      "description": "Restaurant unit id (the `id` from marginedge_list_restaurant_units)."
    },
    "recipe_id": {
      "description": "Only ingredients of this recipe.",
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ]
    },
    "next_page": {
      "description": "Cursor: pass the `nextPage` of the previous response, or omit for the first page.",
      "type": "string"
    }
  },
  "required": [
    "restaurant_unit_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢marginedge_list_recipe_conversions(restaurant_unit_id, recipe_id, next_page)

List paginated recipe unit conversions, optionally for one recipe. MarginEdge API: GET /recipeConversions.

Input Schema

{
  "type": "object",
  "properties": {
    "restaurant_unit_id": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ],
      "description": "Restaurant unit id (the `id` from marginedge_list_restaurant_units)."
    },
    "recipe_id": {
      "description": "Only conversions of this recipe.",
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ]
    },
    "next_page": {
      "description": "Cursor: pass the `nextPage` of the previous response, or omit for the first page.",
      "type": "string"
    }
  },
  "required": [
    "restaurant_unit_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢marginedge_list_recipe_cost_histories(restaurant_unit_id, recipe_id, start_date, end_date, next_page)

List paginated recipe cost history, optionally for one recipe and a date range. MarginEdge API: GET /recipeCostHistories.

Input Schema

{
  "type": "object",
  "properties": {
    "restaurant_unit_id": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ],
      "description": "Restaurant unit id (the `id` from marginedge_list_restaurant_units)."
    },
    "recipe_id": {
      "description": "Only history of this recipe.",
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ]
    },
    "start_date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "end_date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "next_page": {
      "description": "Cursor: pass the `nextPage` of the previous response, or omit for the first page.",
      "type": "string"
    }
  },
  "required": [
    "restaurant_unit_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢marginedge_get_profit_and_loss_report(restaurant_unit_id, group_id, start_date, end_date)

Get the profit and loss report for one restaurant or one restaurant group over a date range. MarginEdge API: GET /profitAndLoss/report.

Input Schema

{
  "type": "object",
  "properties": {
    "restaurant_unit_id": {
      "description": "One restaurant unit id. Give this or group_id, not both.",
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ]
    },
    "group_id": {
      "description": "One restaurant unit group id (UUID). Give this or restaurant_unit_id, not both.",
      "type": "string",
      "minLength": 1
    },
    "start_date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Report start, YYYY-MM-DD."
    },
    "end_date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Report end, YYYY-MM-DD."
    }
  },
  "required": [
    "start_date",
    "end_date"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢marginedge_get_sales_report(restaurant_unit_id, group_id, start_date, end_date)

Get the sales report for one restaurant or one restaurant group over a date range. MarginEdge API: GET /sales/report.

Input Schema

{
  "type": "object",
  "properties": {
    "restaurant_unit_id": {
      "description": "One restaurant unit id. Give this or group_id, not both.",
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ]
    },
    "group_id": {
      "description": "One restaurant unit group id (UUID). Give this or restaurant_unit_id, not both.",
      "type": "string",
      "minLength": 1
    },
    "start_date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Report start, YYYY-MM-DD."
    },
    "end_date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Report end, YYYY-MM-DD."
    }
  },
  "required": [
    "start_date",
    "end_date"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢marginedge_get_new_item_review(restaurant_unit_id, scope, start_date, end_date, review_status, ...)

List items awaiting or past review for one restaurant (scope: unit, company or concept). Paginated. MarginEdge API: GET /newItemReview.

Input Schema

{
  "type": "object",
  "properties": {
    "restaurant_unit_id": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^[1-9]\\d*$"
        }
      ],
      "description": "Restaurant unit id (the `id` from marginedge_list_restaurant_units)."
    },
    "scope": {
      "description": "unit (default), company, or concept. concept returns the company view unless the concept is in franchise-lockdown mode.",
      "type": "string",
      "enum": [
        "unit",
        "company",
        "concept"
      ]
    },
    "start_date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "end_date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "review_status": {
      "description": "ALL (default), REVIEWED or UNREVIEWED.",
      "type": "string",
      "enum": [
        "ALL",
        "REVIEWED",
        "UNREVIEWED"
      ]
    },
    "next_page": {
      "description": "Cursor: pass the `nextPage` of the previous response, or omit for the first page.",
      "type": "string"
    }
  },
  "required": [
    "restaurant_unit_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

Community

Rate this Server

Evidence

Recent observations

verifiedversion not recorded26 tools