Skip to main content
Every tool the Leaf MCP server exposes to AI coding assistants. Tools are organized by category. All tools authenticate using the LEAF_TOKEN header configured in your MCP client. See MCP Server Overview for setup instructions.

Documentation

get_docs_index

Returns an index of all available Leaf API documentation pages.
ParameterTypeRequiredDescription
No parameters

get_leaf_doc

Returns the contents of a specific Leaf API documentation page.
ParameterTypeRequiredDescription
doc_pathstringYesPath to the doc page (e.g., API_Reference/Alerts/alerts_endpoints)

Configuration

get_api_owner_configuration

Returns configuration settings for the API owner, including defaults for field operation image creation, fields auto-sync, and merge intersections.
ParameterTypeRequiredDescription
No parameters

get_leaf_user_configuration

Returns configuration settings for a specific Leaf user. If the user has no custom configuration, they inherit from the API owner.
ParameterTypeRequiredDescription
leaf_user_idstringYesUUID of the Leaf user

Provider Credentials

get_john_deere_credentials_events

Returns events and status information for a Leaf user’s John Deere credentials. Useful for troubleshooting connection issues with John Deere Operations Center.
ParameterTypeRequiredDescription
leaf_user_idstringYesUUID of the Leaf user

get_climate_fieldview_credentials_events

Returns events and status information for a Leaf user’s Climate FieldView credentials.
ParameterTypeRequiredDescription
leaf_user_idstringYesUUID of the Leaf user

get_cnhi_credentials_events

Returns events and status information for a Leaf user’s CNHi credentials.
ParameterTypeRequiredDescription
leaf_user_idstringYesUUID of the Leaf user

User Management

list_users

Returns a paginated list of Leaf users belonging to the authenticated organization.
ParameterTypeRequiredDescription
emailstringNoFilter by email address
namestringNoFilter by full name
external_idstringNoFilter by your external identifier
pageintegerNoZero-based page number (default 0)
sizeintegerNoPage size, max 100 (default 10)

Fields

list_fields

Returns a paginated list of fields for a Leaf user.
ParameterTypeRequiredDescription
leaf_user_idstringYesUUID of the Leaf user
typestringNoFilter by field type
farm_idintegerNoFilter by farm ID
providerstringNoFilter by provider
pageintegerNoZero-based page number (default 0)
sizeintegerNoPage size, max 100 (default 10)

get_field

Returns details for a single field.
ParameterTypeRequiredDescription
leaf_user_idstringYesUUID of the Leaf user
field_idstringYesUUID of the field

get_field_boundary

Returns the active GeoJSON boundary of a field.
ParameterTypeRequiredDescription
leaf_user_idstringYesUUID of the Leaf user
field_idstringYesUUID of the field

Field Operations

list_operations

Returns a paginated list of field operations for a Leaf user. Supports filtering by provider, time range, operation type, and field.
ParameterTypeRequiredDescription
leaf_user_idstringYesUUID of the Leaf user
providerstringNoCNHI, JohnDeere, Trimble, ClimateFieldView, AgLeader, Stara, or Leaf
start_timestringNoISO-8601 timestamp; operations starting on or after this time
updated_timestringNoISO-8601 timestamp; operations updated on or after this time
end_timestringNoISO-8601 timestamp; operations ending on or before this time
operation_typestringNoapplied, planted, harvested, or tillage
field_idstringNoUUID of the field
pageintegerNoZero-based page number (default 0)
sizeintegerNoPage size, max 100 (default 10)
sortstringNoComma-separated sort fields with optional ,asc or ,desc suffix

get_operation

Returns details for a single field operation.
ParameterTypeRequiredDescription
operation_idstringYesUUID of the field operation

get_operation_summary

Returns the GeoJSON summary for a field operation.
ParameterTypeRequiredDescription
operation_idstringYesUUID of the field operation

get_operation_units

Returns the unit map for a field operation (what units each property uses).
ParameterTypeRequiredDescription
operation_idstringYesUUID of the field operation

Machine Files

list_files

Returns a paginated list of machine files with optional filters. Machine files are the raw data files from providers that Leaf processes into standardized field operations.
ParameterTypeRequiredDescription
leaf_user_idstringNoUUID of the Leaf user
providerstringNoCNHI, JohnDeere, Trimble, ClimateFieldView, AgLeader, RavenSlingshot, Stara, or Leaf
statusstringNoprocessed, failed, or processing
originstringNoprovider, automerged, merged, or uploaded
organization_idstringNoProvider organization ID (John Deere only)
batch_idstringNoUUID of the batch upload
created_timestringNoISO-8601 timestamp; files created on or after this time
start_timestringNoISO-8601 timestamp; operation started on or after this time
updated_timestringNoISO-8601 timestamp; files updated on or after this time
end_timestringNoISO-8601 timestamp; operation ended on or before this time
operation_typestringNoapplied, planted, harvested, or tillage
min_areafloatNoMinimum operation area in square meters
pageintegerNoZero-based page number (default 0)
sizeintegerNoPage size, max 100 (default 10)
sortstringNoComma-separated sort fields with optional ,asc or ,desc suffix

get_file

Returns details for a single machine file.
ParameterTypeRequiredDescription
file_idstringYesUUID of the machine file

get_file_summary

Returns the summary for a machine file.
ParameterTypeRequiredDescription
file_idstringYesUUID of the machine file

get_file_units

Returns the unit map for a machine file.
ParameterTypeRequiredDescription
file_idstringYesUUID of the machine file

get_file_status

Returns the processing status for every step of Leaf’s pipeline for a machine file. Each step reports processed, processing, or failed. Pipeline steps: standardGeojson, cleanupGeojson, areaAndYield, summary, units, originalFile.
ParameterTypeRequiredDescription
file_idstringYesUUID of the machine file

Batch Uploads

list_batches

Returns a paginated list of manual-upload batches.
ParameterTypeRequiredDescription
leaf_user_idstringNoUUID of the Leaf user
providerstringNoProvider name (e.g., JohnDeere, AgLeader, Trimble)
statusstringNoRECEIVED, PROCESSING, PROCESSED, or FAILED
pageintegerNoZero-based page number (default 0)
sizeintegerNoPage size, max 100 (default 10)
sortstringNoComma-separated sort fields with optional ,asc or ,desc suffix

get_batch

Returns details for a single batch upload.
ParameterTypeRequiredDescription
batch_idstringYesUUID of the batch

get_batch_status

Returns the processing status of all files inside a batch.
ParameterTypeRequiredDescription
batch_idstringYesUUID of the batch

Weather

Weather tools come in two flavors: field-based (pass a Leaf user ID and field ID) and coordinate-based (pass latitude and longitude). Each flavor supports daily and hourly granularity for both forecasts and historical data. That’s eight tools total. All weather tools share these optional parameters:
ParameterTypeRequiredDescription
start_timestringNoStart of the time range (YYYY-MM-DD for daily, ISO-8601 for hourly)
end_timestringNoEnd of the time range
modelstringNoWeather model to use
unitsstringNoUnit system for results

Field-based weather

These tools require leaf_user_id (string) and field_id (string), plus the shared optional parameters above.
ToolGranularityData
get_weather_forecast_field_dailyDailyForecast
get_weather_forecast_field_hourlyHourlyForecast
get_weather_historical_field_dailyDailyHistorical
get_weather_historical_field_hourlyHourlyHistorical

Coordinate-based weather

These tools require lat (float) and lon (float), plus the shared optional parameters above.
ToolGranularityData
get_weather_forecast_lat_lon_dailyDailyForecast
get_weather_forecast_lat_lon_hourlyHourlyForecast
get_weather_historical_lat_lon_dailyDailyHistorical
get_weather_historical_lat_lon_hourlyHourlyHistorical

Billing

list_billing_contracts

Returns all billing contracts for the authenticated API owner. Each contract includes product type, start/end dates, and quota. Contract product types:
  • AUDIT_FIELDS_BOUNDARY — active field boundary area (not bounded by contract dates)
  • FIELDS_BOUNDARY — field boundary area consumption within the contract period
  • FIELDS_BOUNDARY_SENTERA — Sentera-exclusive field boundary area
  • OPERATIONS_FILE — machine file area consumption
  • OPERATIONS_OPERATION — field operation area consumption
  • SATELLITE_PROCESS_PLANET — Planet satellite imagery area
  • SATELLITE_PROCESS_SENTINEL — Sentinel satellite imagery area
ParameterTypeRequiredDescription
No parameters

get_billing_contract

Returns details for a specific billing contract.
ParameterTypeRequiredDescription
contract_idstringYesUUID of the contract

get_contract_consumption

Returns consumption metrics for a contract. Defaults to the current day if no timestamp is specified.
ParameterTypeRequiredDescription
contract_idstringYesUUID of the contract
timestampstringNoISO-8601 timestamp (YYYY-MM-DDTHH:MM:SS.sssZ) for a specific day

get_contract_consumption_range_api_owner

Returns daily consumption breakdown for the API owner over a time range.
ParameterTypeRequiredDescription
contract_idstringYesUUID of the contract
start_timestringYesStart time in ISO-8601 format
end_timestringYesEnd time in ISO-8601 format

get_contract_consumption_range_leaf_user

Returns daily consumption breakdown for a specific Leaf user over a time range.
ParameterTypeRequiredDescription
contract_idstringYesUUID of the contract
target_leaf_user_idstringYesUUID of the Leaf user
start_timestringYesStart time in ISO-8601 format
end_timestringYesEnd time in ISO-8601 format
Last modified on March 24, 2026