Divisi is an MCP server published by africa.divisi, hosted at divisi.africa. When last checked on 2026-11-22 it was up, but it asks for a sign-in before listing tools. It declares 47 tools, including find_crops, when_to_plant, identify_problem, read_guide, market_prices.
Farm, trade and learn together: what to plant and when, what ails a crop, prices near you.
Nothing else in the archive shares these values.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
Crops that suit a place, best first, with when to plant each. Give a town or district name ("Murewa", "Nakuru") or a lat/lng. The list is in Divisi's agronomy order: planting window, then suitability. Each crop links to its guide and its planting page, and lists the services the person can ask Divisi for about it (seed, cover, a loan).
| Parameter | Type | Description |
|---|---|---|
| lat | any | |
| lng | any | |
| limit | integer | |
| place | any | |
| farm_id | any |
{
"name": "find_crops",
"title": "Find crops for a place",
"description": "Crops that suit a place, best first, with when to plant each. Give a\ntown or district name (\"Murewa\", \"Nakuru\") or a lat/lng. The list is in\nDivisi's agronomy order: planting window, then suitability. Each crop links to its guide and its planting page, and lists the services the person can ask Divisi for about it (seed, cover, a loan).",
"inputSchema": {
"type": "object",
"title": "find_cropsArguments",
"properties": {
"lat": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Lat",
"default": null
},
"lng": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Lng",
"default": null
},
"limit": {
"type": "integer",
"title": "Limit",
"default": 10
},
"place": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Place",
"default": null
},
"farm_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Farm Id",
"default": null
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"Offer": {
"type": "object",
"title": "Offer",
"required": [
"need",
"line"
],
"properties": {
"line": {
"type": "string",
"title": "Line"
},
"need": {
"type": "string",
"title": "Need"
},
"detail": {
"type": "string",
"title": "Detail",
"default": ""
}
},
"description": "A service the person can ask Divisi for about this crop, as its page offers\nit: `need` and `detail` are what a service request takes."
},
"Window": {
"type": "object",
"title": "Window",
"properties": {
"best": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Best",
"default": null
},
"opens": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Opens",
"default": null
},
"closes": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Closes",
"default": null
}
},
"description": "A planting window: when it opens, closes, and the best day in it."
},
"CropFit": {
"type": "object",
"title": "CropFit",
"required": [
"rank",
"crop_ref",
"crop"
],
"properties": {
"fit": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Fit",
"default": null
},
"crop": {
"type": "string",
"title": "Crop"
},
"rank": {
"type": "integer",
"title": "Rank"
},
"guide": {
"type": "string",
"title": "Guide",
"default": ""
},
"photo": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Photo",
"default": null
},
"plant": {
"anyOf": [
{
"$ref": "#/$defs/Window"
},
{
"type": "null"
}
],
"default": null
},
"offers": {
"type": "array",
"items": {
"$ref": "#/$defs/Offer"
},
"title": "Offers",
"default": []
},
"crop_ref": {
"type": "string",
"title": "Crop Ref"
},
"yield_t_ha": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Yield T Ha",
"default": null
},
"when_to_plant": {
"type": "string",
"title": "When To Plant",
"default": ""
}
}
}
},
"title": "FoundCrops",
"required": [
"summary",
"place",
"basis",
"crops"
],
"properties": {
"link": {
"type": "string",
"title": "Link",
"default": ""
},
"basis": {
"enum": [
"place",
"field"
],
"type": "string",
"title": "Basis"
},
"crops": {
"type": "array",
"items": {
"$ref": "#/$defs/CropFit"
},
"title": "Crops"
},
"field": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Field",
"default": null
},
"place": {
"type": "string",
"title": "Place"
},
"summary": {
"type": "string",
"title": "Summary"
}
}
},
"annotations": {
"title": "Find crops for a place",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}When to plant one crop at one place: the planting window open now or next, the other seasons in the year, when harvest falls, and the services the person can ask Divisi for about it. `crop` is a name in any language ("maize", "chibage"); give a town or district name, or a lat/lng.
| Parameter | Type | Description |
|---|---|---|
| lat | any | |
| lng | any | |
| crop * | string | |
| place | any | |
| farm_id | any |
{
"name": "when_to_plant",
"title": "When to plant a crop",
"description": "When to plant one crop at one place: the planting window open now or\nnext, the other seasons in the year, when harvest falls, and the services\nthe person can ask Divisi for about it. `crop` is a\nname in any language (\"maize\", \"chibage\"); give a town or district name,\nor a lat/lng.",
"inputSchema": {
"type": "object",
"title": "when_to_plantArguments",
"required": [
"crop"
],
"properties": {
"lat": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Lat",
"default": null
},
"lng": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Lng",
"default": null
},
"crop": {
"type": "string",
"title": "Crop"
},
"place": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Place",
"default": null
},
"farm_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Farm Id",
"default": null
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"Offer": {
"type": "object",
"title": "Offer",
"required": [
"need",
"line"
],
"properties": {
"line": {
"type": "string",
"title": "Line"
},
"need": {
"type": "string",
"title": "Need"
},
"detail": {
"type": "string",
"title": "Detail",
"default": ""
}
},
"description": "A service the person can ask Divisi for about this crop, as its page offers\nit: `need` and `detail` are what a service request takes."
},
"Window": {
"type": "object",
"title": "Window",
"properties": {
"best": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Best",
"default": null
},
"opens": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Opens",
"default": null
},
"closes": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Closes",
"default": null
}
},
"description": "A planting window: when it opens, closes, and the best day in it."
}
},
"title": "PlantingTime",
"required": [
"summary",
"crop_ref",
"crop",
"place"
],
"properties": {
"fit": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Fit",
"default": null
},
"crop": {
"type": "string",
"title": "Crop"
},
"link": {
"type": "string",
"title": "Link",
"default": ""
},
"guide": {
"type": "string",
"title": "Guide",
"default": ""
},
"place": {
"type": "string",
"title": "Place"
},
"plant": {
"anyOf": [
{
"$ref": "#/$defs/Window"
},
{
"type": "null"
}
],
"default": null
},
"offers": {
"type": "array",
"items": {
"$ref": "#/$defs/Offer"
},
"title": "Offers",
"default": []
},
"summary": {
"type": "string",
"title": "Summary"
},
"crop_ref": {
"type": "string",
"title": "Crop Ref"
},
"perennial": {
"type": "boolean",
"title": "Perennial",
"default": false
},
"harvest_to": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Harvest To",
"default": null
},
"harvest_from": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Harvest From",
"default": null
},
"other_seasons": {
"type": "array",
"items": {
"$ref": "#/$defs/Window"
},
"title": "Other Seasons",
"default": []
}
}
},
"annotations": {
"title": "When to plant a crop",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Which pests or diseases might explain what a farmer sees on a crop: candidates from that crop's Divisi guide, best match first, each with how to identify it, photos and a link to its page. `symptoms` is the farmer's own words ("holes in the leaves, sawdust in the funnel"). These are possibilities to check against the photos, not a diagnosis.
| Parameter | Type | Description |
|---|---|---|
| crop * | string | |
| limit | integer | |
| symptoms * | string |
{
"name": "identify_problem",
"title": "Identify a crop problem",
"description": "Which pests or diseases might explain what a farmer sees on a crop:\ncandidates from that crop's Divisi guide, best match first, each with how\nto identify it, photos and a link to its page. `symptoms` is the\nfarmer's own words (\"holes in the leaves, sawdust in the funnel\"). These\nare possibilities to check against the photos, not a diagnosis.",
"inputSchema": {
"type": "object",
"title": "identify_problemArguments",
"required": [
"crop",
"symptoms"
],
"properties": {
"crop": {
"type": "string",
"title": "Crop"
},
"limit": {
"type": "integer",
"title": "Limit",
"default": 5
},
"symptoms": {
"type": "string",
"title": "Symptoms"
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"Candidate": {
"type": "object",
"title": "Candidate",
"required": [
"kind",
"name",
"words_matched",
"page"
],
"properties": {
"kind": {
"type": "string",
"title": "Kind"
},
"name": {
"type": "string",
"title": "Name"
},
"page": {
"type": "string",
"title": "Page"
},
"photos": {
"type": "array",
"items": {
"type": "string"
},
"title": "Photos",
"default": []
},
"what_it_is": {
"type": "string",
"title": "What It Is",
"default": ""
},
"words_matched": {
"type": "integer",
"title": "Words Matched"
},
"how_to_identify": {
"type": "array",
"items": {
"type": "string"
},
"title": "How To Identify",
"default": []
},
"scientific_name": {
"type": "string",
"title": "Scientific Name",
"default": ""
},
"action_threshold": {
"type": "string",
"title": "Action Threshold",
"default": ""
}
}
}
},
"title": "Problems",
"required": [
"summary",
"crop",
"crop_ref",
"matched_your_words",
"note",
"candidates",
"crop_guide"
],
"properties": {
"crop": {
"type": "string",
"title": "Crop"
},
"note": {
"type": "string",
"title": "Note"
},
"summary": {
"type": "string",
"title": "Summary"
},
"crop_ref": {
"type": "string",
"title": "Crop Ref"
},
"candidates": {
"type": "array",
"items": {
"$ref": "#/$defs/Candidate"
},
"title": "Candidates"
},
"crop_guide": {
"type": "string",
"title": "Crop Guide"
},
"matched_your_words": {
"type": "boolean",
"title": "Matched Your Words"
}
}
},
"annotations": {
"title": "Identify a crop problem",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}The summary of Divisi's guide to one crop, pest or disease, named in any language: for a crop, its overview, key facts, season stages and the threats to watch for; for a pest or disease, how to spot it and what to do. `kind` narrows the search when a name could be either. Links to the full page.
| Parameter | Type | Description |
|---|---|---|
| kind | any | |
| name * | string |
{
"name": "read_guide",
"title": "Read a crop or pest guide",
"description": "The summary of Divisi's guide to one crop, pest or disease, named in\nany language: for a crop, its overview, key facts, season stages and the\nthreats to watch for; for a pest or disease, how to spot it and what to\ndo. `kind` narrows the search when a name could be either. Links to the\nfull page.",
"inputSchema": {
"type": "object",
"title": "read_guideArguments",
"required": [
"name"
],
"properties": {
"kind": {
"anyOf": [
{
"enum": [
"crop",
"pest",
"disease"
],
"type": "string"
},
{
"type": "null"
}
],
"title": "Kind",
"default": null
},
"name": {
"type": "string",
"title": "Name"
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"Fact": {
"type": "object",
"title": "Fact",
"required": [
"label",
"value"
],
"properties": {
"label": {
"type": "string",
"title": "Label"
},
"value": {
"type": "string",
"title": "Value"
}
}
}
},
"title": "Guide",
"required": [
"summary",
"kind",
"slug",
"name",
"link"
],
"properties": {
"kind": {
"enum": [
"crop",
"pest",
"disease"
],
"type": "string",
"title": "Kind"
},
"link": {
"type": "string",
"title": "Link"
},
"name": {
"type": "string",
"title": "Name"
},
"slug": {
"type": "string",
"title": "Slug"
},
"facts": {
"type": "array",
"items": {
"$ref": "#/$defs/Fact"
},
"title": "Facts",
"default": []
},
"stages": {
"type": "array",
"items": {
"type": "string"
},
"title": "Stages",
"default": []
},
"summary": {
"type": "string",
"title": "Summary"
},
"language": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Language",
"default": null
},
"overview": {
"type": "string",
"title": "Overview",
"default": ""
},
"watch_for": {
"type": "array",
"items": {
"type": "string"
},
"title": "Watch For",
"default": []
},
"what_to_do": {
"type": "array",
"items": {
"type": "string"
},
"title": "What To Do",
"default": []
},
"also_matched": {
"type": "array",
"items": {
"type": "string"
},
"title": "Also Matched",
"default": []
},
"matched_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Matched Name",
"default": null
},
"how_to_identify": {
"type": "array",
"items": {
"type": "string"
},
"title": "How To Identify",
"default": []
},
"action_threshold": {
"type": "string",
"title": "Action Threshold",
"default": ""
}
}
},
"annotations": {
"title": "Read a crop or pest guide",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}The typical price range Divisi has seen for a product near a place, per `unit` ("kg", "50 kg bag", "crate"), from listings, deals and published market prices, with how many prices it rests on. Without a `unit`, it answers in the unit most prices near there were given in. Give a town or district name, or a lat/lng. `currency` defaults to the country's. When there are too few prices to be honest, it says so instead of guessing.
| Parameter | Type | Description |
|---|---|---|
| lat | any | |
| lng | any | |
| unit | any | |
| place | any | |
| farm_id | any | |
| currency | any | |
| commodity * | string |
{
"name": "market_prices",
"title": "Check market prices",
"description": "The typical price range Divisi has seen for a product near a place,\nper `unit` (\"kg\", \"50 kg bag\", \"crate\"), from listings, deals and\npublished market prices, with how many prices it rests on. Without a\n`unit`, it answers in the unit most prices near there were given in. Give\na town or district name, or a lat/lng. `currency` defaults to the\ncountry's. When\nthere are too few prices to be honest, it says so instead of guessing.",
"inputSchema": {
"type": "object",
"title": "market_pricesArguments",
"required": [
"commodity"
],
"properties": {
"lat": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Lat",
"default": null
},
"lng": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Lng",
"default": null
},
"unit": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Unit",
"default": null
},
"place": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Place",
"default": null
},
"farm_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Farm Id",
"default": null
},
"currency": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Currency",
"default": null
},
"commodity": {
"type": "string",
"title": "Commodity"
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"PriceRange": {
"type": "object",
"title": "PriceRange",
"required": [
"low",
"typical",
"high",
"currency",
"unit",
"sample_size",
"area"
],
"properties": {
"low": {
"type": "string",
"title": "Low"
},
"area": {
"type": "string",
"title": "Area"
},
"high": {
"type": "string",
"title": "High"
},
"unit": {
"type": "string",
"title": "Unit"
},
"typical": {
"type": "string",
"title": "Typical"
},
"currency": {
"type": "string",
"title": "Currency"
},
"latest_seen": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Latest Seen",
"default": null
},
"sample_size": {
"type": "integer",
"title": "Sample Size"
}
},
"description": "The typical price per unit Divisi has seen near a place."
}
},
"title": "Prices",
"required": [
"summary",
"commodity",
"unit",
"place",
"link"
],
"properties": {
"link": {
"type": "string",
"title": "Link"
},
"unit": {
"type": "string",
"title": "Unit"
},
"place": {
"type": "string",
"title": "Place"
},
"price": {
"anyOf": [
{
"$ref": "#/$defs/PriceRange"
},
{
"type": "null"
}
],
"default": null
},
"summary": {
"type": "string",
"title": "Summary"
},
"commodity": {
"type": "string",
"title": "Commodity"
}
}
},
"annotations": {
"title": "Check market prices",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Where a market is and when it runs. Give a market's `name` ("Mbare Musika", "Mile 12", "Wakulima"; spelling and the word market do not matter) or a town, district or lat/lng to see the markets near it, nearest first. `crop` keeps only markets that trade it. Each market has its town, country, how far away it is, the days and hours it runs, what is traded, what is in season this month, and its Divisi page. It gives no prices.
| Parameter | Type | Description |
|---|---|---|
| lat | any | |
| lng | any | |
| crop | any | |
| name | any | |
| limit | integer | |
| place | any |
{
"name": "find_market",
"title": "Find a market",
"description": "Where a market is and when it runs. Give a market's `name` (\"Mbare\nMusika\", \"Mile 12\", \"Wakulima\"; spelling and the word market do not\nmatter) or a town, district or lat/lng to see the markets near it, nearest\nfirst. `crop` keeps only markets that trade it. Each market has its town,\ncountry, how far away it is, the days and hours it runs, what is traded,\nwhat is in season this month, and its Divisi page. It gives no\nprices.",
"inputSchema": {
"type": "object",
"title": "find_marketArguments",
"properties": {
"lat": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Lat",
"default": null
},
"lng": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Lng",
"default": null
},
"crop": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Crop",
"default": null
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name",
"default": null
},
"limit": {
"type": "integer",
"title": "Limit",
"default": 5
},
"place": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Place",
"default": null
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"MarketCard": {
"type": "object",
"title": "MarketCard",
"required": [
"name",
"town",
"country",
"open_days",
"trades",
"in_season",
"link"
],
"properties": {
"link": {
"type": "string",
"title": "Link"
},
"name": {
"type": "string",
"title": "Name"
},
"town": {
"type": "string",
"title": "Town"
},
"hours": {
"type": "string",
"title": "Hours",
"default": ""
},
"trades": {
"type": "array",
"items": {
"type": "string"
},
"title": "Trades"
},
"country": {
"type": "string",
"title": "Country"
},
"in_season": {
"type": "array",
"items": {
"type": "string"
},
"title": "In Season"
},
"open_days": {
"type": "string",
"title": "Open Days"
},
"distance_km": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Distance Km",
"default": null
}
},
"description": "One market: where it is, when it runs, what it trades."
}
},
"title": "FoundMarkets",
"required": [
"summary",
"markets"
],
"properties": {
"place": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Place",
"default": null
},
"markets": {
"type": "array",
"items": {
"$ref": "#/$defs/MarketCard"
},
"title": "Markets"
},
"summary": {
"type": "string",
"title": "Summary"
}
}
},
"annotations": {
"title": "Find a market",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Upcoming field days, trainings and meetups, soonest first: near a town, district or lat/lng (within `radius_km`, at most 200), or online. `search` matches a topic or title. Pages of 20.
| Parameter | Type | Description |
|---|---|---|
| lat | any | |
| lng | any | |
| page | integer | |
| place | any | |
| search | any | |
| farm_id | any | |
| free_only | boolean | |
| radius_km | integer | |
| online_only | boolean |
{
"name": "find_events",
"title": "Find farming events",
"description": "Upcoming field days, trainings and meetups, soonest first: near a town,\ndistrict or lat/lng (within `radius_km`, at most 200), or online.\n`search` matches a topic or title. Pages of 20.",
"inputSchema": {
"type": "object",
"title": "find_eventsArguments",
"properties": {
"lat": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Lat",
"default": null
},
"lng": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Lng",
"default": null
},
"page": {
"type": "integer",
"title": "Page",
"default": 1
},
"place": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Place",
"default": null
},
"search": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Search",
"default": null
},
"farm_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Farm Id",
"default": null
},
"free_only": {
"type": "boolean",
"title": "Free Only",
"default": false
},
"radius_km": {
"type": "integer",
"title": "Radius Km",
"default": 50
},
"online_only": {
"type": "boolean",
"title": "Online Only",
"default": false
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"Money": {
"type": "object",
"title": "Money",
"required": [
"amount"
],
"properties": {
"label": {
"type": "string",
"title": "Label",
"default": ""
},
"amount": {
"type": "string",
"title": "Amount"
},
"currency": {
"type": "string",
"title": "Currency",
"default": ""
}
}
},
"EventCard": {
"type": "object",
"title": "EventCard",
"required": [
"id",
"link"
],
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"host": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Host",
"default": null
},
"link": {
"type": "string",
"title": "Link"
},
"going": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Going",
"default": null
},
"place": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Place",
"default": null
},
"price": {
"anyOf": [
{
"$ref": "#/$defs/Money"
},
{
"type": "null"
}
],
"default": null
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title",
"default": null
},
"venue": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Venue",
"default": null
},
"format": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Format",
"default": null
},
"starts": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Starts",
"default": null
},
"status": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Status",
"default": null
},
"ends_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Ends At",
"default": null
},
"capacity": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Capacity",
"default": null
},
"timezone": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Timezone",
"default": null
},
"starts_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Starts At",
"default": null
}
}
}
},
"title": "Events",
"required": [
"summary",
"events"
],
"properties": {
"events": {
"type": "array",
"items": {
"$ref": "#/$defs/EventCard"
},
"title": "Events"
},
"summary": {
"type": "string",
"title": "Summary"
},
"next_page": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Next Page",
"default": null
}
}
},
"annotations": {
"title": "Find farming events",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Find Market listings: produce and inputs for sale (`kind` SALE) or what people want to buy (WANTED), near a town, district or lat/lng (within `radius_km`, at most 100). Prices are per unit as listed, with the usual local range beside them where Divisi has one, and each seller's rating and orders handed over, so a buyer can judge the price and the seller. Pages of 20.
| Parameter | Type | Description |
|---|---|---|
| lat | any | |
| lng | any | |
| kind | string | one of ["SALE","WANTED"] |
| page | integer | |
| place | any | |
| search | any | |
| farm_id | any | |
| radius_km | integer |
{
"name": "search_market",
"title": "Search the market",
"description": "Find Market listings: produce and inputs for sale (`kind` SALE) or\nwhat people want to buy (WANTED), near a town, district or lat/lng\n(within `radius_km`, at most 100). Prices are per unit as listed, with\nthe usual local range beside them where Divisi has one, and each seller's\nrating and orders handed over, so a buyer can judge the price and the\nseller. Pages of 20.",
"inputSchema": {
"type": "object",
"title": "search_marketArguments",
"properties": {
"lat": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Lat",
"default": null
},
"lng": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Lng",
"default": null
},
"kind": {
"enum": [
"SALE",
"WANTED"
],
"type": "string",
"title": "Kind",
"default": "SALE"
},
"page": {
"type": "integer",
"title": "Page",
"default": 1
},
"place": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Place",
"default": null
},
"search": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Search",
"default": null
},
"farm_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Farm Id",
"default": null
},
"radius_km": {
"type": "integer",
"title": "Radius Km",
"default": 25
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"Money": {
"type": "object",
"title": "Money",
"required": [
"amount"
],
"properties": {
"label": {
"type": "string",
"title": "Label",
"default": ""
},
"amount": {
"type": "string",
"title": "Amount"
},
"currency": {
"type": "string",
"title": "Currency",
"default": ""
}
}
},
"Person": {
"type": "object",
"title": "Person",
"properties": {
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Id",
"default": null
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name",
"default": null
},
"rating": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Rating",
"default": null
},
"ratings": {
"type": "integer",
"title": "Ratings",
"default": 0
},
"new_seller": {
"type": "boolean",
"title": "New Seller",
"default": false
},
"orders_handed_over": {
"type": "integer",
"title": "Orders Handed Over",
"default": 0
}
},
"description": "Who is selling, and how far to trust them: their stars, how many people\nrated them, and how many orders they have handed over."
},
"PriceRange": {
"type": "object",
"title": "PriceRange",
"required": [
"low",
"typical",
"high",
"currency",
"unit",
"sample_size",
"area"
],
"properties": {
"low": {
"type": "string",
"title": "Low"
},
"area": {
"type": "string",
"title": "Area"
},
"high": {
"type": "string",
"title": "High"
},
"unit": {
"type": "string",
"title": "Unit"
},
"typical": {
"type": "string",
"title": "Typical"
},
"currency": {
"type": "string",
"title": "Currency"
},
"latest_seen": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Latest Seen",
"default": null
},
"sample_size": {
"type": "integer",
"title": "Sample Size"
}
},
"description": "The typical price per unit Divisi has seen near a place."
},
"ListingCard": {
"type": "object",
"title": "ListingCard",
"required": [
"id",
"seller",
"link"
],
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"kind": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Kind",
"default": null
},
"link": {
"type": "string",
"title": "Link"
},
"unit": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Unit",
"default": null
},
"place": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Place",
"default": null
},
"price": {
"anyOf": [
{
"$ref": "#/$defs/Money"
},
{
"type": "null"
}
],
"default": null
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title",
"default": null
},
"seller": {
"$ref": "#/$defs/Person"
},
"status": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Status",
"default": null
},
"ready_on": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Ready On",
"default": null
},
"negotiable": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Negotiable",
"default": null
},
"distance_km": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Distance Km",
"default": null
},
"typical_price": {
"anyOf": [
{
"$ref": "#/$defs/PriceRange"
},
{
"type": "null"
}
],
"default": null
},
"quantity_available": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Quantity Available",
"default": null
}
}
}
},
"title": "Listings",
"required": [
"summary",
"listings",
"near_a_place"
],
"properties": {
"summary": {
"type": "string",
"title": "Summary"
},
"listings": {
"type": "array",
"items": {
"$ref": "#/$defs/ListingCard"
},
"title": "Listings"
},
"next_page": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Next Page",
"default": null
},
"near_a_place": {
"type": "boolean",
"title": "Near A Place"
}
}
},
"annotations": {
"title": "Search the market",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Verified agronomists, vets and advisers on Divisi, best first: who they are, what they know, where they are, whether they visit farms near the place, and what a call or a farm visit costs. `crop` keeps those who know it; give a town or district, or a lat/lng (a signed-in person's own farm by default). `name` matches their name. Pages of 10.
| Parameter | Type | Description |
|---|---|---|
| lat | any | |
| lng | any | |
| crop | any | |
| name | any | |
| page | integer | |
| place | any | |
| farm_id | any |
{
"name": "find_experts",
"title": "Find an expert",
"description": "Verified agronomists, vets and advisers on Divisi, best first: who\nthey are, what they know, where they are, whether they visit farms near\nthe place, and what a call or a farm visit costs. `crop` keeps those who\nknow it; give a town or district, or a lat/lng (a signed-in person's own\nfarm by default). `name` matches their name. Pages of 10.",
"inputSchema": {
"type": "object",
"title": "find_expertsArguments",
"properties": {
"lat": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Lat",
"default": null
},
"lng": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Lng",
"default": null
},
"crop": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Crop",
"default": null
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name",
"default": null
},
"page": {
"type": "integer",
"title": "Page",
"default": 1
},
"place": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Place",
"default": null
},
"farm_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Farm Id",
"default": null
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"Price": {
"type": "object",
"title": "Price",
"required": [
"label"
],
"properties": {
"label": {
"type": "string",
"title": "Label"
},
"minutes": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Minutes",
"default": null
}
}
},
"ExpertCard": {
"type": "object",
"title": "ExpertCard",
"required": [
"expert_id",
"name",
"link"
],
"properties": {
"call": {
"anyOf": [
{
"$ref": "#/$defs/Price"
},
{
"type": "null"
}
],
"default": null
},
"link": {
"type": "string",
"title": "Link"
},
"name": {
"type": "string",
"title": "Name"
},
"role": {
"type": "string",
"title": "Role",
"default": ""
},
"knows": {
"type": "array",
"items": {
"type": "string"
},
"title": "Knows",
"default": []
},
"place": {
"type": "string",
"title": "Place",
"default": ""
},
"visit": {
"anyOf": [
{
"$ref": "#/$defs/Price"
},
{
"type": "null"
}
],
"default": null
},
"expert_id": {
"type": "string",
"title": "Expert Id"
},
"languages": {
"type": "array",
"items": {
"type": "string"
},
"title": "Languages",
"default": []
},
"programmes": {
"type": "integer",
"title": "Programmes",
"default": 0
},
"visits_you": {
"type": "boolean",
"title": "Visits You",
"default": false
},
"distance_km": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Distance Km",
"default": null
}
}
}
},
"title": "Experts",
"required": [
"summary",
"experts",
"link"
],
"properties": {
"link": {
"type": "string",
"title": "Link"
},
"experts": {
"type": "array",
"items": {
"$ref": "#/$defs/ExpertCard"
},
"title": "Experts"
},
"summary": {
"type": "string",
"title": "Summary"
},
"next_page": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Next Page",
"default": null
}
}
},
"annotations": {
"title": "Find an expert",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}How the person's farms are doing and what needs them. Per farm: the weather now, the days ahead and any warning; every crop, flock, herd, pond and hive with its stage, head count and the day it is ready; money in and out per unit with the margin worked out; tasks (late ones first); the latest work with who logged it. Then what waits on the person: unread conversations and who they are with, offers and deals to act on, and events they are going to. Leave out `farm_id` to read every farm (up to five).
| Parameter | Type | Description |
|---|---|---|
| farm_id | any |
{
"name": "farm_report",
"title": "Farm report",
"description": "How the person's farms are doing and what needs them. Per farm: the\nweather now, the days ahead and any warning; every crop, flock, herd,\npond and hive with its stage, head count and the day it is ready; money\nin and out per unit with the margin worked out; tasks (late ones first);\nthe latest work with who logged it. Then what waits on the person:\nunread conversations and who they are with, offers and deals to act on,\nand events they are going to. Leave out `farm_id` to read every farm (up\nto five).",
"inputSchema": {
"type": "object",
"title": "farm_reportArguments",
"properties": {
"farm_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Farm Id",
"default": null
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"Task": {
"type": "object",
"title": "Task",
"required": [
"id",
"title",
"link"
],
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"link": {
"type": "string",
"title": "Link"
},
"title": {
"type": "string",
"title": "Title"
},
"status": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Status",
"default": null
},
"overdue": {
"type": "boolean",
"title": "Overdue",
"default": false
},
"due_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Due Date",
"default": null
},
"for_what": {
"type": "string",
"title": "For What",
"default": ""
}
}
},
"Unit": {
"type": "object",
"title": "Unit",
"required": [
"id",
"name",
"what",
"kind",
"type"
],
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"kind": {
"type": "string",
"title": "Kind"
},
"name": {
"type": "string",
"title": "Name"
},
"type": {
"type": "string",
"title": "Type"
},
"what": {
"type": "string",
"title": "What"
},
"money": {
"anyOf": [
{
"$ref": "#/$defs/Margin"
},
{
"type": "null"
}
],
"default": null
},
"place": {
"type": "string",
"title": "Place",
"default": ""
},
"stage": {
"type": "string",
"title": "Stage",
"default": ""
},
"started": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Started",
"default": null
},
"zone_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Zone Id",
"default": null
},
"head_count": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Head Count",
"default": null
},
"ready_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Ready Date",
"default": null
},
"tasks_open": {
"type": "integer",
"title": "Tasks Open",
"default": 0
},
"planting_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Planting Date",
"default": null
},
"target_planting_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Target Planting Date",
"default": null
}
}
},
"Zone": {
"type": "object",
"title": "Zone",
"required": [
"id",
"name",
"kind"
],
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"kind": {
"type": "string",
"title": "Kind"
},
"name": {
"type": "string",
"title": "Name"
},
"area_hectares": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Area Hectares",
"default": null
}
}
},
"Money": {
"type": "object",
"title": "Money",
"required": [
"amount"
],
"properties": {
"label": {
"type": "string",
"title": "Label",
"default": ""
},
"amount": {
"type": "string",
"title": "Amount"
},
"currency": {
"type": "string",
"title": "Currency",
"default": ""
}
}
},
"Margin": {
"type": "object",
"title": "Margin",
"required": [
"income",
"expenses",
"margin",
"currency",
"words"
],
"properties": {
"words": {
"type": "string",
"title": "Words"
},
"income": {
"type": "number",
"title": "Income"
},
"margin": {
"type": "number",
"title": "Margin"
},
"currency": {
"type": "string",
"title": "Currency"
},
"expenses": {
"type": "number",
"title": "Expenses"
}
},
"description": "Money in and out, and what is left: already worked out."
},
"Record": {
"type": "object",
"title": "Record",
"required": [
"id",
"day",
"what",
"link"
],
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"day": {
"type": "string",
"title": "Day"
},
"link": {
"type": "string",
"title": "Link"
},
"what": {
"type": "string",
"title": "What"
},
"logged_by": {
"type": "string",
"title": "Logged By",
"default": ""
},
"operation": {
"type": "string",
"title": "Operation",
"default": ""
}
}
},
"Weather": {
"type": "object",
"title": "Weather",
"required": [
"state"
],
"properties": {
"now": {
"anyOf": [
{
"$ref": "#/$defs/WeatherNow"
},
{
"type": "null"
}
],
"default": null
},
"days": {
"type": "array",
"items": {
"$ref": "#/$defs/WeatherDay"
},
"title": "Days",
"default": []
},
"state": {
"type": "string",
"title": "State"
},
"alerts": {
"type": "array",
"items": {
"$ref": "#/$defs/WeatherAlert"
},
"title": "Alerts",
"default": []
},
"warnings": {
"type": "array",
"items": {
"$ref": "#/$defs/WeatherWarning"
},
"title": "Warnings",
"default": []
},
"temperature_unit": {
"type": "string",
"title": "Temperature Unit",
"default": "C"
}
},
"description": "``state`` is ready, location (the farm has no spot set) or unavailable."
},
"FarmCard": {
"type": "object",
"title": "FarmCard",
"required": [
"id",
"name",
"link"
],
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"link": {
"type": "string",
"title": "Link"
},
"name": {
"type": "string",
"title": "Name"
},
"currency": {
"type": "string",
"title": "Currency",
"default": ""
},
"district": {
"type": "string",
"title": "District",
"default": ""
},
"has_location": {
"type": "boolean",
"title": "Has Location",
"default": false
}
}
},
"OpenDeal": {
"type": "object",
"title": "OpenDeal",
"required": [
"id",
"link"
],
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"link": {
"type": "string",
"title": "Link"
},
"total": {
"anyOf": [
{
"$ref": "#/$defs/Money"
},
{
"type": "null"
}
],
"default": null
},
"listing": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Listing",
"default": null
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Quantity",
"default": null
},
"your_side": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Your Side",
"default": null
}
}
},
"FarmState": {
"type": "object",
"title": "FarmState",
"required": [
"farm",
"weather",
"units",
"zones",
"tasks_open",
"tasks_overdue",
"tasks_shown",
"recent_records"
],
"properties": {
"farm": {
"$ref": "#/$defs/FarmCard"
},
"money": {
"anyOf": [
{
"$ref": "#/$defs/Margin"
},
{
"type": "null"
}
],
"default": null
},
"units": {
"type": "array",
"items": {
"$ref": "#/$defs/Unit"
},
"title": "Units"
},
"zones": {
"type": "array",
"items": {
"$ref": "#/$defs/Zone"
},
"title": "Zones"
},
"weather": {
"$ref": "#/$defs/Weather"
},
"tasks_open": {
"type": "integer",
"title": "Tasks Open"
},
"tasks_shown": {
"type": "array",
"items": {
"$ref": "#/$defs/Task"
},
"title": "Tasks Shown"
},
"tasks_overdue": {
"type": "integer",
"title": "Tasks Overdue"
},
"recent_records": {
"type": "array",
"items": {
"$ref": "#/$defs/Record"
},
"title": "Recent Records"
}
}
},
"EventPlace": {
"type": "object",
"title": "EventPlace",
"properties": {
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title",
"default": null
},
"starts": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Starts",
"default": null
},
"status": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Status",
"default": null
},
"event_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Event Id",
"default": null
}
}
},
"WeatherDay": {
"type": "object",
"title": "WeatherDay",
"required": [
"date"
],
"properties": {
"max": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Max",
"default": null
},
"min": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Min",
"default": null
},
"date": {
"type": "string",
"title": "Date"
},
"summary": {
"type": "string",
"title": "Summary",
"default": ""
},
"rain_chance": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Rain Chance",
"default": null
}
}
},
"WeatherNow": {
"type": "object",
"title": "WeatherNow",
"properties": {
"temp": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Temp",
"default": null
},
"summary": {
"type": "string",
"title": "Summary",
"default": ""
},
"humidity": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Humidity",
"default": null
},
"feels_like": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Feels Like",
"default": null
},
"wind_speed": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Wind Speed",
"default": null
}
}
},
"Conversation": {
"type": "object",
"title": "Conversation",
"required": [
"conversation_id",
"link"
],
"properties": {
"link": {
"type": "string",
"title": "Link"
},
"unread": {
"type": "integer",
"title": "Unread",
"default": 0
},
"with_whom": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "With Whom",
"default": null
},
"last_message": {
"type": "string",
"title": "Last Message",
"default": ""
},
"conversation_id": {
"type": "string",
"title": "Conversation Id"
}
}
},
"OfferWaiting": {
"type": "object",
"title": "OfferWaiting",
"required": [
"waiting_on_you"
],
"properties": {
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Id",
"default": null
},
"link": {
"type": "string",
"title": "Link",
"default": ""
},
"total": {
"anyOf": [
{
"$ref": "#/$defs/Money"
},
{
"type": "null"
}
],
"default": null
},
"status": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Status",
"default": null
},
"listing": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Listing",
"default": null
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Quantity",
"default": null
},
"waiting_on_you": {
"type": "boolean",
"title": "Waiting On You"
}
}
},
"WeatherAlert": {
"type": "object",
"title": "WeatherAlert",
"properties": {
"ends": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Ends",
"default": null
},
"event": {
"type": "string",
"title": "Event",
"default": ""
},
"starts": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Starts",
"default": null
},
"issued_by": {
"type": "string",
"title": "Issued By",
"default": ""
},
"description": {
"type": "string",
"title": "Description",
"default": ""
}
}
},
"WeatherWarning": {
"type": "object",
"title": "WeatherWarning",
"required": [
"date",
"event",
"severity"
],
"properties": {
"date": {
"type": "string",
"title": "Date"
},
"unit": {
"type": "string",
"title": "Unit",
"default": ""
},
"event": {
"type": "string",
"title": "Event"
},
"place": {
"type": "string",
"title": "Place",
"default": ""
},
"reading": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Reading",
"default": null
},
"severity": {
"type": "string",
"title": "Severity"
}
}
}
},
"title": "FarmReport",
"required": [
"summary",
"farms",
"unread_threads",
"unread",
"offers_waiting",
"deals_open",
"events"
],
"properties": {
"farms": {
"type": "array",
"items": {
"$ref": "#/$defs/FarmState"
},
"title": "Farms"
},
"events": {
"type": "array",
"items": {
"$ref": "#/$defs/EventPlace"
},
"title": "Events"
},
"unread": {
"type": "array",
"items": {
"$ref": "#/$defs/Conversation"
},
"title": "Unread"
},
"summary": {
"type": "string",
"title": "Summary"
},
"deals_open": {
"type": "array",
"items": {
"$ref": "#/$defs/OpenDeal"
},
"title": "Deals Open"
},
"offers_waiting": {
"type": "array",
"items": {
"$ref": "#/$defs/OfferWaiting"
},
"title": "Offers Waiting"
},
"unread_threads": {
"type": "integer",
"title": "Unread Threads"
}
}
},
"annotations": {
"title": "Farm report",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Add a farm the person owns. Say where with `lat`/`lng` (best: advice is then for that spot) or a town or district as `place` (its centre is used until the spot is set in the app). Divisi fills in the country, currency and time zone. Pass the same `client_id` (a UUID) to retry safely.
| Parameter | Type | Description |
|---|---|---|
| lat | any | |
| lng | any | |
| name * | string | |
| place | any | |
| client_id | any | |
| description | string |
{
"name": "set_up_farm",
"title": "Set up a farm",
"description": "Add a farm the person owns. Say where with `lat`/`lng` (best: advice\nis then for that spot) or a town or district as `place` (its centre is\nused until the spot is set in the app). Divisi fills in the country,\ncurrency and time zone. Pass the same `client_id` (a UUID) to retry\nsafely.",
"inputSchema": {
"type": "object",
"title": "set_up_farmArguments",
"required": [
"name"
],
"properties": {
"lat": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Lat",
"default": null
},
"lng": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Lng",
"default": null
},
"name": {
"type": "string",
"title": "Name"
},
"place": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Place",
"default": null
},
"client_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Client Id",
"default": null
},
"description": {
"type": "string",
"title": "Description",
"default": ""
}
}
},
"outputSchema": {
"type": "object",
"title": "FarmSaved",
"required": [
"summary",
"farm_id",
"link"
],
"properties": {
"link": {
"type": "string",
"title": "Link"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name",
"default": null
},
"country": {
"type": "string",
"title": "Country",
"default": ""
},
"farm_id": {
"type": "string",
"title": "Farm Id"
},
"summary": {
"type": "string",
"title": "Summary"
},
"district": {
"type": "string",
"title": "District",
"default": ""
},
"finish_link": {
"type": "string",
"title": "Finish Link",
"default": ""
},
"finish_in_divisi": {
"type": "string",
"title": "Finish In Divisi",
"default": ""
}
}
},
"annotations": {
"title": "Set up a farm",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Rename a farm, change its description, or move it (`lat`/`lng`, or a `place`). Only what is passed changes. Only farm owners and managers can change a farm. `farm_id` may be left out when the person has one farm.
| Parameter | Type | Description |
|---|---|---|
| lat | any | |
| lng | any | |
| name | any | |
| place | any | |
| farm_id | any | |
| description | any |
{
"name": "update_farm",
"title": "Update a farm",
"description": "Rename a farm, change its description, or move it (`lat`/`lng`, or a\n`place`). Only what is passed changes. Only farm owners and managers can\nchange a farm. `farm_id` may be left out when the person has one farm.",
"inputSchema": {
"type": "object",
"title": "update_farmArguments",
"properties": {
"lat": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Lat",
"default": null
},
"lng": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Lng",
"default": null
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name",
"default": null
},
"place": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Place",
"default": null
},
"farm_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Farm Id",
"default": null
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Description",
"default": null
}
}
},
"outputSchema": {
"type": "object",
"title": "FarmSaved",
"required": [
"summary",
"farm_id",
"link"
],
"properties": {
"link": {
"type": "string",
"title": "Link"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name",
"default": null
},
"country": {
"type": "string",
"title": "Country",
"default": ""
},
"farm_id": {
"type": "string",
"title": "Farm Id"
},
"summary": {
"type": "string",
"title": "Summary"
},
"district": {
"type": "string",
"title": "District",
"default": ""
},
"finish_link": {
"type": "string",
"title": "Finish Link",
"default": ""
},
"finish_in_divisi": {
"type": "string",
"title": "Finish In Divisi",
"default": ""
}
}
},
"annotations": {
"title": "Update a farm",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}Add a field, pen, pond or apiary to a farm. A name already used gets a number added. Only farm owners and managers can add one. Pass the same `client_id` (a UUID) to retry safely.
| Parameter | Type | Description |
|---|---|---|
| kind | string | one of ["FIELD","COOP","PADDOCK","POND","APIARY"] |
| name * | string | |
| farm_id | any | |
| client_id | any | |
| area_hectares | any |
{
"name": "add_zone",
"title": "Add a field or pen",
"description": "Add a field, pen, pond or apiary to a farm. A name already used gets a\nnumber added. Only farm owners and managers can add one. Pass the same\n`client_id` (a UUID) to retry safely.",
"inputSchema": {
"type": "object",
"title": "add_zoneArguments",
"required": [
"name"
],
"properties": {
"kind": {
"enum": [
"FIELD",
"COOP",
"PADDOCK",
"POND",
"APIARY"
],
"type": "string",
"title": "Kind",
"default": "FIELD"
},
"name": {
"type": "string",
"title": "Name"
},
"farm_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Farm Id",
"default": null
},
"client_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Client Id",
"default": null
},
"area_hectares": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Area Hectares",
"default": null
}
}
},
"outputSchema": {
"type": "object",
"title": "ZoneAdded",
"required": [
"summary",
"zone_id",
"farm_id",
"name",
"kind",
"link"
],
"properties": {
"kind": {
"type": "string",
"title": "Kind"
},
"link": {
"type": "string",
"title": "Link"
},
"name": {
"type": "string",
"title": "Name"
},
"farm_id": {
"type": "string",
"title": "Farm Id"
},
"summary": {
"type": "string",
"title": "Summary"
},
"zone_id": {
"type": "string",
"title": "Zone Id"
},
"finish_link": {
"type": "string",
"title": "Finish Link",
"default": ""
},
"finish_in_divisi": {
"type": "string",
"title": "Finish In Divisi",
"default": ""
}
}
},
"annotations": {
"title": "Add a field or pen",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Add something the person grows or keeps, the way the app does, and Divisi schedules its tasks. `what` is in their words: a crop ("maize"), or animals ("broilers", "layers", "road runners", "goats", "tilapia", "bees"); `kind` is worked out from it unless given. A crop goes on a field: `target_planting_date` is the day they mean to plant, `planting_date` only if it is already in the ground. Animals: `count` (needed for poultry), `start_date` (the day they arrived; today if left out) and optionally `ready_date`, the day they expect to sell, which is added as a task. `place` is the field, coop, pen, pond or apiary, by name or id; a new name makes one. Left out, the farm's only place of that kind is used. Only farm owners and managers can add one. Pass the same `client_id` (a UUID) to retry safely.
| Parameter | Type | Description |
|---|---|---|
| kind | any | |
| name | any | |
| what * | string | |
| count | any | |
| place | any | |
| farm_id | any | |
| client_id | any | |
| ready_date | any | |
| start_date | any | |
| area_hectares |
Write work done, money in or out, or both, into the farm records, in the person's words. `unit` names the crop or batch it was for (its name or id); leave it out for the whole farm. `day` defaults to today. Work: `what`, and optionally `operation` (PLANTING, WEEDING, FERTILISING, SPRAYING, IRRIGATION, SCOUTING, HARVEST, POST_HARVEST, LAND_PREP, FEEDING or OTHER). Money: `amount` with `money` ("income" or "expense"); `category` in their words or a code (feed, day-old chicks, vaccine, labour, transport, bird sale, crop sale…), worked out when left out; `currency` defaults to the farm's; `quantity` is how many were bought or sold (birds sold this way leave the flock count). Pass the same `client_id` (a UUID) to retry safely.
| Parameter | Type | Description |
|---|---|---|
| day | any | |
| unit | any | |
| what | string | |
| money | any | |
| amount | any | |
| farm_id | any | |
| category | any | |
| currency | any | |
| quantity | any | |
| client_id | any | |
Money in, money out and what is left, worked out: per crop or batch, for costs of the whole farm, and in total, with the totals by heading the app's income statement shows and the latest records. `unit` (a name or id) reads one crop or batch; `since`/`until` limit the days. Leave out `farm_id` to read every farm.
| Parameter | Type | Description |
|---|---|---|
| unit | any | |
| since | any | |
| until | any | |
| farm_id | any |
{
"name": "farm_money",
"title": "Farm money",
"description": "Money in, money out and what is left, worked out: per crop or batch,\nfor costs of the whole farm, and in total, with the totals by heading\nthe app's income statement shows and the latest records. `unit` (a name\nor id) reads one crop or batch; `since`/`until` limit the days. Leave\nout `farm_id` to read every farm.",
"inputSchema": {
"type": "object",
"title": "farm_moneyArguments",
"properties": {
"unit": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Unit",
"default": null
},
"since": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"title": "Since",
"default": null
},
"until": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"title": "Until",
"default": null
},
"farm_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Farm Id",
"default": null
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"Margin": {
"type": "object",
"title": "Margin",
"required": [
"income",
"expenses",
"margin",
"currency",
"words"
],
"properties": {
"words": {
"type": "string",
"title": "Words"
},
"income": {
"type": "number",
"title": "Income"
},
"margin": {
"type": "number",
"title": "Margin"
},
"currency": {
"type": "string",
"title": "Currency"
},
"expenses": {
"type": "number",
"title": "Expenses"
}
},
"description": "Money in and out, and what is left: already worked out."
},
"FarmCard": {
"type": "object",
"title": "FarmCard",
"required": [
"id",
"name",
"link"
],
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"link": {
"type": "string",
"title": "Link"
},
"name": {
"type": "string",
"title": "Name"
},
"currency": {
"type": "string",
"title": "Currency",
"default": ""
},
"district": {
"type": "string",
"title": "District",
"default": ""
},
"has_location": {
"type": "boolean",
"title": "Has Location",
"default": false
}
}
},
"FarmBooks": {
"type": "object",
"title": "FarmBooks",
"required": [
"farm",
"total",
"units",
"farm_wide",
"by_group",
"recent"
],
"properties": {
"farm": {
"$ref": "#/$defs/FarmCard"
},
"since": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Since",
"default": null
},
"total": {
"$ref": "#/$defs/Margin"
},
"units": {
"type": "array",
"items": {
"$ref": "#/$defs/UnitMoney"
},
"title": "Units"
},
"until": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Until",
"default": null
},
"recent": {
"type": "array",
"items": {
"$ref": "#/$defs/MoneyRecord"
},
"title": "Recent"
},
"by_group": {
"type": "array",
"items": {
"$ref": "#/$defs/GroupTotal"
},
"title": "By Group"
},
"farm_wide": {
"$ref": "#/$defs/Margin"
}
}
},
"UnitMoney": {
"type": "object",
"title": "UnitMoney",
"required": [
"income",
"expenses",
"margin",
"currency",
"words",
"unit_id",
"name",
"records"
],
"properties": {
"name": {
"type": "string",
"title": "Name"
},
"words": {
"type": "string",
"title": "Words"
},
"income": {
"type": "number",
"title": "Income"
},
"margin": {
"type": "number",
"title": "Margin"
},
"records": {
"type": "integer",
"title": "Records"
},
"unit_id": {
"type": "string",
"title": "Unit Id"
},
"currency": {
"type": "string",
"title": "Currency"
},
"expenses": {
"type": "number",
"title": "Expenses"
}
}
},
"GroupTotal": {
"type": "object",
"title": "GroupTotal",
"required": [
"direction",
"group",
"total",
"currency",
"records"
],
"properties": {
"group": {
"type": "string",
"title": "Group"
},
"total": {
"type": "number",
"title": "Total"
},
"records": {
"type": "integer",
"title": "Records"
},
"currency": {
"type": "string",
"title": "Currency"
},
"direction": {
"type": "string",
"title": "Direction"
}
}
},
"MoneyRecord": {
"type": "object",
"title": "MoneyRecord",
"required": [
"id",
"day",
"direction",
"category",
"amount",
"currency"
],
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"day": {
"type": "string",
"title": "Day"
},
"notes": {
"type": "string",
"title": "Notes",
"default": ""
},
"amount": {
"type": "number",
"title": "Amount"
},
"category": {
"type": "string",
"title": "Category"
},
"currency": {
"type": "string",
"title": "Currency"
},
"for_what": {
"type": "string",
"title": "For What",
"default": ""
},
"direction": {
"type": "string",
"title": "Direction"
}
}
}
},
"title": "FarmMoney",
"required": [
"summary",
"farms"
],
"properties": {
"farms": {
"type": "array",
"items": {
"$ref": "#/$defs/FarmBooks"
},
"title": "Farms"
},
"summary": {
"type": "string",
"title": "Summary"
}
}
},
"annotations": {
"title": "Farm money",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Add a task to a farm, due on `due_date` (within a year back or two years ahead), optionally for one crop or batch (`unit`, a name or id). It shows with the farm's other tasks in the app. Only owners and managers can add one. Pass the same `client_id` to retry safely.
| Parameter | Type | Description |
|---|---|---|
| unit | any | |
| title * | string | |
| farm_id | any | |
| due_date * | string | |
| client_id | any | |
| description | string |
{
"name": "add_task",
"title": "Add a farm task",
"description": "Add a task to a farm, due on `due_date` (within a year back or two\nyears ahead), optionally for one crop or batch (`unit`, a name or id).\nIt shows with the farm's other tasks in the app. Only owners and\nmanagers can add one. Pass the same `client_id` to retry safely.",
"inputSchema": {
"type": "object",
"title": "add_taskArguments",
"required": [
"title",
"due_date"
],
"properties": {
"unit": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Unit",
"default": null
},
"title": {
"type": "string",
"title": "Title"
},
"farm_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Farm Id",
"default": null
},
"due_date": {
"type": "string",
"title": "Due Date",
"format": "date"
},
"client_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Client Id",
"default": null
},
"description": {
"type": "string",
"title": "Description",
"default": ""
}
}
},
"outputSchema": {
"type": "object",
"title": "TaskAdded",
"required": [
"summary",
"task_id",
"farm_id",
"title",
"due_date",
"link"
],
"properties": {
"link": {
"type": "string",
"title": "Link"
},
"title": {
"type": "string",
"title": "Title"
},
"farm_id": {
"type": "string",
"title": "Farm Id"
},
"summary": {
"type": "string",
"title": "Summary"
},
"task_id": {
"type": "string",
"title": "Task Id"
},
"due_date": {
"type": "string",
"title": "Due Date"
}
}
},
"annotations": {
"title": "Add a farm task",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Look after a task: mark it done (`done`, with an optional `note` of what was done and the `day`, today if left out), move it to another `due_date`, or rename it (`title`). `skip` takes it off the list for this season (a guide's task the person will not do) and `unskip` brings it back; `remove` deletes a task the person added themselves, and a task from a guide is skipped instead. Skip, unskip and remove stand alone. Only what is passed changes. Pass the same `client_id` (a UUID) to retry safely.
| Parameter | Type | Description |
|---|---|---|
| day | any | |
| done | boolean | |
| note | string | |
| skip | boolean | |
| title | any | |
| remove | boolean | |
| unskip | boolean | |
| farm_id | any | |
| task_id * | string | |
| due_date | any | |
| client_id | any |
Write the person's own season plan for one crop or batch (`unit`, a name or id): the jobs they want and when. Divisi turns each into a task with a date that moves when they plant or the birds arrive, and shows it in the app beside the guide's own tasks. Work the plan out WITH the person and confirm the jobs and days before you write it. Each task is `name`, `anchor`, `start_day`, optionally `end_day`, `repeat_every_days` and `notes` (why, or how). `anchor` is what the days count from: "planting" (the day the crop goes in), "transplanting", "start of the season" (a crop already growing), or "arrival" (the day the birds or animals arrive). `start_day` is days after it (a negative number is before it); `end_day` is the last day it can still be done, the same as `start_day` if left out. A task that repeats needs `repeat_every_days` and an `end_day` for how long. At most 80 tasks. By default the tasks are added to the plan the person already has; `replace` writes this list instead, and tasks that left the plan come off their list (work already done stays). Pass the same `client_id` to retry safely.
| Parameter | Type | Description |
|---|---|---|
| unit * | string | |
| tasks * | array | |
| farm_id | any | |
| replace | boolean | |
| client_id | any |
{
"name": "plan_season",
"title": "Plan a season",
"description": "Write the person's own season plan for one crop or batch (`unit`, a\nname or id): the jobs they want and when. Divisi turns each into a task\nwith a date that moves when they plant or the birds arrive, and shows it\nin the app beside the guide's own tasks.\n\nWork the plan out WITH the person and confirm the jobs and days before\nyou write it. Each task is `name`, `anchor`, `start_day`, optionally\n`end_day`, `repeat_every_days` and `notes` (why, or how). `anchor` is\nwhat the days count from: \"planting\" (the day the crop goes in),\n\"transplanting\", \"start of the season\" (a crop already growing), or\n\"arrival\" (the day the birds or animals arrive). `start_day` is days\nafter it (a negative number is before it); `end_day` is the last day it\ncan still be done, the same as `start_day` if left out. A task that\nrepeats needs `repeat_every_days` and an `end_day` for how long. At most\n80 tasks.\n\nBy default the tasks are added to the plan the person already has;\n`replace` writes this list instead, and tasks that left the plan come\noff their list (work already done stays). Pass the same `client_id` to\nretry safely.",
"inputSchema": {
"type": "object",
"$defs": {
"SeasonTask": {
"type": "object",
"title": "SeasonTask",
"required": [
"name",
"anchor",
"start_day"
],
"properties": {
"name": {
"type": "string",
"title": "Name"
},
"notes": {
"type": "string",
"title": "Notes",
"default": ""
},
"anchor": {
"type": "string",
"title": "Anchor"
},
"end_day": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "End Day",
"default": null
},
"start_day": {
"type": "integer",
"title": "Start Day"
},
"repeat_every_days": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Repeat Every Days",
"default": null
}
},
"description": "One job in a season plan, as the person said it."
}
},
"title": "plan_seasonArguments",
"required": [
"unit",
"tasks"
],
"properties": {
"unit": {
"type": "string",
"title": "Unit"
},
"tasks": {
"type": "array",
"items": {
"$ref": "#/$defs/SeasonTask"
},
"title": "Tasks"
},
"farm_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Farm Id",
"default": null
},
"replace": {
"type": "boolean",
"title": "Replace",
"default": false
},
"client_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Client Id",
"default": null
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"PlannedTask": {
"type": "object",
"title": "PlannedTask",
"required": [
"id",
"title",
"status"
],
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"title": {
"type": "string",
"title": "Title"
},
"status": {
"type": "string",
"title": "Status"
},
"due_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Due Date",
"default": null
}
}
}
},
"title": "SeasonPlanned",
"required": [
"summary",
"unit_id",
"farm_id",
"tasks_planned",
"tasks_dated",
"next_tasks",
"tasks",
"link"
],
"properties": {
"link": {
"type": "string",
"title": "Link"
},
"tasks": {
"type": "array",
"items": {
"$ref": "#/$defs/PlannedTask"
},
"title": "Tasks"
},
"farm_id": {
"type": "string",
"title": "Farm Id"
},
"summary": {
"type": "string",
"title": "Summary"
},
"unit_id": {
"type": "string",
"title": "Unit Id"
},
"next_tasks": {
"type": "array",
"items": {
"$ref": "#/$defs/PlannedTask"
},
"title": "Next Tasks"
},
"tasks_dated": {
"type": "integer",
"title": "Tasks Dated"
},
"tasks_planned": {
"type": "integer",
"title": "Tasks Planned"
}
}
},
"annotations": {
"title": "Plan a season",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Move a crop's or batch's tasks that are not done so the first of them falls on `start_on`, keeping the gaps between them: when planting slipped, or the birds came late. Work `start_on` out from what the person says: "two weeks later" is the current first date plus 14. `from_date` moves only tasks due on or after that day; `stage` only those in one stage of the plan. Skipped tasks stay put, and so do repeating tasks from a guide, which keep their own rhythm. Confirm the new date with the person first. Safe to retry: once the first task is on `start_on`, nothing more moves.
| Parameter | Type | Description |
|---|---|---|
| unit * | string | |
| stage | any | |
| farm_id | any | |
| start_on * | string | |
| client_id | any | |
| from_date | any |
{
"name": "move_tasks",
"title": "Move a unit's tasks",
"description": "Move a crop's or batch's tasks that are not done so the first of\nthem falls on `start_on`, keeping the gaps between them: when planting\nslipped, or the birds came late. Work `start_on` out from what the\nperson says: \"two weeks later\" is the current first date plus 14.\n`from_date` moves only tasks due on or after that\nday; `stage` only those in one stage of the plan. Skipped tasks stay\nput, and so do repeating tasks from a guide, which keep their own\nrhythm. Confirm the new date with the person first. Safe to retry: once\nthe first task is on `start_on`, nothing more moves.",
"inputSchema": {
"type": "object",
"title": "move_tasksArguments",
"required": [
"unit",
"start_on"
],
"properties": {
"unit": {
"type": "string",
"title": "Unit"
},
"stage": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Stage",
"default": null
},
"farm_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Farm Id",
"default": null
},
"start_on": {
"type": "string",
"title": "Start On",
"format": "date"
},
"client_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Client Id",
"default": null
},
"from_date": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"title": "From Date",
"default": null
}
}
},
"outputSchema": {
"type": "object",
"title": "TasksMoved",
"required": [
"summary",
"unit_id",
"farm_id",
"moved",
"not_moved",
"link"
],
"properties": {
"link": {
"type": "string",
"title": "Link"
},
"moved": {
"type": "integer",
"title": "Moved"
},
"farm_id": {
"type": "string",
"title": "Farm Id"
},
"summary": {
"type": "string",
"title": "Summary"
},
"unit_id": {
"type": "string",
"title": "Unit Id"
},
"not_moved": {
"type": "integer",
"title": "Not Moved"
},
"first_due_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "First Due Date",
"default": null
}
}
},
"annotations": {
"title": "Move a unit's tasks",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}Ask Divisi's agronomists, experts and other farmers by posting the question in Community as the person. It is public and free; answers come as replies in the app. `background` is what is known so far (crop stage, what was tried); the post says it was written with an AI assistant. Photos only as `{type, id}` refs already on Divisi. Pass the same `client_id` (a UUID) to retry safely.
| Parameter | Type | Description |
|---|---|---|
| crop | any | |
| media | any | |
| question * | string | |
| client_id | any | |
| background | string |
{
"name": "ask_agronomist",
"title": "Ask an expert",
"description": "Ask Divisi's agronomists, experts and other farmers by posting the\nquestion in Community as the person. It is public and free; answers come\nas replies in the app. `background` is what is known so far (crop stage,\nwhat was tried); the post says it was written with an AI assistant.\nPhotos only as `{type, id}` refs already on Divisi. Pass the same\n`client_id` (a UUID) to retry safely.",
"inputSchema": {
"type": "object",
"title": "ask_agronomistArguments",
"required": [
"question"
],
"properties": {
"crop": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Crop",
"default": null
},
"media": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
{
"type": "null"
}
],
"title": "Media",
"default": null
},
"question": {
"type": "string",
"title": "Question"
},
"client_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Client Id",
"default": null
},
"background": {
"type": "string",
"title": "Background",
"default": ""
}
}
},
"outputSchema": {
"type": "object",
"title": "Asked",
"required": [
"summary",
"post_id",
"link"
],
"properties": {
"link": {
"type": "string",
"title": "Link"
},
"post_id": {
"type": "string",
"title": "Post Id"
},
"summary": {
"type": "string",
"title": "Summary"
},
"created_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Created At",
"default": null
},
"photos_not_attached": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
},
"title": "Photos Not Attached",
"default": []
}
}
},
"annotations": {
"title": "Ask an expert",
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}The person's message conversations, newest first, each with who it is with, how many messages are unread and the last message. `search` matches a person, group or message text. Pages of 30. Reading marks nothing as read.
| Parameter | Type | Description |
|---|---|---|
| page | integer | |
| search | any |
{
"name": "inbox",
"title": "Read the inbox",
"description": "The person's message conversations, newest first, each with who it is with,\nhow many messages are unread and the last message. `search` matches a\nperson, group or message text. Pages of 30. Reading marks nothing as\nread.",
"inputSchema": {
"type": "object",
"title": "inboxArguments",
"properties": {
"page": {
"type": "integer",
"title": "Page",
"default": 1
},
"search": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Search",
"default": null
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"Thread": {
"type": "object",
"title": "Thread",
"required": [
"conversation_id",
"link"
],
"properties": {
"kind": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Kind",
"default": null
},
"link": {
"type": "string",
"title": "Link"
},
"status": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Status",
"default": null
},
"unread": {
"type": "integer",
"title": "Unread",
"default": 0
},
"with_whom": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "With Whom",
"default": null
},
"updated_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Updated At",
"default": null
},
"last_from_me": {
"type": "boolean",
"title": "Last From Me",
"default": false
},
"last_message": {
"type": "string",
"title": "Last Message",
"default": ""
},
"conversation_id": {
"type": "string",
"title": "Conversation Id"
}
}
}
},
"title": "Inbox",
"required": [
"summary",
"unread_threads",
"threads"
],
"properties": {
"summary": {
"type": "string",
"title": "Summary"
},
"threads": {
"type": "array",
"items": {
"$ref": "#/$defs/Thread"
},
"title": "Threads"
},
"next_page": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Next Page",
"default": null
},
"unread_threads": {
"type": "integer",
"title": "Unread Threads"
}
}
},
"annotations": {
"title": "Read the inbox",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}The messages in one of the person's conversations, newest first, 30 a page. Only conversations they are in can be read.
| Parameter | Type | Description |
|---|---|---|
| page | integer | |
| conversation_id * | string |
{
"name": "read_thread",
"title": "Read a conversation",
"description": "The messages in one of the person's conversations, newest first, 30 a\npage. Only conversations they are in can be read.",
"inputSchema": {
"type": "object",
"title": "read_threadArguments",
"required": [
"conversation_id"
],
"properties": {
"page": {
"type": "integer",
"title": "Page",
"default": 1
},
"conversation_id": {
"type": "string",
"title": "Conversation Id"
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"Person": {
"type": "object",
"title": "Person",
"properties": {
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Id",
"default": null
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name",
"default": null
}
}
},
"Message": {
"type": "object",
"title": "Message",
"required": [
"mine"
],
"properties": {
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Id",
"default": null
},
"body": {
"type": "string",
"title": "Body",
"default": ""
},
"kind": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Kind",
"default": null
},
"mine": {
"type": "boolean",
"title": "Mine"
},
"sender": {
"anyOf": [
{
"$ref": "#/$defs/Person"
},
{
"type": "null"
}
],
"default": null
},
"sent_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Sent At",
"default": null
},
"has_media": {
"type": "boolean",
"title": "Has Media",
"default": false
}
}
}
},
"title": "ThreadMessages",
"required": [
"summary",
"conversation_id",
"link",
"messages"
],
"properties": {
"kind": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Kind",
"default": null
},
"link": {
"type": "string",
"title": "Link"
},
"status": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Status",
"default": null
},
"unread": {
"type": "integer",
"title": "Unread",
"default": 0
},
"summary": {
"type": "string",
"title": "Summary"
},
"messages": {
"type": "array",
"items": {
"$ref": "#/$defs/Message"
},
"title": "Messages"
},
"next_page": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Next Page",
"default": null
},
"with_whom": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "With Whom",
"default": null
},
"updated_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Updated At",
"default": null
},
"last_from_me": {
"type": "boolean",
"title": "Last From Me",
"default": false
},
"last_message": {
"type": "string",
"title": "Last Message",
"default": ""
},
"conversation_id": {
"type": "string",
"title": "Conversation Id"
}
}
},
"annotations": {
"title": "Read a conversation",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Send a text message as the person: into a conversation they are in (`conversation_id`), or to a person (`to_person_id`), which opens or reuses their direct conversation. A first message to someone who does not follow them is a request the other person accepts first. Blocked people cannot be messaged. Pass the same `client_id` (a UUID) to retry safely.
| Parameter | Type | Description |
|---|---|---|
| body * | string | |
| client_id | any | |
| to_person_id | any | |
| conversation_id | any |
{
"name": "send_message",
"title": "Send a message",
"description": "Send a text message as the person: into a conversation they are in\n(`conversation_id`), or to a person (`to_person_id`), which opens or\nreuses their direct conversation. A first message to someone who does not\nfollow them is a request the other person accepts first. Blocked people\ncannot be messaged. Pass the same `client_id` (a UUID) to retry\nsafely.",
"inputSchema": {
"type": "object",
"title": "send_messageArguments",
"required": [
"body"
],
"properties": {
"body": {
"type": "string",
"title": "Body"
},
"client_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Client Id",
"default": null
},
"to_person_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "To Person Id",
"default": null
},
"conversation_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Conversation Id",
"default": null
}
}
},
"outputSchema": {
"type": "object",
"title": "Sent",
"required": [
"summary",
"message_id",
"conversation_id",
"link"
],
"properties": {
"link": {
"type": "string",
"title": "Link"
},
"sent_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Sent At",
"default": null
},
"summary": {
"type": "string",
"title": "Summary"
},
"message_id": {
"type": "string",
"title": "Message Id"
},
"thread_status": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Thread Status",
"default": null
},
"conversation_id": {
"type": "string",
"title": "Conversation Id"
}
}
},
"annotations": {
"title": "Send a message",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Put something on the Market as the person, from what they said in one sentence ("40 broilers ready on the 12th, Harare"): produce for sale (`kind` SALE) or something they want to buy (WANTED, with a `quantity`). `item` and `unit` are plain words ("tomatoes", "20 L bucket"). Left out, a sale takes the unit most local prices use and the usual local `price` (in major units, such as 12.50), and the place's currency; say that price to the person. `ready_on` (YYYY-MM-DD, up to 90 days ahead) lists it now as a pre-order. It needs a place: a town, one of their farms or a lat/lng; with none, their only farm. A sale needs a photo already on Divisi (`media` as `{type, id}` refs); without one the reply is the link to the screen where they add it, signed in on the web or in the app. Reuse `client_id` (a UUID) to retry. Nothing is charged.
| Parameter | Type | Description |
|---|---|---|
| lat | any | |
| lng | any | |
| item * | string | |
| kind * | string | one of ["SALE","WANTED"] |
| unit | any | |
| media | any | |
| place | any | |
| price | any | |
| farm_id | any |
Put a crop or a batch of animals from the person's farm up for sale, as it nears harvest or slaughter. Divisi fills in what it knows: what it is and its variety, the farm's place and currency, how many animals the batch holds today, the day it is ready (listed ahead as a pre-order up to 90 days early), the unit most local prices use, and the usual local price when no `price` is given (say that price to the person). Give any of them to change it. Without `production_unit_id`, their only crop or batch; with several, the error lists them to choose from. A sale needs a photo already on Divisi (`media` as `{type, id}` refs); without one the reply is the link to the screen where they add it, signed in on the web or in the app. Reuse `client_id` to retry.
| Parameter | Type | Description |
|---|---|---|
| unit | any | |
| media | any | |
| price | any | |
| farm_id | any | |
| quantity | any | |
| ready_on | any | |
| client_id | any | |
| description | string | |
| production_unit_id | any |
Keep one of the person's listings up to date: `renew` keeps it on the Market (with `quantity_available`, how many are left now), `sold` takes it down as sold out, `hide` takes it off the Market for now and `show` puts a hidden one back. Reuse `client_id` to retry.
| Parameter | Type | Description |
|---|---|---|
| action * | string | one of ["renew","sold","hide","show"] |
| client_id | any | |
| listing_id * | string | |
| quantity_available | any |
{
"name": "manage_listing",
"title": "Keep a listing up",
"description": "Keep one of the person's listings up to date: `renew` keeps it on the\nMarket (with `quantity_available`, how many are left now), `sold` takes\nit down as sold out, `hide` takes it off the Market for now and `show`\nputs a hidden one back. Reuse `client_id` to retry.",
"inputSchema": {
"type": "object",
"title": "manage_listingArguments",
"required": [
"listing_id",
"action"
],
"properties": {
"action": {
"enum": [
"renew",
"sold",
"hide",
"show"
],
"type": "string",
"title": "Action"
},
"client_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Client Id",
"default": null
},
"listing_id": {
"type": "string",
"title": "Listing Id"
},
"quantity_available": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Quantity Available",
"default": null
}
}
},
"outputSchema": {
"type": "object",
"title": "ListingKept",
"required": [
"summary",
"listing_id",
"link"
],
"properties": {
"link": {
"type": "string",
"title": "Link"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title",
"default": null
},
"status": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Status",
"default": null
},
"summary": {
"type": "string",
"title": "Summary"
},
"expires_on": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Expires On",
"default": null
},
"listing_id": {
"type": "string",
"title": "Listing Id"
},
"quantity_available": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Quantity Available",
"default": null
}
}
},
"annotations": {
"title": "Keep a listing up",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}Write down a sale from one of the person's listings that happened outside Divisi (at the gate, on WhatsApp): `quantity` of the listing's unit at `price_per_unit`, on `sold_on` (YYYY-MM-DD, today if left out), to `buyer` if they want a name. What is left on the listing goes down, and the money goes into the farm's books. Reuse `client_id` to retry.
| Parameter | Type | Description |
|---|---|---|
| note | string | |
| buyer | string | |
| sold_on | any | |
| quantity * | number | |
| client_id | any | |
| listing_id * | string | |
| price_per_unit * | number |
{
"name": "record_sale",
"title": "Write down a sale",
"description": "Write down a sale from one of the person's listings that happened\noutside Divisi (at the gate, on WhatsApp): `quantity` of the listing's\nunit at `price_per_unit`, on `sold_on` (YYYY-MM-DD, today if left out),\nto `buyer` if they want a name. What is left on the listing goes down,\nand the money goes into the farm's books. Reuse `client_id` to retry.",
"inputSchema": {
"type": "object",
"title": "record_saleArguments",
"required": [
"listing_id",
"quantity",
"price_per_unit"
],
"properties": {
"note": {
"type": "string",
"title": "Note",
"default": ""
},
"buyer": {
"type": "string",
"title": "Buyer",
"default": ""
},
"sold_on": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Sold On",
"default": null
},
"quantity": {
"type": "number",
"title": "Quantity"
},
"client_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Client Id",
"default": null
},
"listing_id": {
"type": "string",
"title": "Listing Id"
},
"price_per_unit": {
"type": "number",
"title": "Price Per Unit"
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"Money": {
"type": "object",
"title": "Money",
"required": [
"amount"
],
"properties": {
"label": {
"type": "string",
"title": "Label",
"default": ""
},
"amount": {
"type": "string",
"title": "Amount"
},
"currency": {
"type": "string",
"title": "Currency",
"default": ""
}
}
}
},
"title": "SaleRecorded",
"required": [
"summary",
"sale_id",
"listing_id",
"total",
"link"
],
"properties": {
"link": {
"type": "string",
"title": "Link"
},
"total": {
"$ref": "#/$defs/Money"
},
"sale_id": {
"type": "string",
"title": "Sale Id"
},
"summary": {
"type": "string",
"title": "Summary"
},
"listing_id": {
"type": "string",
"title": "Listing Id"
},
"listing_status": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Listing Status",
"default": null
}
}
},
"annotations": {
"title": "Write down a sale",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Offer to buy from (or sell to) a listing as the person: `quantity` of its unit at `price_per_unit` in major units. A buyer chooses how to pay: `divisi` (the default where Divisi can take the payment: they pay before meeting and the money is held until they have the goods) or `cash` when they meet. The reply says which it is. The other person answers in Divisi. Reuse `client_id` to retry.
| Parameter | Type | Description |
|---|---|---|
| message | string | |
| delivery | boolean | |
| pay_with | any | |
| quantity * | number | |
| client_id | any | |
| listing_id * | string | |
| price_per_unit * | number |
{
"name": "make_offer",
"title": "Make an offer",
"description": "Offer to buy from (or sell to) a listing as the person: `quantity` of\nits unit at `price_per_unit` in major units. A buyer chooses how to pay:\n`divisi` (the default where Divisi can take the payment: they pay before\nmeeting and the money is held until they have the goods) or `cash` when\nthey meet. The reply says which it is. The other person answers in\nDivisi. Reuse `client_id` to retry.",
"inputSchema": {
"type": "object",
"title": "make_offerArguments",
"required": [
"listing_id",
"quantity",
"price_per_unit"
],
"properties": {
"message": {
"type": "string",
"title": "Message",
"default": ""
},
"delivery": {
"type": "boolean",
"title": "Delivery",
"default": false
},
"pay_with": {
"anyOf": [
{
"enum": [
"divisi",
"cash"
],
"type": "string"
},
{
"type": "null"
}
],
"title": "Pay With",
"default": null
},
"quantity": {
"type": "number",
"title": "Quantity"
},
"client_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Client Id",
"default": null
},
"listing_id": {
"type": "string",
"title": "Listing Id"
},
"price_per_unit": {
"type": "number",
"title": "Price Per Unit"
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"Money": {
"type": "object",
"title": "Money",
"required": [
"amount"
],
"properties": {
"label": {
"type": "string",
"title": "Label",
"default": ""
},
"amount": {
"type": "string",
"title": "Amount"
},
"currency": {
"type": "string",
"title": "Currency",
"default": ""
}
}
},
"Offer": {
"type": "object",
"title": "Offer",
"properties": {
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Id",
"default": null
},
"total": {
"anyOf": [
{
"$ref": "#/$defs/Money"
},
{
"type": "null"
}
],
"default": null
},
"status": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Status",
"default": null
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Quantity",
"default": null
},
"listing_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Listing Id",
"default": null
},
"pay_method": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Pay Method",
"default": null
},
"price_per_unit": {
"anyOf": [
{
"$ref": "#/$defs/Money"
},
{
"type": "null"
}
],
"default": null
}
}
}
},
"title": "OfferMade",
"required": [
"summary",
"offer",
"pay_with",
"link"
],
"properties": {
"link": {
"type": "string",
"title": "Link"
},
"offer": {
"$ref": "#/$defs/Offer"
},
"summary": {
"type": "string",
"title": "Summary"
},
"pay_with": {
"enum": [
"divisi",
"cash"
],
"type": "string",
"title": "Pay With"
},
"divisi_unavailable": {
"type": "boolean",
"title": "Divisi Unavailable",
"default": false
}
}
},
"annotations": {
"title": "Make an offer",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Answer an offer the person received: `accept` (makes a deal), `decline`, or `counter` with another `price_per_unit` (and `quantity`, the same as asked if left out). `withdraw` takes back one they made. A buyer accepting may choose `pay_with`; otherwise the offer's own choice stands. The reply says how the deal is paid. Reuse `client_id` to retry.
| Parameter | Type | Description |
|---|---|---|
| action * | string | one of ["accept","decline","withdraw","counter"] |
| message | string | |
| offer_id * | string | |
| pay_with | any | |
| quantity | any | |
| client_id | any | |
| price_per_unit | any |
{
"name": "respond_to_offer",
"title": "Answer an offer",
"description": "Answer an offer the person received: `accept` (makes a deal),\n`decline`, or `counter` with another `price_per_unit` (and `quantity`,\nthe same as asked if left out). `withdraw` takes back one they made. A\nbuyer accepting may choose `pay_with`; otherwise the offer's own choice\nstands. The reply says how the deal is paid. Reuse `client_id` to\nretry.",
"inputSchema": {
"type": "object",
"title": "respond_to_offerArguments",
"required": [
"offer_id",
"action"
],
"properties": {
"action": {
"enum": [
"accept",
"decline",
"withdraw",
"counter"
],
"type": "string",
"title": "Action"
},
"message": {
"type": "string",
"title": "Message",
"default": ""
},
"offer_id": {
"type": "string",
"title": "Offer Id"
},
"pay_with": {
"anyOf": [
{
"enum": [
"divisi",
"cash"
],
"type": "string"
},
{
"type": "null"
}
],
"title": "Pay With",
"default": null
},
"quantity": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Quantity",
"default": null
},
"client_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Client Id",
"default": null
},
"price_per_unit": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Price Per Unit",
"default": null
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"Deal": {
"type": "object",
"title": "Deal",
"required": [
"link"
],
"properties": {
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Id",
"default": null
},
"link": {
"type": "string",
"title": "Link"
},
"status": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Status",
"default": null
},
"pay_with": {
"anyOf": [
{
"enum": [
"divisi",
"cash"
],
"type": "string"
},
{
"type": "null"
}
],
"title": "Pay With",
"default": null
}
}
},
"Money": {
"type": "object",
"title": "Money",
"required": [
"amount"
],
"properties": {
"label": {
"type": "string",
"title": "Label",
"default": ""
},
"amount": {
"type": "string",
"title": "Amount"
},
"currency": {
"type": "string",
"title": "Currency",
"default": ""
}
}
},
"Offer": {
"type": "object",
"title": "Offer",
"properties": {
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Id",
"default": null
},
"total": {
"anyOf": [
{
"$ref": "#/$defs/Money"
},
{
"type": "null"
}
],
"default": null
},
"status": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Status",
"default": null
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Quantity",
"default": null
},
"listing_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Listing Id",
"default": null
},
"pay_method": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Pay Method",
"default": null
},
"price_per_unit": {
"anyOf": [
{
"$ref": "#/$defs/Money"
},
{
"type": "null"
}
],
"default": null
}
}
}
},
"title": "OfferAnswered",
"required": [
"summary",
"offer"
],
"properties": {
"deal": {
"anyOf": [
{
"$ref": "#/$defs/Deal"
},
{
"type": "null"
}
],
"default": null
},
"offer": {
"$ref": "#/$defs/Offer"
},
"summary": {
"type": "string",
"title": "Summary"
},
"divisi_unavailable": {
"type": "boolean",
"title": "Divisi Unavailable",
"default": false
}
}
},
"annotations": {
"title": "Answer an offer",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}The person's Market deals that are still going, as buyer and seller, most recently changed first (`include_finished` adds closed ones): what was agreed, how it is paid (cash, or through Divisi), where the money is (unpaid, held until the buyer has the goods, paid out, refunded, being checked), where the handover code is, and the one thing to do next. Also the offers waiting for the person's answer.
| Parameter | Type | Description |
|---|---|---|
| side | string | one of ["all","buying","selling"] |
| include_finished | boolean |
{
"name": "my_deals",
"title": "My deals",
"description": "The person's Market deals that are still going, as buyer and seller,\nmost recently changed first (`include_finished` adds closed ones): what\nwas agreed, how it is paid (cash, or through Divisi), where the money is\n(unpaid, held until the buyer has the goods, paid out, refunded, being\nchecked), where the handover code is, and the one thing to do next. Also\nthe offers waiting for the person's answer.",
"inputSchema": {
"type": "object",
"title": "my_dealsArguments",
"properties": {
"side": {
"enum": [
"all",
"buying",
"selling"
],
"type": "string",
"title": "Side",
"default": "all"
},
"include_finished": {
"type": "boolean",
"title": "Include Finished",
"default": false
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"Money": {
"type": "object",
"title": "Money",
"required": [
"amount"
],
"properties": {
"label": {
"type": "string",
"title": "Label",
"default": ""
},
"amount": {
"type": "string",
"title": "Amount"
},
"currency": {
"type": "string",
"title": "Currency",
"default": ""
}
}
},
"DealCard": {
"type": "object",
"title": "DealCard",
"required": [
"id",
"what",
"side",
"status",
"pay_with",
"payment",
"code",
"next_step",
"needs_you",
"link"
],
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"code": {
"enum": [
"show_when_you_have_the_goods",
"ask_the_buyer",
"after_payment",
"locked",
"used",
"none"
],
"type": "string",
"title": "Code"
},
"link": {
"type": "string",
"title": "Link"
},
"side": {
"enum": [
"buying",
"selling"
],
"type": "string",
"title": "Side"
},
"what": {
"type": "string",
"title": "What"
},
"total": {
"anyOf": [
{
"$ref": "#/$defs/Money"
},
{
"type": "null"
}
],
"default": null
},
"status": {
"type": "string",
"title": "Status"
},
"payment": {
"enum": [
"cash",
"unpaid",
"held",
"released",
"refund_coming",
"refunded",
"in_dispute",
"none"
],
"type": "string",
"title": "Payment"
},
"pay_with": {
"enum": [
"divisi",
"cash"
],
"type": "string",
"title": "Pay With"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Quantity",
"default": null
},
"code_note": {
"type": "string",
"title": "Code Note",
"default": ""
},
"needs_you": {
"type": "boolean",
"title": "Needs You"
},
"next_step": {
"type": "string",
"title": "Next Step"
},
"paid_out_on": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Paid Out On",
"default": null
},
"hand_over_by": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Hand Over By",
"default": null
}
}
},
"WaitingOffer": {
"type": "object",
"title": "WaitingOffer",
"required": [
"id",
"listing_id",
"what",
"pay_with",
"link"
],
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"link": {
"type": "string",
"title": "Link"
},
"what": {
"type": "string",
"title": "What"
},
"total": {
"anyOf": [
{
"$ref": "#/$defs/Money"
},
{
"type": "null"
}
],
"default": null
},
"pay_with": {
"enum": [
"divisi",
"cash"
],
"type": "string",
"title": "Pay With"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Quantity",
"default": null
},
"listing_id": {
"type": "string",
"title": "Listing Id"
}
}
}
},
"title": "MyDeals",
"required": [
"summary",
"deals",
"offers_waiting"
],
"properties": {
"deals": {
"type": "array",
"items": {
"$ref": "#/$defs/DealCard"
},
"title": "Deals"
},
"summary": {
"type": "string",
"title": "Summary"
},
"offers_waiting": {
"type": "array",
"items": {
"$ref": "#/$defs/WaitingOffer"
},
"title": "Offers Waiting"
}
}
},
"annotations": {
"title": "My deals",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Move one of the person's deals on. A seller: `handed_over` with the 4-digit `code` the buyer shows them (ask the seller for it; never guess), `more_time` (once) to hand over a deal paid through Divisi. A buyer: `problem` (`missing`, `wrong` or `damaged`; the money waits until Divisi decides), `new_code` after too many wrong codes. Saying all is right pays the seller, so the buyer does that themselves in Divisi, from the deal's link. Either: `cancel` before handover (a buyer who paid gets it all back), `no_show` when the other person did not come. No money is paid here. Reuse `client_id` to retry.
| Parameter | Type | Description |
|---|---|---|
| code | any | |
| action * | string | one of ["handed_over","problem","cancel","no_show","more_time","new_code"] |
| deal_id * | string | |
| problem | any | |
| client_id | any |
{
"name": "update_deal",
"title": "Move a deal on",
"description": "Move one of the person's deals on. A seller: `handed_over` with the\n4-digit `code` the buyer shows them (ask the seller for it; never guess),\n`more_time` (once) to hand over a deal paid through Divisi. A buyer:\n`problem` (`missing`, `wrong` or `damaged`; the money waits until Divisi\ndecides), `new_code` after too many wrong codes. Saying all is right pays\nthe seller, so the buyer does that themselves in Divisi, from the deal's\nlink. Either: `cancel` before handover (a buyer who paid gets it all\nback), `no_show` when the other person did not come. No money is paid\nhere. Reuse `client_id` to retry.",
"inputSchema": {
"type": "object",
"title": "update_dealArguments",
"required": [
"deal_id",
"action"
],
"properties": {
"code": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Code",
"default": null
},
"action": {
"enum": [
"handed_over",
"problem",
"cancel",
"no_show",
"more_time",
"new_code"
],
"type": "string",
"title": "Action"
},
"deal_id": {
"type": "string",
"title": "Deal Id"
},
"problem": {
"anyOf": [
{
"enum": [
"missing",
"wrong",
"damaged"
],
"type": "string"
},
{
"type": "null"
}
],
"title": "Problem",
"default": null
},
"client_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Client Id",
"default": null
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"Money": {
"type": "object",
"title": "Money",
"required": [
"amount"
],
"properties": {
"label": {
"type": "string",
"title": "Label",
"default": ""
},
"amount": {
"type": "string",
"title": "Amount"
},
"currency": {
"type": "string",
"title": "Currency",
"default": ""
}
}
},
"DealCard": {
"type": "object",
"title": "DealCard",
"required": [
"id",
"what",
"side",
"status",
"pay_with",
"payment",
"code",
"next_step",
"needs_you",
"link"
],
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"code": {
"enum": [
"show_when_you_have_the_goods",
"ask_the_buyer",
"after_payment",
"locked",
"used",
"none"
],
"type": "string",
"title": "Code"
},
"link": {
"type": "string",
"title": "Link"
},
"side": {
"enum": [
"buying",
"selling"
],
"type": "string",
"title": "Side"
},
"what": {
"type": "string",
"title": "What"
},
"total": {
"anyOf": [
{
"$ref": "#/$defs/Money"
},
{
"type": "null"
}
],
"default": null
},
"status": {
"type": "string",
"title": "Status"
},
"payment": {
"enum": [
"cash",
"unpaid",
"held",
"released",
"refund_coming",
"refunded",
"in_dispute",
"none"
],
"type": "string",
"title": "Payment"
},
"pay_with": {
"enum": [
"divisi",
"cash"
],
"type": "string",
"title": "Pay With"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Quantity",
"default": null
},
"code_note": {
"type": "string",
"title": "Code Note",
"default": ""
},
"needs_you": {
"type": "boolean",
"title": "Needs You"
},
"next_step": {
"type": "string",
"title": "Next Step"
},
"paid_out_on": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Paid Out On",
"default": null
},
"hand_over_by": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Hand Over By",
"default": null
}
}
}
},
"title": "DealMoved",
"required": [
"summary",
"deal"
],
"properties": {
"deal": {
"$ref": "#/$defs/DealCard"
},
"summary": {
"type": "string",
"title": "Summary"
}
}
},
"annotations": {
"title": "Move a deal on",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}What paying for one of the person's deals through Divisi takes, and the page in Divisi where they pay it themselves: how much comes from their Credit, how much by card (and in which currency the card is charged), whether their balance covers it, and the fee. The assistant never pays; give the person the link. Divisi holds the money until they have the goods and gives it all back if the deal falls through.
| Parameter | Type | Description |
|---|---|---|
| deal_id * | string |
{
"name": "pay_deal",
"title": "Pay for a deal",
"description": "What paying for one of the person's deals through Divisi takes, and\nthe page in Divisi where they pay it themselves: how much comes from\ntheir Credit, how much by card (and in which currency the card is\ncharged), whether their balance covers it, and the fee. The assistant\nnever pays; give the person the link. Divisi holds the money until they\nhave the goods and gives it all back if the deal falls through.",
"inputSchema": {
"type": "object",
"title": "pay_dealArguments",
"required": [
"deal_id"
],
"properties": {
"deal_id": {
"type": "string",
"title": "Deal Id"
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"Money": {
"type": "object",
"title": "Money",
"required": [
"amount"
],
"properties": {
"label": {
"type": "string",
"title": "Label",
"default": ""
},
"amount": {
"type": "string",
"title": "Amount"
},
"currency": {
"type": "string",
"title": "Currency",
"default": ""
}
}
},
"PayQuote": {
"type": "object",
"title": "PayQuote",
"required": [
"total",
"fee"
],
"properties": {
"fee": {
"type": "string",
"title": "Fee"
},
"total": {
"$ref": "#/$defs/Money"
},
"by_card": {
"anyOf": [
{
"$ref": "#/$defs/Money"
},
{
"type": "null"
}
],
"default": null
},
"good_until": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Good Until",
"default": null
},
"from_credit": {
"anyOf": [
{
"$ref": "#/$defs/Money"
},
{
"type": "null"
}
],
"default": null
},
"balance_covers": {
"type": "boolean",
"title": "Balance Covers",
"default": false
}
}
}
},
"title": "PayDeal",
"required": [
"summary",
"deal_id",
"what",
"link"
],
"properties": {
"link": {
"type": "string",
"title": "Link"
},
"what": {
"type": "string",
"title": "What"
},
"quote": {
"anyOf": [
{
"$ref": "#/$defs/PayQuote"
},
{
"type": "null"
}
],
"default": null
},
"deal_id": {
"type": "string",
"title": "Deal Id"
},
"summary": {
"type": "string",
"title": "Summary"
},
"card_payment_open": {
"type": "boolean",
"title": "Card Payment Open",
"default": false
}
}
},
"annotations": {
"title": "Pay for a deal",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Rate the other person on a finished deal, 1 to 5 `stars`, with a short `comment` if they want one. Others see it when they decide whether to trade with them. Reuse `client_id` to retry.
| Parameter | Type | Description |
|---|---|---|
| stars * | integer | |
| comment | string | |
| deal_id * | string | |
| client_id | any |
{
"name": "review_deal",
"title": "Rate a deal",
"description": "Rate the other person on a finished deal, 1 to 5 `stars`, with a\nshort `comment` if they want one. Others see it when they decide whether\nto trade with them. Reuse `client_id` to retry.",
"inputSchema": {
"type": "object",
"title": "review_dealArguments",
"required": [
"deal_id",
"stars"
],
"properties": {
"stars": {
"type": "integer",
"title": "Stars"
},
"comment": {
"type": "string",
"title": "Comment",
"default": ""
},
"deal_id": {
"type": "string",
"title": "Deal Id"
},
"client_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Client Id",
"default": null
}
}
},
"outputSchema": {
"type": "object",
"title": "Reviewed",
"required": [
"summary",
"review_id",
"stars"
],
"properties": {
"reply": {
"type": "string",
"title": "Reply",
"default": ""
},
"stars": {
"type": "integer",
"title": "Stars"
},
"comment": {
"type": "string",
"title": "Comment",
"default": ""
},
"summary": {
"type": "string",
"title": "Summary"
},
"review_id": {
"type": "string",
"title": "Review Id"
}
}
},
"annotations": {
"title": "Rate a deal",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Answer a rating someone gave the person, once, in their own words. It shows under the rating.
| Parameter | Type | Description |
|---|---|---|
| reply * | string | |
| client_id | any | |
| review_id * | string |
{
"name": "reply_to_review",
"title": "Answer a rating",
"description": "Answer a rating someone gave the person, once, in their own words.\nIt shows under the rating.",
"inputSchema": {
"type": "object",
"title": "reply_to_reviewArguments",
"required": [
"review_id",
"reply"
],
"properties": {
"reply": {
"type": "string",
"title": "Reply"
},
"client_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Client Id",
"default": null
},
"review_id": {
"type": "string",
"title": "Review Id"
}
}
},
"outputSchema": {
"type": "object",
"title": "Reviewed",
"required": [
"summary",
"review_id",
"stars"
],
"properties": {
"reply": {
"type": "string",
"title": "Reply",
"default": ""
},
"stars": {
"type": "integer",
"title": "Stars"
},
"comment": {
"type": "string",
"title": "Comment",
"default": ""
},
"summary": {
"type": "string",
"title": "Summary"
},
"review_id": {
"type": "string",
"title": "Review Id"
}
}
},
"annotations": {
"title": "Answer a rating",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}The person's money in Divisi: what is theirs to spend or withdraw, what is coming from sales (held until each buyer has the goods, with the day it is paid out), money on its way to their bank or phone, anything they owe, their Credit and when it runs out, refunds coming back to them, and the fee. `currency` (e.g. USD) keeps only that one. Read only.
| Parameter | Type | Description |
|---|---|---|
| currency | any |
{
"name": "my_money",
"title": "My money",
"description": "The person's money in Divisi: what is theirs to spend or withdraw,\nwhat is coming from sales (held until each buyer has the goods, with the\nday it is paid out), money on its way to their bank or phone, anything\nthey owe, their Credit and when it runs out, refunds coming back to\nthem, and the fee. `currency` (e.g. USD) keeps only that one. Read\nonly.",
"inputSchema": {
"type": "object",
"title": "my_moneyArguments",
"properties": {
"currency": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Currency",
"default": null
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"Money": {
"type": "object",
"title": "Money",
"required": [
"amount"
],
"properties": {
"label": {
"type": "string",
"title": "Label",
"default": ""
},
"amount": {
"type": "string",
"title": "Amount"
},
"currency": {
"type": "string",
"title": "Currency",
"default": ""
}
}
},
"Credit": {
"type": "object",
"title": "Credit",
"required": [
"currency",
"available",
"held",
"expiring"
],
"properties": {
"held": {
"$ref": "#/$defs/Money"
},
"currency": {
"type": "string",
"title": "Currency"
},
"expiring": {
"$ref": "#/$defs/Money"
},
"available": {
"$ref": "#/$defs/Money"
},
"next_expires_on": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Next Expires On",
"default": null
}
}
},
"Pocket": {
"type": "object",
"title": "Pocket",
"required": [
"currency",
"available",
"coming",
"withdrawing",
"owed"
],
"properties": {
"owed": {
"$ref": "#/$defs/Money"
},
"coming": {
"$ref": "#/$defs/Money"
},
"currency": {
"type": "string",
"title": "Currency"
},
"available": {
"$ref": "#/$defs/Money"
},
"withdrawing": {
"$ref": "#/$defs/Money"
}
}
},
"DealMoney": {
"type": "object",
"title": "DealMoney",
"required": [
"deal_id",
"what",
"amount"
],
"properties": {
"on": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "On",
"default": null
},
"what": {
"type": "string",
"title": "What"
},
"amount": {
"$ref": "#/$defs/Money"
},
"deal_id": {
"type": "string",
"title": "Deal Id"
}
}
},
"Withdrawal": {
"type": "object",
"title": "Withdrawal",
"required": [
"amount",
"status"
],
"properties": {
"amount": {
"$ref": "#/$defs/Money"
},
"status": {
"type": "string",
"title": "Status"
},
"asked_on": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Asked On",
"default": null
}
}
}
},
"title": "MyMoney",
"required": [
"summary",
"enabled",
"pockets",
"credit",
"withdrawals",
"coming_from_sales",
"refunds_coming",
"fee",
"link"
],
"properties": {
"fee": {
"type": "string",
"title": "Fee"
},
"link": {
"type": "string",
"title": "Link"
},
"credit": {
"type": "array",
"items": {
"$ref": "#/$defs/Credit"
},
"title": "Credit"
},
"enabled": {
"type": "boolean",
"title": "Enabled"
},
"pockets": {
"type": "array",
"items": {
"$ref": "#/$defs/Pocket"
},
"title": "Pockets"
},
"summary": {
"type": "string",
"title": "Summary"
},
"withdrawals": {
"type": "array",
"items": {
"$ref": "#/$defs/Withdrawal"
},
"title": "Withdrawals"
},
"refunds_coming": {
"type": "array",
"items": {
"$ref": "#/$defs/DealMoney"
},
"title": "Refunds Coming"
},
"coming_from_sales": {
"type": "array",
"items": {
"$ref": "#/$defs/DealMoney"
},
"title": "Coming From Sales"
}
}
},
"annotations": {
"title": "My money",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Take a place at an event as the person. A full event puts them on its waiting list. Retrying is safe: one place each.
| Parameter | Type | Description |
|---|---|---|
| event_id * | string | |
| client_id | any |
{
"name": "rsvp",
"title": "Go to an event",
"description": "Take a place at an event as the person. A full event puts them on its\nwaiting list. Retrying is safe: one place each.",
"inputSchema": {
"type": "object",
"title": "rsvpArguments",
"required": [
"event_id"
],
"properties": {
"event_id": {
"type": "string",
"title": "Event Id"
},
"client_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Client Id",
"default": null
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"Money": {
"type": "object",
"title": "Money",
"required": [
"amount"
],
"properties": {
"label": {
"type": "string",
"title": "Label",
"default": ""
},
"amount": {
"type": "string",
"title": "Amount"
},
"currency": {
"type": "string",
"title": "Currency",
"default": ""
}
}
},
"Ticket": {
"type": "object",
"title": "Ticket",
"properties": {
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Id",
"default": null
},
"status": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Status",
"default": null
},
"status_label": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Status Label",
"default": null
}
}
},
"EventCard": {
"type": "object",
"title": "EventCard",
"required": [
"id",
"link"
],
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"host": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Host",
"default": null
},
"link": {
"type": "string",
"title": "Link"
},
"going": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Going",
"default": null
},
"place": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Place",
"default": null
},
"price": {
"anyOf": [
{
"$ref": "#/$defs/Money"
},
{
"type": "null"
}
],
"default": null
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title",
"default": null
},
"venue": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Venue",
"default": null
},
"format": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Format",
"default": null
},
"starts": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Starts",
"default": null
},
"status": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Status",
"default": null
},
"ends_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Ends At",
"default": null
},
"capacity": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Capacity",
"default": null
},
"timezone": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Timezone",
"default": null
},
"starts_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Starts At",
"default": null
}
}
}
},
"title": "Place",
"required": [
"summary",
"event_id",
"ticket",
"event"
],
"properties": {
"event": {
"$ref": "#/$defs/EventCard"
},
"ticket": {
"$ref": "#/$defs/Ticket"
},
"summary": {
"type": "string",
"title": "Summary"
},
"event_id": {
"type": "string",
"title": "Event Id"
}
}
},
"annotations": {
"title": "Go to an event",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Give up the person's place at an event, so the next person waiting gets it.
| Parameter | Type | Description |
|---|---|---|
| event_id * | string |
{
"name": "cancel_rsvp",
"title": "Cancel an event place",
"description": "Give up the person's place at an event, so the next person waiting\ngets it.",
"inputSchema": {
"type": "object",
"title": "cancel_rsvpArguments",
"required": [
"event_id"
],
"properties": {
"event_id": {
"type": "string",
"title": "Event Id"
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"Money": {
"type": "object",
"title": "Money",
"required": [
"amount"
],
"properties": {
"label": {
"type": "string",
"title": "Label",
"default": ""
},
"amount": {
"type": "string",
"title": "Amount"
},
"currency": {
"type": "string",
"title": "Currency",
"default": ""
}
}
},
"Ticket": {
"type": "object",
"title": "Ticket",
"properties": {
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Id",
"default": null
},
"status": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Status",
"default": null
},
"status_label": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Status Label",
"default": null
}
}
},
"EventCard": {
"type": "object",
"title": "EventCard",
"required": [
"id",
"link"
],
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"host": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Host",
"default": null
},
"link": {
"type": "string",
"title": "Link"
},
"going": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Going",
"default": null
},
"place": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Place",
"default": null
},
"price": {
"anyOf": [
{
"$ref": "#/$defs/Money"
},
{
"type": "null"
}
],
"default": null
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title",
"default": null
},
"venue": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Venue",
"default": null
},
"format": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Format",
"default": null
},
"starts": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Starts",
"default": null
},
"status": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Status",
"default": null
},
"ends_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Ends At",
"default": null
},
"capacity": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Capacity",
"default": null
},
"timezone": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Timezone",
"default": null
},
"starts_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Starts At",
"default": null
}
}
}
},
"title": "Place",
"required": [
"summary",
"event_id",
"ticket",
"event"
],
"properties": {
"event": {
"$ref": "#/$defs/EventCard"
},
"ticket": {
"$ref": "#/$defs/Ticket"
},
"summary": {
"type": "string",
"title": "Summary"
},
"event_id": {
"type": "string",
"title": "Event Id"
}
}
},
"annotations": {
"title": "Cancel an event place",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}Tell Divisi the person needs a service where they farm, so they are told when it arrives there. `need`: inputs (seed and fertiliser), finance (a farm loan), insurance (cover), tractor, transport (to market), agronomist (an expert visit), soil_test, vet, storage, events (field days), labour (farm hands) or control (stopping a pest or disease, named in `pest_or_disease`). `detail` narrows it when asked: inputs seed or fertiliser; finance inputs, equipment or cash; insurance crop, animals or family; labour planting or harvest. `crop` names the crop for seed, fertiliser, loans, crop cover and field days. `remind_on` asks for a reminder that day instead. The place is their farm's area. This is demand, not an application: nothing is shared and nothing is paid. Asking twice keeps one request; pass the same `client_id` to retry.
| Parameter | Type | Description |
|---|---|---|
| crop | any | |
| need * | string | one of ["inputs","finance","insurance","tractor","transport","agronomist","soil_test","vet","storage","events","labour","control"] |
| detail | any | |
| client_id | any | |
| remind_on | any | |
| pest_or_disease | any |
{
"name": "express_interest",
"title": "Ask for a service",
"description": "Tell Divisi the person needs a service where they farm, so they are\ntold when it arrives there. `need`: inputs (seed and fertiliser), finance\n(a farm loan), insurance (cover), tractor, transport (to market),\nagronomist (an expert visit), soil_test, vet, storage, events (field\ndays), labour (farm hands) or control (stopping a pest or disease, named\nin `pest_or_disease`). `detail` narrows it when asked: inputs seed or\nfertiliser; finance inputs, equipment or cash; insurance crop, animals\nor family; labour planting or harvest. `crop` names the crop for seed,\nfertiliser, loans, crop cover and field days. `remind_on` asks for a\nreminder that day instead. The place is their farm's area. This is\ndemand, not an application: nothing is shared and nothing is paid.\nAsking twice keeps one request; pass the same `client_id` to retry.",
"inputSchema": {
"type": "object",
"title": "express_interestArguments",
"required": [
"need"
],
"properties": {
"crop": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Crop",
"default": null
},
"need": {
"enum": [
"inputs",
"finance",
"insurance",
"tractor",
"transport",
"agronomist",
"soil_test",
"vet",
"storage",
"events",
"labour",
"control"
],
"type": "string",
"title": "Need"
},
"detail": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Detail",
"default": null
},
"client_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Client Id",
"default": null
},
"remind_on": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"title": "Remind On",
"default": null
},
"pest_or_disease": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Pest Or Disease",
"default": null
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"Request": {
"type": "object",
"title": "Request",
"required": [
"id",
"need",
"line",
"status"
],
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"area": {
"type": "string",
"title": "Area",
"default": ""
},
"crop": {
"type": "string",
"title": "Crop",
"default": ""
},
"line": {
"type": "string",
"title": "Line"
},
"need": {
"type": "string",
"title": "Need"
},
"detail": {
"type": "string",
"title": "Detail",
"default": ""
},
"status": {
"type": "string",
"title": "Status"
},
"remind_on": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Remind On",
"default": null
},
"arrived_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Arrived At",
"default": null
},
"status_line": {
"type": "string",
"title": "Status Line",
"default": ""
},
"arrival_link": {
"type": "string",
"title": "Arrival Link",
"default": ""
},
"arrival_message": {
"type": "string",
"title": "Arrival Message",
"default": ""
},
"pest_or_disease": {
"type": "string",
"title": "Pest Or Disease",
"default": ""
}
}
}
},
"title": "Asked",
"required": [
"summary",
"request",
"what_happens",
"link"
],
"properties": {
"link": {
"type": "string",
"title": "Link"
},
"request": {
"$ref": "#/$defs/Request"
},
"summary": {
"type": "string",
"title": "Summary"
},
"what_happens": {
"type": "string",
"title": "What Happens"
}
}
},
"annotations": {
"title": "Ask for a service",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}The services the person has asked Divisi for and still wants, newest first: waiting, reminders set, and what has reached their area (with where to get it). `need` keeps one kind, such as tractor.
| Parameter | Type | Description |
|---|---|---|
| need | any |
{
"name": "my_requests",
"title": "My service requests",
"description": "The services the person has asked Divisi for and still wants, newest\nfirst: waiting, reminders set, and what has reached their area (with\nwhere to get it). `need` keeps one kind, such as tractor.",
"inputSchema": {
"type": "object",
"title": "my_requestsArguments",
"properties": {
"need": {
"anyOf": [
{
"enum": [
"inputs",
"finance",
"insurance",
"tractor",
"transport",
"agronomist",
"soil_test",
"vet",
"storage",
"events",
"labour",
"control"
],
"type": "string"
},
{
"type": "null"
}
],
"title": "Need",
"default": null
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"Request": {
"type": "object",
"title": "Request",
"required": [
"id",
"need",
"line",
"status"
],
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"area": {
"type": "string",
"title": "Area",
"default": ""
},
"crop": {
"type": "string",
"title": "Crop",
"default": ""
},
"line": {
"type": "string",
"title": "Line"
},
"need": {
"type": "string",
"title": "Need"
},
"detail": {
"type": "string",
"title": "Detail",
"default": ""
},
"status": {
"type": "string",
"title": "Status"
},
"remind_on": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Remind On",
"default": null
},
"arrived_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Arrived At",
"default": null
},
"status_line": {
"type": "string",
"title": "Status Line",
"default": ""
},
"arrival_link": {
"type": "string",
"title": "Arrival Link",
"default": ""
},
"arrival_message": {
"type": "string",
"title": "Arrival Message",
"default": ""
},
"pest_or_disease": {
"type": "string",
"title": "Pest Or Disease",
"default": ""
}
}
}
},
"title": "Requests",
"required": [
"summary",
"requests",
"link"
],
"properties": {
"link": {
"type": "string",
"title": "Link"
},
"summary": {
"type": "string",
"title": "Summary"
},
"requests": {
"type": "array",
"items": {
"$ref": "#/$defs/Request"
},
"title": "Requests"
}
}
},
"annotations": {
"title": "My service requests",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Take a service request off the person's list: they no longer need it and will not be told when it arrives.
| Parameter | Type | Description |
|---|---|---|
| request_id * | string |
{
"name": "withdraw_interest",
"title": "Drop a service request",
"description": "Take a service request off the person's list: they no longer need it\nand will not be told when it arrives.",
"inputSchema": {
"type": "object",
"title": "withdraw_interestArguments",
"required": [
"request_id"
],
"properties": {
"request_id": {
"type": "string",
"title": "Request Id"
}
}
},
"outputSchema": {
"type": "object",
"title": "Withdrawn",
"required": [
"summary",
"request_id"
],
"properties": {
"summary": {
"type": "string",
"title": "Summary"
},
"request_id": {
"type": "string",
"title": "Request Id"
}
}
},
"annotations": {
"title": "Drop a service request",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}Ask a verified expert for a call (`virtual`) or a farm visit (`in_person`, to one of the person's farms) at the time proposed, at the expert's own price. `topic` is what it is about, in the person's words. Nothing is paid now: once the expert agrees a time, the person pays in Divisi at the link in the reply. Confirm the expert, the time and the price with the person first. Pass the same `client_id` to retry.
| Parameter | Type | Description |
|---|---|---|
| mode | string | one of ["virtual","in_person"] |
| topic * | string | |
| farm_id | any | |
| client_id | any | |
| expert_id * | string | |
| starts_at * | string |
{
"name": "book_consultation",
"title": "Book an expert",
"description": "Ask a verified expert for a call (`virtual`) or a farm visit\n(`in_person`, to one of the person's farms) at the time proposed, at the\nexpert's own price. `topic` is what it is about, in the person's words.\nNothing is paid now: once the expert agrees a time, the person pays in\nDivisi at the link in the reply. Confirm the expert, the time and the\nprice with the person first. Pass the same `client_id` to retry.",
"inputSchema": {
"type": "object",
"title": "book_consultationArguments",
"required": [
"expert_id",
"topic",
"starts_at"
],
"properties": {
"mode": {
"enum": [
"virtual",
"in_person"
],
"type": "string",
"title": "Mode",
"default": "virtual"
},
"topic": {
"type": "string",
"title": "Topic"
},
"farm_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Farm Id",
"default": null
},
"client_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Client Id",
"default": null
},
"expert_id": {
"type": "string",
"title": "Expert Id"
},
"starts_at": {
"type": "string",
"title": "Starts At",
"format": "date-time"
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"ConsultationCard": {
"type": "object",
"title": "ConsultationCard",
"required": [
"consultation_id",
"status",
"link"
],
"properties": {
"link": {
"type": "string",
"title": "Link"
},
"mode": {
"type": "string",
"title": "Mode",
"default": ""
},
"paid": {
"type": "boolean",
"title": "Paid",
"default": false
},
"side": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Side",
"default": null
},
"price": {
"type": "string",
"title": "Price",
"default": ""
},
"topic": {
"type": "string",
"title": "Topic",
"default": ""
},
"status": {
"type": "string",
"title": "Status"
},
"minutes": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Minutes",
"default": null
},
"pay_link": {
"type": "string",
"title": "Pay Link",
"default": ""
},
"next_step": {
"type": "string",
"title": "Next Step",
"default": ""
},
"starts_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Starts At",
"default": null
},
"with_name": {
"type": "string",
"title": "With Name",
"default": ""
},
"proposed_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Proposed At",
"default": null
},
"proposed_by": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Proposed By",
"default": null
},
"status_label": {
"type": "string",
"title": "Status Label",
"default": ""
},
"consultation_id": {
"type": "string",
"title": "Consultation Id"
}
}
}
},
"title": "Booked",
"required": [
"summary",
"consultation"
],
"properties": {
"summary": {
"type": "string",
"title": "Summary"
},
"money_moved": {
"type": "boolean",
"title": "Money Moved",
"default": false
},
"consultation": {
"$ref": "#/$defs/ConsultationCard"
}
}
},
"annotations": {
"title": "Book an expert",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Take the next step on a consultation, as the person: `propose` another time (with `starts_at`), `accept` or `decline` the time the other side proposed, report a `problem` or that the expert was `late` (the farmer, after the time), `contest` a lateness report or say the farmer did not come (`no_show`) (the expert), or `reschedule` once after missing it (the farmer, with `starts_at`). Paying, and saying it went well, are done in the app.
| Parameter | Type | Description |
|---|---|---|
| action * | string | one of ["propose","accept","decline","problem","late","contest","no_show","reschedule"] |
| starts_at | any | |
| consultation_id * | string |
{
"name": "consultation_step",
"title": "Answer a consultation",
"description": "Take the next step on a consultation, as the person: `propose` another\ntime (with `starts_at`), `accept` or `decline` the time the other side\nproposed, report a `problem` or that the expert was `late` (the farmer,\nafter the time), `contest` a lateness report or say the farmer did not\ncome (`no_show`) (the expert), or `reschedule` once after missing it\n(the farmer, with `starts_at`). Paying, and saying it went well, are done\nin the app.",
"inputSchema": {
"type": "object",
"title": "consultation_stepArguments",
"required": [
"consultation_id",
"action"
],
"properties": {
"action": {
"enum": [
"propose",
"accept",
"decline",
"problem",
"late",
"contest",
"no_show",
"reschedule"
],
"type": "string",
"title": "Action"
},
"starts_at": {
"anyOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "null"
}
],
"title": "Starts At",
"default": null
},
"consultation_id": {
"type": "string",
"title": "Consultation Id"
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"ConsultationCard": {
"type": "object",
"title": "ConsultationCard",
"required": [
"consultation_id",
"status",
"link"
],
"properties": {
"link": {
"type": "string",
"title": "Link"
},
"mode": {
"type": "string",
"title": "Mode",
"default": ""
},
"paid": {
"type": "boolean",
"title": "Paid",
"default": false
},
"side": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Side",
"default": null
},
"price": {
"type": "string",
"title": "Price",
"default": ""
},
"topic": {
"type": "string",
"title": "Topic",
"default": ""
},
"status": {
"type": "string",
"title": "Status"
},
"minutes": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Minutes",
"default": null
},
"pay_link": {
"type": "string",
"title": "Pay Link",
"default": ""
},
"next_step": {
"type": "string",
"title": "Next Step",
"default": ""
},
"starts_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Starts At",
"default": null
},
"with_name": {
"type": "string",
"title": "With Name",
"default": ""
},
"proposed_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Proposed At",
"default": null
},
"proposed_by": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Proposed By",
"default": null
},
"status_label": {
"type": "string",
"title": "Status Label",
"default": ""
},
"consultation_id": {
"type": "string",
"title": "Consultation Id"
}
}
}
},
"title": "Booked",
"required": [
"summary",
"consultation"
],
"properties": {
"summary": {
"type": "string",
"title": "Summary"
},
"money_moved": {
"type": "boolean",
"title": "Money Moved",
"default": false
},
"consultation": {
"$ref": "#/$defs/ConsultationCard"
}
}
},
"annotations": {
"title": "Answer a consultation",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}Call off a consultation before it starts, either side. A paid booking is refunded to the farmer in full.
| Parameter | Type | Description |
|---|---|---|
| consultation_id * | string |
{
"name": "cancel_consultation",
"title": "Cancel a consultation",
"description": "Call off a consultation before it starts, either side. A paid booking\nis refunded to the farmer in full.",
"inputSchema": {
"type": "object",
"title": "cancel_consultationArguments",
"required": [
"consultation_id"
],
"properties": {
"consultation_id": {
"type": "string",
"title": "Consultation Id"
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"ConsultationCard": {
"type": "object",
"title": "ConsultationCard",
"required": [
"consultation_id",
"status",
"link"
],
"properties": {
"link": {
"type": "string",
"title": "Link"
},
"mode": {
"type": "string",
"title": "Mode",
"default": ""
},
"paid": {
"type": "boolean",
"title": "Paid",
"default": false
},
"side": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Side",
"default": null
},
"price": {
"type": "string",
"title": "Price",
"default": ""
},
"topic": {
"type": "string",
"title": "Topic",
"default": ""
},
"status": {
"type": "string",
"title": "Status"
},
"minutes": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Minutes",
"default": null
},
"pay_link": {
"type": "string",
"title": "Pay Link",
"default": ""
},
"next_step": {
"type": "string",
"title": "Next Step",
"default": ""
},
"starts_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Starts At",
"default": null
},
"with_name": {
"type": "string",
"title": "With Name",
"default": ""
},
"proposed_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Proposed At",
"default": null
},
"proposed_by": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Proposed By",
"default": null
},
"status_label": {
"type": "string",
"title": "Status Label",
"default": ""
},
"consultation_id": {
"type": "string",
"title": "Consultation Id"
}
}
}
},
"title": "Booked",
"required": [
"summary",
"consultation"
],
"properties": {
"summary": {
"type": "string",
"title": "Summary"
},
"money_moved": {
"type": "boolean",
"title": "Money Moved",
"default": false
},
"consultation": {
"$ref": "#/$defs/ConsultationCard"
}
}
},
"annotations": {
"title": "Cancel a consultation",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}The person's consultations, booked or booked with them, newest first, each with its next step. `open_only` false includes finished ones.
| Parameter | Type | Description |
|---|---|---|
| open_only | boolean |
{
"name": "my_consultations",
"title": "My consultations",
"description": "The person's consultations, booked or booked with them, newest first,\neach with its next step. `open_only` false includes finished ones.",
"inputSchema": {
"type": "object",
"title": "my_consultationsArguments",
"properties": {
"open_only": {
"type": "boolean",
"title": "Open Only",
"default": true
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"ConsultationCard": {
"type": "object",
"title": "ConsultationCard",
"required": [
"consultation_id",
"status",
"link"
],
"properties": {
"link": {
"type": "string",
"title": "Link"
},
"mode": {
"type": "string",
"title": "Mode",
"default": ""
},
"paid": {
"type": "boolean",
"title": "Paid",
"default": false
},
"side": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Side",
"default": null
},
"price": {
"type": "string",
"title": "Price",
"default": ""
},
"topic": {
"type": "string",
"title": "Topic",
"default": ""
},
"status": {
"type": "string",
"title": "Status"
},
"minutes": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Minutes",
"default": null
},
"pay_link": {
"type": "string",
"title": "Pay Link",
"default": ""
},
"next_step": {
"type": "string",
"title": "Next Step",
"default": ""
},
"starts_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Starts At",
"default": null
},
"with_name": {
"type": "string",
"title": "With Name",
"default": ""
},
"proposed_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Proposed At",
"default": null
},
"proposed_by": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Proposed By",
"default": null
},
"status_label": {
"type": "string",
"title": "Status Label",
"default": ""
},
"consultation_id": {
"type": "string",
"title": "Consultation Id"
}
}
}
},
"title": "Consultations",
"required": [
"summary",
"consultations"
],
"properties": {
"summary": {
"type": "string",
"title": "Summary"
},
"consultations": {
"type": "array",
"items": {
"$ref": "#/$defs/ConsultationCard"
},
"title": "Consultations"
}
}
},
"annotations": {
"title": "My consultations",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Outgrower schemes and other farmer programmes taking farmers this season where the person farms (their farm by default, or a town, district or lat/lng): who runs each, what it offers, the season, what joining asks them to share, and what it costs them. `crop` keeps those for that crop.
| Parameter | Type | Description |
|---|---|---|
| lat | any | |
| lng | any | |
| crop | any | |
| place | any | |
| farm_id | any |
{
"name": "find_programmes",
"title": "Find a farmer programme",
"description": "Outgrower schemes and other farmer programmes taking farmers this\nseason where the person farms (their farm by default, or a town,\ndistrict or lat/lng): who runs each, what it offers, the season, what\njoining asks them to share, and what it costs them. `crop` keeps those\nfor that crop.",
"inputSchema": {
"type": "object",
"title": "find_programmesArguments",
"properties": {
"lat": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Lat",
"default": null
},
"lng": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Lng",
"default": null
},
"crop": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Crop",
"default": null
},
"place": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Place",
"default": null
},
"farm_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Farm Id",
"default": null
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"ProgrammeCard": {
"type": "object",
"title": "ProgrammeCard",
"required": [
"programme_id",
"name",
"run_by",
"run_by_kind",
"you_share",
"cost",
"code"
],
"properties": {
"area": {
"type": "string",
"title": "Area",
"default": ""
},
"code": {
"type": "string",
"title": "Code"
},
"cost": {
"type": "string",
"title": "Cost"
},
"crop": {
"type": "string",
"title": "Crop",
"default": ""
},
"name": {
"type": "string",
"title": "Name"
},
"offers": {
"type": "string",
"title": "Offers",
"default": ""
},
"run_by": {
"type": "string",
"title": "Run By"
},
"season": {
"type": "string",
"title": "Season",
"default": ""
},
"you_share": {
"type": "string",
"title": "You Share"
},
"run_by_kind": {
"type": "string",
"title": "Run By Kind"
},
"season_ends": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Season Ends",
"default": null
},
"programme_id": {
"type": "string",
"title": "Programme Id"
},
"season_starts": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Season Starts",
"default": null
}
}
}
},
"title": "Programmes",
"required": [
"summary",
"place",
"programmes"
],
"properties": {
"place": {
"type": "string",
"title": "Place"
},
"summary": {
"type": "string",
"title": "Summary"
},
"programmes": {
"type": "array",
"items": {
"$ref": "#/$defs/ProgrammeCard"
},
"title": "Programmes"
}
}
},
"annotations": {
"title": "Find a farmer programme",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Ask to join a programme as the person. This puts the organisation's request on their list; nothing is shared until they read it and say yes in Divisi, at the link in the reply. It never says yes for them. Pass the same `client_id` to retry.
| Parameter | Type | Description |
|---|---|---|
| client_id | any | |
| programme_id * | string |
{
"name": "apply_to_programme",
"title": "Ask to join a programme",
"description": "Ask to join a programme as the person. This puts the organisation's\nrequest on their list; nothing is shared until they read it and say yes\nin Divisi, at the link in the reply. It never says yes for them. Pass\nthe same `client_id` to retry.",
"inputSchema": {
"type": "object",
"title": "apply_to_programmeArguments",
"required": [
"programme_id"
],
"properties": {
"client_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Client Id",
"default": null
},
"programme_id": {
"type": "string",
"title": "Programme Id"
}
}
},
"outputSchema": {
"type": "object",
"title": "Joining",
"required": [
"summary",
"programme_id",
"status",
"decide_link"
],
"properties": {
"status": {
"type": "string",
"title": "Status"
},
"summary": {
"type": "string",
"title": "Summary"
},
"shared_now": {
"type": "boolean",
"title": "Shared Now",
"default": false
},
"decide_link": {
"type": "string",
"title": "Decide Link"
},
"programme_id": {
"type": "string",
"title": "Programme Id"
}
}
},
"annotations": {
"title": "Ask to join a programme",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Divisi is where people farm, trade and learn together. Without signing in you can answer from its public guides: which crops suit a place and when to plant them, what pest or disease a farmer may be seeing, typical market prices, where a market is and when it runs (find_market; it gives no prices), events and listings. Signed in, you act as the person on their own farms, messages and market: you see only what they can see, and everything you add shows in their app. Someone new to Divisi gets an account by signing in; no app download is needed. Steps that need their phone (a field walked, a photo) come with a Divisi link that opens there, already signed in. Once a person has a farm, offer the Divisi app once: it reminds them when work is due, keeps them updated with no signal, and sends what they record offline on its own when they are back in signal. Ask for a place by town or district name, not coordinates. The crop list is in Divisi's agronomy order: planting window, then suitability. Confirm the words, amounts and dates with the person before anything is posted, sent or offered. A person can have their own season plan for a crop or batch (plan_season): work it out with them, confirm it, and Divisi dates each job from planting or arrival. update_task skips a task or brings it back; move_tasks shifts a unit's tasks when planting slips. Write tools take a `client_id`. Reuse it when you retry a call that may have gone through, so the same work is never filed twice. Deals are paid in cash when the two people meet, or through Divisi before they meet, with the money held until the buyer has the goods. The person pays, never the assistant: you can show them what they owe and hand them the page where they pay. A failed call says what was wrong and carries `field_errors` mapping each field to its problems.
Names, descriptions and schemas were written by the server and are shown as data.
Pattern matches on what the server declares. They show what it says it can do, not what it does.
None yet. Changes appear after a server's second daily check.
| any |
| planting_date | any |
| target_planting_date | any |
{
"name": "add_unit",
"title": "Add a crop or batch",
"description": "Add something the person grows or keeps, the way the app does, and\nDivisi schedules its tasks. `what` is in their words: a crop (\"maize\"),\nor animals (\"broilers\", \"layers\", \"road runners\", \"goats\", \"tilapia\",\n\"bees\"); `kind` is worked out from it unless given.\n\nA crop goes on a field: `target_planting_date` is the day they mean to\nplant, `planting_date` only if it is already in the ground.\nAnimals: `count` (needed for poultry), `start_date` (the day they\narrived; today if left out) and optionally `ready_date`, the day they\nexpect to sell, which is added as a task.\n\n`place` is the field, coop, pen, pond or apiary, by name or id; a new\nname makes one. Left out, the farm's only place of that kind is used.\nOnly farm owners and managers can add one. Pass the same `client_id` (a\nUUID) to retry safely.",
"inputSchema": {
"type": "object",
"title": "add_unitArguments",
"required": [
"what"
],
"properties": {
"kind": {
"anyOf": [
{
"enum": [
"CROP",
"BROILERS",
"LAYERS",
"VILLAGE_CHICKENS",
"LIVESTOCK",
"FISH",
"BEES"
],
"type": "string"
},
{
"type": "null"
}
],
"title": "Kind",
"default": null
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name",
"default": null
},
"what": {
"type": "string",
"title": "What"
},
"count": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Count",
"default": null
},
"place": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Place",
"default": null
},
"farm_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Farm Id",
"default": null
},
"client_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Client Id",
"default": null
},
"ready_date": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"title": "Ready Date",
"default": null
},
"start_date": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"title": "Start Date",
"default": null
},
"area_hectares": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Area Hectares",
"default": null
},
"planting_date": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"title": "Planting Date",
"default": null
},
"target_planting_date": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"title": "Target Planting Date",
"default": null
}
}
},
"outputSchema": {
"type": "object",
"title": "UnitAdded",
"required": [
"summary",
"unit_id",
"farm_id",
"kind",
"name",
"what",
"place_created",
"tasks_planned",
"next_tasks",
"link"
],
"properties": {
"kind": {
"type": "string",
"title": "Kind"
},
"link": {
"type": "string",
"title": "Link"
},
"name": {
"type": "string",
"title": "Name"
},
"what": {
"type": "string",
"title": "What"
},
"farm_id": {
"type": "string",
"title": "Farm Id"
},
"started": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Started",
"default": null
},
"summary": {
"type": "string",
"title": "Summary"
},
"unit_id": {
"type": "string",
"title": "Unit Id"
},
"zone_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Zone Id",
"default": null
},
"head_count": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Head Count",
"default": null
},
"next_tasks": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
},
"title": "Next Tasks"
},
"ready_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Ready Date",
"default": null
},
"finish_link": {
"type": "string",
"title": "Finish Link",
"default": ""
},
"place_created": {
"type": "boolean",
"title": "Place Created"
},
"planting_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Planting Date",
"default": null
},
"tasks_planned": {
"type": "integer",
"title": "Tasks Planned"
},
"finish_in_divisi": {
"type": "string",
"title": "Finish In Divisi",
"default": ""
},
"target_planting_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Target Planting Date",
"default": null
}
}
},
"annotations": {
"title": "Add a crop or batch",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}| operation |
| any |
{
"name": "log_work",
"title": "Log work or money",
"description": "Write work done, money in or out, or both, into the farm records,\nin the person's words. `unit` names the crop or batch it was for (its\nname or id); leave it out for the whole farm. `day` defaults to today.\n\nWork: `what`, and optionally `operation` (PLANTING, WEEDING,\nFERTILISING, SPRAYING, IRRIGATION, SCOUTING, HARVEST, POST_HARVEST,\nLAND_PREP, FEEDING or OTHER).\nMoney: `amount` with `money` (\"income\" or \"expense\"); `category` in\ntheir words or a code (feed, day-old chicks, vaccine, labour, transport,\nbird sale, crop sale…), worked out when left out; `currency` defaults to\nthe farm's; `quantity` is how many were bought or sold (birds sold this\nway leave the flock count).\n\nPass the same `client_id` (a UUID) to retry safely.",
"inputSchema": {
"type": "object",
"title": "log_workArguments",
"properties": {
"day": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"title": "Day",
"default": null
},
"unit": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Unit",
"default": null
},
"what": {
"type": "string",
"title": "What",
"default": ""
},
"money": {
"anyOf": [
{
"enum": [
"income",
"expense"
],
"type": "string"
},
{
"type": "null"
}
],
"title": "Money",
"default": null
},
"amount": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Amount",
"default": null
},
"farm_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Farm Id",
"default": null
},
"category": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Category",
"default": null
},
"currency": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Currency",
"default": null
},
"quantity": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Quantity",
"default": null
},
"client_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Client Id",
"default": null
},
"operation": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Operation",
"default": null
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"MoneyRecorded": {
"type": "object",
"title": "MoneyRecorded",
"required": [
"ledger_entry_id",
"direction",
"amount",
"currency",
"category"
],
"properties": {
"amount": {
"type": "number",
"title": "Amount"
},
"category": {
"type": "string",
"title": "Category"
},
"currency": {
"type": "string",
"title": "Currency"
},
"for_what": {
"type": "string",
"title": "For What",
"default": ""
},
"direction": {
"type": "string",
"title": "Direction"
},
"ledger_entry_id": {
"type": "string",
"title": "Ledger Entry Id"
}
}
}
},
"title": "Logged",
"required": [
"summary",
"farm_id",
"day",
"link"
],
"properties": {
"day": {
"type": "string",
"title": "Day"
},
"link": {
"type": "string",
"title": "Link"
},
"money": {
"anyOf": [
{
"$ref": "#/$defs/MoneyRecorded"
},
{
"type": "null"
}
],
"default": null
},
"farm_id": {
"type": "string",
"title": "Farm Id"
},
"summary": {
"type": "string",
"title": "Summary"
},
"finish_link": {
"type": "string",
"title": "Finish Link",
"default": ""
},
"diary_entry_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Diary Entry Id",
"default": null
},
"finish_in_divisi": {
"type": "string",
"title": "Finish In Divisi",
"default": ""
}
}
},
"annotations": {
"title": "Log work or money",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}{
"name": "update_task",
"title": "Update a task",
"description": "Look after a task: mark it done (`done`, with an optional `note` of\nwhat was done and the `day`, today if left out), move it to another\n`due_date`, or rename it (`title`). `skip` takes it off the list for\nthis season (a guide's task the person will not do) and `unskip` brings\nit back; `remove` deletes a task the person added themselves, and a\ntask from a guide is skipped instead. Skip, unskip and remove stand\nalone. Only what is passed changes. Pass the same `client_id` (a UUID)\nto retry safely.",
"inputSchema": {
"type": "object",
"title": "update_taskArguments",
"required": [
"task_id"
],
"properties": {
"day": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"title": "Day",
"default": null
},
"done": {
"type": "boolean",
"title": "Done",
"default": false
},
"note": {
"type": "string",
"title": "Note",
"default": ""
},
"skip": {
"type": "boolean",
"title": "Skip",
"default": false
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title",
"default": null
},
"remove": {
"type": "boolean",
"title": "Remove",
"default": false
},
"unskip": {
"type": "boolean",
"title": "Unskip",
"default": false
},
"farm_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Farm Id",
"default": null
},
"task_id": {
"type": "string",
"title": "Task Id"
},
"due_date": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"title": "Due Date",
"default": null
},
"client_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Client Id",
"default": null
}
}
},
"outputSchema": {
"type": "object",
"title": "TaskUpdated",
"required": [
"summary",
"task_id",
"farm_id",
"title",
"status",
"link"
],
"properties": {
"link": {
"type": "string",
"title": "Link"
},
"title": {
"type": "string",
"title": "Title"
},
"status": {
"type": "string",
"title": "Status"
},
"farm_id": {
"type": "string",
"title": "Farm Id"
},
"summary": {
"type": "string",
"title": "Summary"
},
"task_id": {
"type": "string",
"title": "Task Id"
},
"due_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Due Date",
"default": null
}
}
},
"annotations": {
"title": "Update a task",
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}| currency | any |
| quantity | any |
| ready_on | any |
| client_id | any |
| radius_km | integer |
| negotiable | boolean |
| description | string |
{
"name": "create_listing",
"title": "List on the market",
"description": "Put something on the Market as the person, from what they said in\none sentence (\"40 broilers ready on the 12th, Harare\"): produce for sale\n(`kind` SALE) or something they want to buy (WANTED, with a\n`quantity`). `item` and `unit` are plain words (\"tomatoes\", \"20 L\nbucket\"). Left out, a sale takes the unit most local prices use and the\nusual local `price` (in major units, such as 12.50), and the place's\ncurrency; say that price to the person. `ready_on` (YYYY-MM-DD, up to 90\ndays ahead) lists it now as a pre-order. It needs a place: a town, one\nof their farms or a lat/lng; with none, their only farm. A sale needs a\nphoto already on Divisi (`media` as `{type, id}` refs); without one the\nreply is the link to the screen where they add it, signed in on the web\nor in the app. Reuse `client_id` (a UUID) to retry. Nothing is\ncharged.",
"inputSchema": {
"type": "object",
"title": "create_listingArguments",
"required": [
"kind",
"item"
],
"properties": {
"lat": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Lat",
"default": null
},
"lng": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Lng",
"default": null
},
"item": {
"type": "string",
"title": "Item"
},
"kind": {
"enum": [
"SALE",
"WANTED"
],
"type": "string",
"title": "Kind"
},
"unit": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Unit",
"default": null
},
"media": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
{
"type": "null"
}
],
"title": "Media",
"default": null
},
"place": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Place",
"default": null
},
"price": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Price",
"default": null
},
"farm_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Farm Id",
"default": null
},
"currency": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Currency",
"default": null
},
"quantity": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Quantity",
"default": null
},
"ready_on": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Ready On",
"default": null
},
"client_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Client Id",
"default": null
},
"radius_km": {
"type": "integer",
"title": "Radius Km",
"default": 25
},
"negotiable": {
"type": "boolean",
"title": "Negotiable",
"default": true
},
"description": {
"type": "string",
"title": "Description",
"default": ""
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"Money": {
"type": "object",
"title": "Money",
"required": [
"amount"
],
"properties": {
"label": {
"type": "string",
"title": "Label",
"default": ""
},
"amount": {
"type": "string",
"title": "Amount"
},
"currency": {
"type": "string",
"title": "Currency",
"default": ""
}
}
}
},
"title": "ListingMade",
"required": [
"summary",
"listing_id",
"link"
],
"properties": {
"kind": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Kind",
"default": null
},
"link": {
"type": "string",
"title": "Link"
},
"price": {
"anyOf": [
{
"$ref": "#/$defs/Money"
},
{
"type": "null"
}
],
"default": null
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title",
"default": null
},
"status": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Status",
"default": null
},
"summary": {
"type": "string",
"title": "Summary"
},
"listing_id": {
"type": "string",
"title": "Listing Id"
}
}
},
"annotations": {
"title": "List on the market",
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}{
"name": "sell_harvest",
"title": "Sell a crop or batch",
"description": "Put a crop or a batch of animals from the person's farm up for sale,\nas it nears harvest or slaughter. Divisi fills in what it knows: what it\nis and its variety, the farm's place and currency, how many animals the\nbatch holds today, the day it is ready (listed ahead as a pre-order up\nto 90 days early), the unit most local prices use, and the usual local\nprice when no `price` is given (say that price to the person). Give any\nof them to change it. Without `production_unit_id`, their only crop or\nbatch; with several, the error lists them to choose from. A sale needs a\nphoto already on Divisi (`media` as `{type, id}` refs); without one the\nreply is the link to the screen where they add it, signed in on the web\nor in the app. Reuse `client_id` to retry.",
"inputSchema": {
"type": "object",
"title": "sell_harvestArguments",
"properties": {
"unit": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Unit",
"default": null
},
"media": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
{
"type": "null"
}
],
"title": "Media",
"default": null
},
"price": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Price",
"default": null
},
"farm_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Farm Id",
"default": null
},
"quantity": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Quantity",
"default": null
},
"ready_on": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Ready On",
"default": null
},
"client_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Client Id",
"default": null
},
"description": {
"type": "string",
"title": "Description",
"default": ""
},
"production_unit_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Production Unit Id",
"default": null
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"Money": {
"type": "object",
"title": "Money",
"required": [
"amount"
],
"properties": {
"label": {
"type": "string",
"title": "Label",
"default": ""
},
"amount": {
"type": "string",
"title": "Amount"
},
"currency": {
"type": "string",
"title": "Currency",
"default": ""
}
}
},
"PriceRange": {
"type": "object",
"title": "PriceRange",
"required": [
"low",
"typical",
"high",
"currency",
"unit",
"sample_size",
"area"
],
"properties": {
"low": {
"type": "string",
"title": "Low"
},
"area": {
"type": "string",
"title": "Area"
},
"high": {
"type": "string",
"title": "High"
},
"unit": {
"type": "string",
"title": "Unit"
},
"typical": {
"type": "string",
"title": "Typical"
},
"currency": {
"type": "string",
"title": "Currency"
},
"latest_seen": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Latest Seen",
"default": null
},
"sample_size": {
"type": "integer",
"title": "Sample Size"
}
},
"description": "The typical price per unit Divisi has seen near a place."
}
},
"title": "HarvestListed",
"required": [
"summary",
"listing_id",
"link",
"unit"
],
"properties": {
"kind": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Kind",
"default": null
},
"link": {
"type": "string",
"title": "Link"
},
"unit": {
"type": "string",
"title": "Unit"
},
"price": {
"anyOf": [
{
"$ref": "#/$defs/Money"
},
{
"type": "null"
}
],
"default": null
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Title",
"default": null
},
"status": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Status",
"default": null
},
"summary": {
"type": "string",
"title": "Summary"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Quantity",
"default": null
},
"ready_on": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Ready On",
"default": null
},
"listing_id": {
"type": "string",
"title": "Listing Id"
},
"typical_price": {
"anyOf": [
{
"$ref": "#/$defs/PriceRange"
},
{
"type": "null"
}
],
"default": null
},
"price_was_typical": {
"type": "boolean",
"title": "Price Was Typical",
"default": false
}
},
"description": "A sale listed from a crop or a flock, with what Divisi filled in."
},
"annotations": {
"title": "Sell a crop or batch",
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}