Farmbrite MCP by usefulapi

v1.21.1
io.usefulapi/farmbrite Checked 2 days ago Published 1 day ago

Read 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.

ParameterTypeDescription
filtersobjectExtra 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…
limitintegerResults per page, 1-100 (default 25).
namestringAnimals whose name contains this text.
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
sort_bystringField to sort by, e.g. created_at.
sort_dirstringSort direction.
statusstringOnly animals with this status (the default list is Active-type statuses only).
tag_numberstringOnly the animal with this tag number.
typestringOnly 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}.

ParameterTypeDescription
animal_id *stringAnimal id (a Farmbrite id string).

farmbrite_list_livestock_groups List livestock groups

List livestock groups (id, name, type). GET /livestock_groups.

ParameterTypeDescription
filtersobjectExtra 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…
limitintegerResults per page, 1-100 (default 25).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
sort_bystringField to sort by, e.g. created_at.
sort_dirstringSort 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}.

ParameterTypeDescription
group_id *stringLivestock 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.

ParameterTypeDescription
animal_id *stringAnimal id (a Farmbrite id string).
limitintegerResults per page, 1-100 (default 25).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
sort_bystringField to sort by, e.g. created_at.
sort_dirstringSort 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.

ParameterTypeDescription
parent *stringWhose feedings.
parent_id *stringAnimal or livestock group id (a Farmbrite id string).
limitintegerResults per page, 1-100 (default 25).
pageintegerPage 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.

ParameterTypeDescription
filtersobjectExtra 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…
limitintegerResults per page, 1-100 (default 25).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
sort_bystringField to sort by, e.g. created_at.
sort_dirstringSort direction.

farmbrite_list_plants List plant types

List plant types/varieties (days to maturity, spacing, market price, harvest unit). GET /plants.

ParameterTypeDescription
filtersobjectExtra 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…
limitintegerResults per page, 1-100 (default 25).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
sort_bystringField to sort by, e.g. created_at.
sort_dirstringSort direction.

farmbrite_list_crops List crop plantings

List crop plantings (plant, field/plot, bed, quantity, planting and expected harvest dates, growth stage). GET /crops.

ParameterTypeDescription
filtersobjectExtra 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…
limitintegerResults per page, 1-100 (default 25).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
plant_idstringOnly plantings of this plant type id (a Farmbrite id string).
plot_idstringOnly plantings in this field/plot id (a Farmbrite id string).
sort_bystringField to sort by, e.g. created_at.
sort_dirstringSort direction.

farmbrite_get_crop Get crop planting

One crop planting by id. GET /crops/{crop_id}.

ParameterTypeDescription
crop_id *stringCrop 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.

ParameterTypeDescription
filtersobjectExtra 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…
limitintegerResults per page, 1-100 (default 25).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
sort_bystringField to sort by, e.g. created_at.
sort_dirstringSort direction.

farmbrite_get_plot Get field (plot)

One field/grow location by id. GET /plots/{plot_id}.

ParameterTypeDescription
plot_id *stringField (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.

ParameterTypeDescription
parent *stringWhose harvests.
parent_id *stringAnimal or crop planting id (a Farmbrite id string).
limitintegerResults per page, 1-100 (default 25).
pageintegerPage 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.

ParameterTypeDescription
parent *stringWhat was treated.
parent_id *stringAnimal, field (plot) or crop planting id (a Farmbrite id string).
limitintegerResults per page, 1-100 (default 25).
pageintegerPage 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.

ParameterTypeDescription
parent *stringWhat the notes are attached to.
parent_id *stringId of the animal, field, plant type, crop planting or inventory type (a Farmbrite id string).
limitintegerResults per page, 1-100 (default 25).
pageintegerPage 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.

ParameterTypeDescription
emailstringOnly the contact with this exact email.
filtersobjectExtra 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…
limitintegerResults per page, 1-100 (default 25).
namestringContacts whose last name contains this text.
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
sort_bystringField to sort by, e.g. created_at.
sort_dirstringSort direction.

farmbrite_get_contact Get contact

One contact by id, with address. GET /contacts/{contact_id}.

ParameterTypeDescription
contact_id *stringContact 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.

ParameterTypeDescription
assigned_to_idstringOnly tasks assigned to this user id (a Farmbrite id string).
completebooleantrue = only completed tasks, false = only open tasks.
filtersobjectExtra 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…
limitintegerResults per page, 1-100 (default 25).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
sort_bystringField to sort by, e.g. created_at.
sort_dirstringSort direction.

farmbrite_get_task Get task

One task by id with its checklist. GET /tasks/{task_id}.

ParameterTypeDescription
task_id *stringTask 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.

ParameterTypeDescription
filtersobjectExtra 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…
limitintegerResults per page, 1-100 (default 25).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
sort_bystringField to sort by, e.g. created_at.
sort_dirstringSort 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.

ParameterTypeDescription
filtersobjectExtra 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…
limitintegerResults per page, 1-100 (default 25).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
sort_bystringField to sort by, e.g. created_at.
sort_dirstringSort 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}.

ParameterTypeDescription
inventory_type_id *stringInventory 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.

ParameterTypeDescription
inventory_type_id *stringInventory type id (a Farmbrite id string).
limitintegerResults per page, 1-100 (default 25).
pageintegerPage 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.

ParameterTypeDescription
filtersobjectExtra 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…
limitintegerResults per page, 1-100 (default 25).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
sort_bystringField to sort by, e.g. created_at.
sort_dirstringSort direction.

farmbrite_list_orders List orders

List sales orders (status, payment status, total, dates, contact, delivery type, invoice number). GET /orders.

ParameterTypeDescription
contact_idstringOnly orders of this contact id (a Farmbrite id string).
filtersobjectExtra 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…
limitintegerResults per page, 1-100 (default 25).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
payment_statusstringOnly orders with this payment status.
sort_bystringField to sort by, e.g. created_at.
sort_dirstringSort direction.
statusstringOnly 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}.

ParameterTypeDescription
order_id *stringOrder 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.

ParameterTypeDescription
filtersobjectExtra 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…
limitintegerResults per page, 1-100 (default 25).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
sort_bystringField to sort by, e.g. created_at.
sort_dirstringSort direction.
typestringOnly expenses or only income.

farmbrite_get_transaction Get transaction

One transaction by id. GET /transactions/{transaction_id}.

ParameterTypeDescription
transaction_id *stringTransaction 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.

ParameterTypeDescription
addressobject
cellstring
companystring
descriptionstring
emailstring
first_namestring
labelstring
last_namestring
phonestring
typestringContact 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}.

ParameterTypeDescription
contact_id *stringContact id (a Farmbrite id string).
cellstring
companystring
descriptionstring
emailstring
first_namestring
last_namestring
phonestring

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.

ParameterTypeDescription
title *string
assigned_to_idstringFarmbrite user id or the user's email address to assign the task to.
descriptionstringTask details.
end_timestringDue/end time, 'yyyy-mm-dd hh:mm'.
hours_spentnumber
priorityintegerPriority 1-5.
reference_idstringId of the animal/equipment/plant/location/planting the task is about (a Farmbrite id string).
reference_typestringWhat the task is about (with reference_id).
statusstringA 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}.

ParameterTypeDescription
task_id *stringTask id (a Farmbrite id string).
assigned_to_idstringFarmbrite user id or the user's email address to assign the task to.
completebooleantrue marks the task done.
descriptionstringTask details.
end_timestringDue/end time, 'yyyy-mm-dd hh:mm'.
hours_spentnumber
priorityintegerPriority 1-5.
statusstringA task status defined in your account, e.g. 'To Do'.
titlestring

farmbrite_create_transaction Create transaction

WRITE: record an income or expense transaction in the farm's books. Creating twice records it twice. POST /transactions.

ParameterTypeDescription
amount *numberPositive amount in the account's currency.
date *stringTransaction date, yyyy-mm-dd.
type *string
categorystringA custom category or an IRS Schedule F key.
check_numberstring
descriptionstring
keywordsstring
ref_idstringId of the related animal/equipment/plant/location (a Farmbrite id string).
ref_typestringWhat it relates to (with ref_id).
vendorstringVendor 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.

ParameterTypeDescription
description *stringThe note text.
parent *stringWhat the note is attached to.
parent_id *stringId of the animal, livestock group, field, plant type, crop planting or inventory type (a Farmbrite id string).
categorystring
datestring
keywordsstring

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.

ParameterTypeDescription
adjustment *numberQuantity to add (positive, in the item's unit).
inventory_type_id *stringInventory type id (a Farmbrite id string).
warehouse_id *stringStorage location (warehouse) id (a Farmbrite id string).
bin_idstringBin id inside the warehouse (a Farmbrite id string).
datestring
descriptionstring
lot_numberstring
sourcestring

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.

ParameterTypeDescription
adjustment *numberQuantity to remove (positive, in the item's unit).
inventory_type_id *stringInventory type id (a Farmbrite id string).
warehouse_id *stringStorage location (warehouse) id (a Farmbrite id string).
bin_idstringBin id inside the warehouse (a Farmbrite id string).
datestring
descriptionstring
lot_numberstring
order_idstringOrder 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.

ParameterTypeDescription
order_items *arrayLine items.
contact_idstringExisting contact id for the customer (a Farmbrite id string).
delivery_amountnumber
discount_amountnumber
due_datestring
emailstring
first_namestring
last_namestring
memostringInternal memo, not shown to the customer.
notestringA 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_datestring
payment_methodstring
payment_statusstring
phonestring
statusstring
tax_ratenumberTax 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}.

ParameterTypeDescription
order_id *stringOrder id (a Farmbrite id string).
payment_statusstring
statusstring

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.

ParameterTypeDescription
type *stringAnimal type, e.g. Cattle, Sheep, Goat, Chicken or a custom type.
birth_datestring
breedstring
death_datestringRequired when status is Butchered, Culled or Deceased.
deceased_reasonstring
descriptionstring
electronic_idstring
father_idstringFather animal id (a Farmbrite id string).
genderstringe.g. Female, Male.
group_qtyintegerHead count when is_group is true.
internal_idstring
is_groupbooleantrue to add a group of identical animals.
keywordsstring
market_pricenumber
mother_idstringMother animal id (a Farmbrite id string).
namestring
purchase_datestring
purchase_pricenumber
purchasedboolean
sale_datestring
statusstring
tag_numberstring
weightnumber

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}.

ParameterTypeDescription
animal_id *stringAnimal id (a Farmbrite id string).
birth_datestring
breedstring
death_datestring
deceased_reasonstring
descriptionstring
electronic_idstring
father_idstringFather animal id (a Farmbrite id string).
genderstringe.g. Female, Male.
internal_idstring
keywordsstring
market_pricenumber
mother_idstringMother animal id (a Farmbrite id string).
namestring
sale_datestring
statusstring
tag_numberstring
typestring
weightnumber

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.

ParameterTypeDescription
animal_id *stringAnimal id (a Farmbrite id string).
condition_scorenumber
datestring
fecnumberFecal egg count.
heightnumber
tempnumberBody temperature.
weightnumber

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.

ParameterTypeDescription
amount *numberAmount fed.
parent *string
parent_id *stringAnimal or livestock group id (a Farmbrite id string).
costnumber
datestring
descriptionstring
inventory_idstringInventory type id the feed comes from (a Farmbrite id string).
inventory_location_idstringInventory location id (from farmbrite_get_inventory_locations) (a Farmbrite id string).
per_headbooleantrue if amount is per animal.
typestringFeed type, when not drawing from inventory.
unitstring

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.

ParameterTypeDescription
parent *string
parent_id *stringAnimal or crop planting id (a Farmbrite id string).
qty *number
unit *stringUnit, e.g. pounds, lbs, dozen.
batch_numberstring
datestring
descriptionstring
gradestring
pricenumber

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.

ParameterTypeDescription
parent *string
parent_id *stringAnimal, livestock group, field (plot) or crop planting id (a Farmbrite id string).
type *stringTreatment type.
amountAmount given (a number, or text with its unit such as '5 ml').
costnumber
datestring
descriptionstring
productstring
retreat_datestring
technicianstring
withdrawal_datestring