Farmbrite MCP by usefulapi
v1.21.1Read Farmbrite livestock, crops, tasks, inventory and orders; log records and tasks.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
farmbrite_list_animals List animals
List livestock records (name, type, tag number, gender, breed, status, weight, group, purchase/sale data). Farmbrite returns only active-status animals unless you filter by status (Sold, Deceased, Culled, Butchered, Archived...). GET /animals.
| Parameter | Type | Description |
|---|---|---|
filters | object | Extra filters as {field: value}, using a field name from the records. A plain value means equals; 'op:value' applies an operator, op being one of eq, ne, gt, gte, lt, lte, like, in, nin (e.g. {"create… |
limit | integer | Results per page, 1-100 (default 25). |
name | string | Animals whose name contains this text. |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
sort_by | string | Field to sort by, e.g. created_at. |
sort_dir | string | Sort direction. |
status | string | Only animals with this status (the default list is Active-type statuses only). |
tag_number | string | Only the animal with this tag number. |
type | string | Only this animal type, e.g. Cattle, Sheep, Chicken. |
farmbrite_get_animal Get animal
One animal by id, with its current location and custom fields. GET /animals/{animal_id}.
| Parameter | Type | Description |
|---|---|---|
animal_id * | string | Animal id (a Farmbrite id string). |
farmbrite_list_livestock_groups List livestock groups
List livestock groups (id, name, type). GET /livestock_groups.
| Parameter | Type | Description |
|---|---|---|
filters | object | Extra filters as {field: value}, using a field name from the records. A plain value means equals; 'op:value' applies an operator, op being one of eq, ne, gt, gte, lt, lte, like, in, nin (e.g. {"create… |
limit | integer | Results per page, 1-100 (default 25). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
sort_by | string | Field to sort by, e.g. created_at. |
sort_dir | string | Sort direction. |
farmbrite_get_livestock_group Get livestock group
One livestock group by id with its member count, filters and member animals. GET /livestock_groups/{group_id}.
| Parameter | Type | Description |
|---|---|---|
group_id * | string | Livestock group id (a Farmbrite id string). |
farmbrite_list_animal_measurements List animal measurements
Weight, height, temperature, condition score and fecal-count records of one animal, newest data included. GET /animals/{animal_id}/measurements.
| Parameter | Type | Description |
|---|---|---|
animal_id * | string | Animal id (a Farmbrite id string). |
limit | integer | Results per page, 1-100 (default 25). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
sort_by | string | Field to sort by, e.g. created_at. |
sort_dir | string | Sort direction. |
farmbrite_list_feedings List feedings
Feeding records (amount, cost, date, feed type, inventory used) of one animal or livestock group. GET /{animals|livestock_groups}/{id}/feedings.
| Parameter | Type | Description |
|---|---|---|
parent * | string | Whose feedings. |
parent_id * | string | Animal or livestock group id (a Farmbrite id string). |
limit | integer | Results per page, 1-100 (default 25). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
farmbrite_list_grazing_summary List grazing summary
Grazing status per field/pasture: animals present, days rested, rest days required, last grazed. GET /grazings.
| Parameter | Type | Description |
|---|---|---|
filters | object | Extra filters as {field: value}, using a field name from the records. A plain value means equals; 'op:value' applies an operator, op being one of eq, ne, gt, gte, lt, lte, like, in, nin (e.g. {"create… |
limit | integer | Results per page, 1-100 (default 25). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
sort_by | string | Field to sort by, e.g. created_at. |
sort_dir | string | Sort direction. |
farmbrite_list_plants List plant types
List plant types/varieties (days to maturity, spacing, market price, harvest unit). GET /plants.
| Parameter | Type | Description |
|---|---|---|
filters | object | Extra filters as {field: value}, using a field name from the records. A plain value means equals; 'op:value' applies an operator, op being one of eq, ne, gt, gte, lt, lte, like, in, nin (e.g. {"create… |
limit | integer | Results per page, 1-100 (default 25). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
sort_by | string | Field to sort by, e.g. created_at. |
sort_dir | string | Sort direction. |
farmbrite_list_crops List crop plantings
List crop plantings (plant, field/plot, bed, quantity, planting and expected harvest dates, growth stage). GET /crops.
| Parameter | Type | Description |
|---|---|---|
filters | object | Extra filters as {field: value}, using a field name from the records. A plain value means equals; 'op:value' applies an operator, op being one of eq, ne, gt, gte, lt, lte, like, in, nin (e.g. {"create… |
limit | integer | Results per page, 1-100 (default 25). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
plant_id | string | Only plantings of this plant type id (a Farmbrite id string). |
plot_id | string | Only plantings in this field/plot id (a Farmbrite id string). |
sort_by | string | Field to sort by, e.g. created_at. |
sort_dir | string | Sort direction. |
farmbrite_get_crop Get crop planting
One crop planting by id. GET /crops/{crop_id}.
| Parameter | Type | Description |
|---|---|---|
crop_id * | string | Crop planting id (a Farmbrite id string). |
farmbrite_list_plots List fields (plots)
List fields/grow locations (title, type, size, status, grazing rest days). GET /plots.
| Parameter | Type | Description |
|---|---|---|
filters | object | Extra filters as {field: value}, using a field name from the records. A plain value means equals; 'op:value' applies an operator, op being one of eq, ne, gt, gte, lt, lte, like, in, nin (e.g. {"create… |
limit | integer | Results per page, 1-100 (default 25). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
sort_by | string | Field to sort by, e.g. created_at. |
sort_dir | string | Sort direction. |
farmbrite_get_plot Get field (plot)
One field/grow location by id. GET /plots/{plot_id}.
| Parameter | Type | Description |
|---|---|---|
plot_id * | string | Field (plot) id (a Farmbrite id string). |
farmbrite_list_harvests List harvests
Harvest records (quantity, unit, grade, price, date, inventory added) of one animal or crop planting. GET /{animals|crops}/{id}/harvests.
| Parameter | Type | Description |
|---|---|---|
parent * | string | Whose harvests. |
parent_id * | string | Animal or crop planting id (a Farmbrite id string). |
limit | integer | Results per page, 1-100 (default 25). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
farmbrite_list_treatments List treatments
Treatment records (type, product, amount, cost, date, withdrawal date, technician) of one animal, field or crop planting. GET /{animals|plots|crops}/{id}/treatments.
| Parameter | Type | Description |
|---|---|---|
parent * | string | What was treated. |
parent_id * | string | Animal, field (plot) or crop planting id (a Farmbrite id string). |
limit | integer | Results per page, 1-100 (default 25). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
farmbrite_list_notes List notes
Notes (description, category, date, keywords) attached to an animal, field, plant type, crop planting or inventory type. GET /{animals|plots|plants|crops|inventory_types}/{id}/notes.
| Parameter | Type | Description |
|---|---|---|
parent * | string | What the notes are attached to. |
parent_id * | string | Id of the animal, field, plant type, crop planting or inventory type (a Farmbrite id string). |
limit | integer | Results per page, 1-100 (default 25). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
farmbrite_list_contacts List contacts
List contacts (customers, suppliers, vendors): name, company, email, phone, type, label. GET /contacts.
| Parameter | Type | Description |
|---|---|---|
email | string | Only the contact with this exact email. |
filters | object | Extra filters as {field: value}, using a field name from the records. A plain value means equals; 'op:value' applies an operator, op being one of eq, ne, gt, gte, lt, lte, like, in, nin (e.g. {"create… |
limit | integer | Results per page, 1-100 (default 25). |
name | string | Contacts whose last name contains this text. |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
sort_by | string | Field to sort by, e.g. created_at. |
sort_dir | string | Sort direction. |
farmbrite_get_contact Get contact
One contact by id, with address. GET /contacts/{contact_id}.
| Parameter | Type | Description |
|---|---|---|
contact_id * | string | Contact id (a Farmbrite id string). |
farmbrite_list_tasks List tasks
List tasks (title, description, status, priority, assignee, due/end time, checklist, linked animal/field/crop). GET /tasks.
| Parameter | Type | Description |
|---|---|---|
assigned_to_id | string | Only tasks assigned to this user id (a Farmbrite id string). |
complete | boolean | true = only completed tasks, false = only open tasks. |
filters | object | Extra filters as {field: value}, using a field name from the records. A plain value means equals; 'op:value' applies an operator, op being one of eq, ne, gt, gte, lt, lte, like, in, nin (e.g. {"create… |
limit | integer | Results per page, 1-100 (default 25). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
sort_by | string | Field to sort by, e.g. created_at. |
sort_dir | string | Sort direction. |
farmbrite_get_task Get task
One task by id with its checklist. GET /tasks/{task_id}.
| Parameter | Type | Description |
|---|---|---|
task_id * | string | Task id (a Farmbrite id string). |
farmbrite_list_activities List schedule activities
List calendar/schedule activities (title, start and end time, all-day flag, linked animal or field). GET /activities.
| Parameter | Type | Description |
|---|---|---|
filters | object | Extra filters as {field: value}, using a field name from the records. A plain value means equals; 'op:value' applies an operator, op being one of eq, ne, gt, gte, lt, lte, like, in, nin (e.g. {"create… |
limit | integer | Results per page, 1-100 (default 25). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
sort_by | string | Field to sort by, e.g. created_at. |
sort_dir | string | Sort direction. |
farmbrite_list_inventory_types List inventory items
List inventory item types (feed, supplies, harvested products) with the quantity remaining, unit, value and low-stock alert level. GET /inventory_types.
| Parameter | Type | Description |
|---|---|---|
filters | object | Extra filters as {field: value}, using a field name from the records. A plain value means equals; 'op:value' applies an operator, op being one of eq, ne, gt, gte, lt, lte, like, in, nin (e.g. {"create… |
limit | integer | Results per page, 1-100 (default 25). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
sort_by | string | Field to sort by, e.g. created_at. |
sort_dir | string | Sort direction. |
farmbrite_get_inventory_type Get inventory item
One inventory item type by id with quantity remaining and projected empty date. GET /inventory_types/{inventory_type_id}.
| Parameter | Type | Description |
|---|---|---|
inventory_type_id * | string | Inventory type id (a Farmbrite id string). |
farmbrite_get_inventory_locations Get inventory by location
Where one inventory item is stored: warehouse and bin ids and names, capacity and quantity remaining in each. Use the ids with farmbrite_add_inventory / farmbrite_remove_inventory. GET /inventory_types/{inventory_type_id}/inventory.
| Parameter | Type | Description |
|---|---|---|
inventory_type_id * | string | Inventory type id (a Farmbrite id string). |
limit | integer | Results per page, 1-100 (default 25). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
farmbrite_list_warehouses List storage locations
List storage locations (warehouses) for inventory: name, description, internal id. Use the ids when adding or removing inventory. GET /warehouses.
| Parameter | Type | Description |
|---|---|---|
filters | object | Extra filters as {field: value}, using a field name from the records. A plain value means equals; 'op:value' applies an operator, op being one of eq, ne, gt, gte, lt, lte, like, in, nin (e.g. {"create… |
limit | integer | Results per page, 1-100 (default 25). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
sort_by | string | Field to sort by, e.g. created_at. |
sort_dir | string | Sort direction. |
farmbrite_list_orders List orders
List sales orders (status, payment status, total, dates, contact, delivery type, invoice number). GET /orders.
| Parameter | Type | Description |
|---|---|---|
contact_id | string | Only orders of this contact id (a Farmbrite id string). |
filters | object | Extra filters as {field: value}, using a field name from the records. A plain value means equals; 'op:value' applies an operator, op being one of eq, ne, gt, gte, lt, lte, like, in, nin (e.g. {"create… |
limit | integer | Results per page, 1-100 (default 25). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
payment_status | string | Only orders with this payment status. |
sort_by | string | Field to sort by, e.g. created_at. |
sort_dir | string | Sort direction. |
status | string | Only orders with this status. |
farmbrite_get_order Get order
One order by id with its line items, customer contact, delivery address and totals. GET /orders/{order_id}.
| Parameter | Type | Description |
|---|---|---|
order_id * | string | Order id (a Farmbrite id string). |
farmbrite_list_transactions List transactions
List income and expense transactions (type, amount, date, vendor, category, linked animal/field/plant, description). GET /transactions.
| Parameter | Type | Description |
|---|---|---|
filters | object | Extra filters as {field: value}, using a field name from the records. A plain value means equals; 'op:value' applies an operator, op being one of eq, ne, gt, gte, lt, lte, like, in, nin (e.g. {"create… |
limit | integer | Results per page, 1-100 (default 25). |
page | integer | Page number, from 1 (default 1). Pass the previous reply's next_page. |
sort_by | string | Field to sort by, e.g. created_at. |
sort_dir | string | Sort direction. |
type | string | Only expenses or only income. |
farmbrite_get_transaction Get transaction
One transaction by id. GET /transactions/{transaction_id}.
| Parameter | Type | Description |
|---|---|---|
transaction_id * | string | Transaction id (a Farmbrite id string). |
farmbrite_create_contact Create contact
WRITE: create a contact (customer, supplier, vendor). Nothing is emailed or sent to the contact. Creating twice makes two contacts. POST /contacts.
| Parameter | Type | Description |
|---|---|---|
address | object | |
cell | string | |
company | string | |
description | string | |
email | string | |
first_name | string | |
label | string | |
last_name | string | |
phone | string | |
type | string | Contact type, e.g. Customer or Vendor (as defined in your Farmbrite account). |
farmbrite_update_contact Update contact
WRITE: change fields of an existing contact (only the fields you pass are sent). Overwrites the previous values. PUT /contacts/{contact_id}.
| Parameter | Type | Description |
|---|---|---|
contact_id * | string | Contact id (a Farmbrite id string). |
cell | string | |
company | string | |
description | string | |
email | string | |
first_name | string | |
last_name | string | |
phone | string |
farmbrite_create_task Create task
WRITE: create a task, optionally linked to an animal, equipment, plant, location or planting. May notify the assigned Farmbrite user according to your account settings. Creating twice makes two tasks. POST /tasks.
| Parameter | Type | Description |
|---|---|---|
title * | string | |
assigned_to_id | string | Farmbrite user id or the user's email address to assign the task to. |
description | string | Task details. |
end_time | string | Due/end time, 'yyyy-mm-dd hh:mm'. |
hours_spent | number | |
priority | integer | Priority 1-5. |
reference_id | string | Id of the animal/equipment/plant/location/planting the task is about (a Farmbrite id string). |
reference_type | string | What the task is about (with reference_id). |
status | string | A task status defined in your account, e.g. 'To Do'. |
farmbrite_update_task Update task
WRITE: change a task (only the fields you pass are sent); set complete=true to mark it done. Overwrites previous values. PUT /tasks/{task_id}.
| Parameter | Type | Description |
|---|---|---|
task_id * | string | Task id (a Farmbrite id string). |
assigned_to_id | string | Farmbrite user id or the user's email address to assign the task to. |
complete | boolean | true marks the task done. |
description | string | Task details. |
end_time | string | Due/end time, 'yyyy-mm-dd hh:mm'. |
hours_spent | number | |
priority | integer | Priority 1-5. |
status | string | A task status defined in your account, e.g. 'To Do'. |
title | string |
farmbrite_create_transaction Create transaction
WRITE: record an income or expense transaction in the farm's books. Creating twice records it twice. POST /transactions.
| Parameter | Type | Description |
|---|---|---|
amount * | number | Positive amount in the account's currency. |
date * | string | Transaction date, yyyy-mm-dd. |
type * | string | |
category | string | A custom category or an IRS Schedule F key. |
check_number | string | |
description | string | |
keywords | string | |
ref_id | string | Id of the related animal/equipment/plant/location (a Farmbrite id string). |
ref_type | string | What it relates to (with ref_id). |
vendor | string | Vendor or customer name. |
farmbrite_create_note Add note
WRITE: add a note to an animal, livestock group, field, plant type, crop planting or inventory item. Notes cannot be removed with this server. POST /{parent}/{id}/notes.
| Parameter | Type | Description |
|---|---|---|
description * | string | The note text. |
parent * | string | What the note is attached to. |
parent_id * | string | Id of the animal, livestock group, field, plant type, crop planting or inventory type (a Farmbrite id string). |
category | string | |
date | string | |
keywords | string |
farmbrite_add_inventory Add inventory
WRITE: add stock to an inventory item in a storage location (warehouse, optionally a bin). Raises the quantity remaining; not idempotent: repeating adds again. Find ids with farmbrite_list_inventory_types, farmbrite_get_inventory_locations and farmbrite_list_warehouses. PUT /inventory_types/{id}/inventory/add.
| Parameter | Type | Description |
|---|---|---|
adjustment * | number | Quantity to add (positive, in the item's unit). |
inventory_type_id * | string | Inventory type id (a Farmbrite id string). |
warehouse_id * | string | Storage location (warehouse) id (a Farmbrite id string). |
bin_id | string | Bin id inside the warehouse (a Farmbrite id string). |
date | string | |
description | string | |
lot_number | string | |
source | string |
farmbrite_remove_inventory Remove inventory
WRITE: take stock out of an inventory item in a storage location (use, loss, sale). Lowers the quantity remaining; not idempotent: repeating removes again. It cannot be undone with this server except by adding stock back. PUT /inventory_types/{id}/inventory/remove.
| Parameter | Type | Description |
|---|---|---|
adjustment * | number | Quantity to remove (positive, in the item's unit). |
inventory_type_id * | string | Inventory type id (a Farmbrite id string). |
warehouse_id * | string | Storage location (warehouse) id (a Farmbrite id string). |
bin_id | string | Bin id inside the warehouse (a Farmbrite id string). |
date | string | |
description | string | |
lot_number | string | |
order_id | string | Order id the stock was used for (a Farmbrite id string). |
farmbrite_create_order Create order
WRITE: create a sales order with line items (status defaults to Draft and payment_status to Due unless you set them; memo is internal, note is customer-facing). Farmbrite may email the customer or generate an invoice depending on the account's settings and the status chosen; the API reference does not say, so use Draft unless the user asks otherwise and only pass email when told to. Orders are entered as back-office orders (is_admin). Creating twice makes two orders. POST /orders.
| Parameter | Type | Description |
|---|---|---|
order_items * | array | Line items. |
contact_id | string | Existing contact id for the customer (a Farmbrite id string). |
delivery_amount | number | |
discount_amount | number | |
due_date | string | |
email | string | |
first_name | string | |
last_name | string | |
memo | string | Internal memo, not shown to the customer. |
note | string | A message for the CUSTOMER associated with the order (Farmbrite's customer-facing note). Only set it when the user wants the customer to read it; use memo for internal text. |
order_date | string | |
payment_method | string | |
payment_status | string | |
phone | string | |
status | string | |
tax_rate | number | Tax rate in percent. |
farmbrite_update_order Update order status
WRITE: change an order's status and/or payment status (for example mark it Paid or Delivered). Farmbrite may send customer notifications on some status changes, depending on the account settings. PUT /orders/{order_id}.
| Parameter | Type | Description |
|---|---|---|
order_id * | string | Order id (a Farmbrite id string). |
payment_status | string | |
status | string |
farmbrite_create_animal Create animal
WRITE: add an animal (or a group when is_group=true with group_qty) to the herd. type (e.g. Cattle, Sheep) and status are required. Creating twice makes two animals. POST /animals.
| Parameter | Type | Description |
|---|---|---|
type * | string | Animal type, e.g. Cattle, Sheep, Goat, Chicken or a custom type. |
birth_date | string | |
breed | string | |
death_date | string | Required when status is Butchered, Culled or Deceased. |
deceased_reason | string | |
description | string | |
electronic_id | string | |
father_id | string | Father animal id (a Farmbrite id string). |
gender | string | e.g. Female, Male. |
group_qty | integer | Head count when is_group is true. |
internal_id | string | |
is_group | boolean | true to add a group of identical animals. |
keywords | string | |
market_price | number | |
mother_id | string | Mother animal id (a Farmbrite id string). |
name | string | |
purchase_date | string | |
purchase_price | number | |
purchased | boolean | |
sale_date | string | |
status | string | |
tag_number | string | |
weight | number |
farmbrite_update_animal Update animal
WRITE: change an animal's fields (only the fields you pass are sent), including its status (Sold, Deceased, Culled...). Statuses Butchered, Culled and Deceased need death_date. Overwrites previous values. PUT /animals/{animal_id}.
| Parameter | Type | Description |
|---|---|---|
animal_id * | string | Animal id (a Farmbrite id string). |
birth_date | string | |
breed | string | |
death_date | string | |
deceased_reason | string | |
description | string | |
electronic_id | string | |
father_id | string | Father animal id (a Farmbrite id string). |
gender | string | e.g. Female, Male. |
internal_id | string | |
keywords | string | |
market_price | number | |
mother_id | string | Mother animal id (a Farmbrite id string). |
name | string | |
sale_date | string | |
status | string | |
tag_number | string | |
type | string | |
weight | number |
farmbrite_add_animal_measurement Add animal measurement
WRITE: record a measurement for one animal (weight, height, temperature, condition score, fecal egg count). Adds a record each time. POST /animals/{animal_id}/measurements.
| Parameter | Type | Description |
|---|---|---|
animal_id * | string | Animal id (a Farmbrite id string). |
condition_score | number | |
date | string | |
fec | number | Fecal egg count. |
height | number | |
temp | number | Body temperature. |
weight | number |
farmbrite_create_feeding Record feeding
WRITE: record a feeding for an animal or livestock group. Either name the feed type, or give inventory_id + inventory_location_id to draw it from inventory (which lowers that inventory's quantity). Adds a record each time. POST /{animals|livestock_groups}/{id}/feedings.
| Parameter | Type | Description |
|---|---|---|
amount * | number | Amount fed. |
parent * | string | |
parent_id * | string | Animal or livestock group id (a Farmbrite id string). |
cost | number | |
date | string | |
description | string | |
inventory_id | string | Inventory type id the feed comes from (a Farmbrite id string). |
inventory_location_id | string | Inventory location id (from farmbrite_get_inventory_locations) (a Farmbrite id string). |
per_head | boolean | true if amount is per animal. |
type | string | Feed type, when not drawing from inventory. |
unit | string |
farmbrite_create_harvest Record harvest
WRITE: record a harvest (quantity and unit) for an animal or crop planting. Adds a record each time. POST /{animals|crops}/{id}/harvests.
| Parameter | Type | Description |
|---|---|---|
parent * | string | |
parent_id * | string | Animal or crop planting id (a Farmbrite id string). |
qty * | number | |
unit * | string | Unit, e.g. pounds, lbs, dozen. |
batch_number | string | |
date | string | |
description | string | |
grade | string | |
price | number |
farmbrite_create_treatment Record treatment
WRITE: record a treatment (vaccine, dewormer, spray, fertilizer...) for an animal, livestock group, field or crop planting. Adds a record each time. POST /{animals|livestock_groups|plots|crops}/{id}/treatments.
| Parameter | Type | Description |
|---|---|---|
parent * | string | |
parent_id * | string | Animal, livestock group, field (plot) or crop planting id (a Farmbrite id string). |
type * | string | Treatment type. |
amount | Amount given (a number, or text with its unit such as '5 ml'). | |
cost | number | |
date | string | |
description | string | |
product | string | |
retreat_date | string | |
technician | string | |
withdrawal_date | string |