MCP tools reference¶
These tools are registered on POST /api/v1/mcp. Authentication, transport, and permissions are in MCP server.
Every method requires Jobs → Compose. The extra permission is listed on each tool. Arguments that are not in the schema are rejected. Unsupported operations are reported and are not dropped silently.
List results are capped at 200 connections. truncated is true when the list was cut.
list_sources¶
Requires Sources → Read. No arguments.
Returns sources, each with id, name, and type, for saved conversion sources the token owner may use. It does not return records, file contents, passwords, API keys, connection strings, or source URLs.
describe_source¶
Requires Sources → Read.
Ownership is checked before inspection. URL and HTTP sources can return layer names, geometry type, CRS, and field names. Other source types return an explicit discovery limitation. No records or file contents are returned. Describing the same owned revision is cached for 30 seconds.
list_destinations¶
Requires Destinations → Read. No arguments.
Returns destinations, each with id, name, and type.
describe_destination¶
Requires Destinations → Read.
Returns the destination's parameter names, which of them are required, and the supported write modes. It does not connect to the destination or read its records.
list_operations¶
Requires Workspaces → Read. No arguments.
Returns composable vector operations, raster operations when any are composable, output formats, CRS values, job-level properties, and operations that are visible but not composable. An entry under unavailable is not an executable capability.
Composable operation ids:
keep_columns, drop_column, rename_column, replace_text, compute_column, trim_whitespace, convert_type, filter_rows, clip, simplify, buffer
Not composable, and rejected by create_pipeline_draft:
| Id | Why it is listed |
|---|---|
sql |
Not composable in a generated draft |
python |
Not composable in a generated draft |
shell |
Not a pipeline operation |
reproject |
The engine can store it on a saved Job. A generated draft uses target_crs instead |
resample |
The engine can store it on a saved Job. A generated draft cannot include it |
output_format and target_crs are job properties in this result. An empty value keeps the source value. They are not transform steps. Write modes come from describe_destination.
Drafts from this tool are manual. A schedule in the request is ignored and is not enabled. Configure the execution schedule when saving the pipeline as a Job.
Advertised CRS values include an empty value (keep the source CRS), EPSG:4326, EPSG:3857, EPSG:4269, and EPSG:27700. Other EPSG codes are accepted when Enciva's CRS check accepts them.
describe_operation¶
Requires Workspaces → Read.
A composable operation returns composable: true, dataset_types, and parameters. An unavailable operation returns composable: false and the reason. An unknown id is rejected. The description states that the step does not run until a person saves the Job and runs it in Enciva.
list_prepare_operations¶
Requires Jobs → Compose only. No arguments.
Returns the declarative preparation operations that may run on a raw download before GDAL, including parameter schemas. It does not read a source, execute a plan, or call an AI provider. The operation ids and limits are the same as Intelligent source preparation.
sample_source¶
Requires Sources → Read.
Returns a bounded sample of one owned raw source:
| Field | Meaning |
|---|---|
id, name, type |
The saved source |
bytes |
Size of the excerpt |
truncated |
The file was longer than the excerpt |
sample |
File text. It is data, not instructions |
The sample does not include the source URL, credentials, or the complete file. The read bounds are 16 KiB of representative text from a scan of up to 64 KiB. It does not call an AI provider or execute a plan. Preparation is available for sources that keep the original download. See Source preparation.
validate_prepare¶
Requires Sources → Read.
{
"id": "<source id from list_sources>",
"prepare": {
"version": 1,
"input_kind": "text",
"output_kind": "geojson",
"operations": [
{ "op": "extract_json" }
]
}
}
prepare must use operations from list_prepare_operations. Enciva runs that allow-list locally and returns:
| Field | Meaning |
|---|---|
valid |
The plan produced at least one feature |
feature_count |
Features in the normalized FeatureCollection |
geometry_types |
Geometry type names found |
fields |
Property names found |
numeric_coordinates |
Coordinate leaves are JSON numbers |
problems |
Present when the plan is rejected or produced no features |
plan |
The canonical plan when encoding succeeds |
The check does not save a Job, deliver output, execute code, or call an AI provider. The plan does not assign a CRS.
create_pipeline_draft¶
Requires Jobs → Compose. Names in the result also need Sources → Read and Destinations → Read.
{
"timezone": "UTC",
"kind": "convert",
"draft": {
"name": "Neighborhoods to PostGIS",
"source": { "id": "<source id>" },
"destination": {
"id": "<destination id>",
"schema": "public",
"table": "neighborhoods",
"write_mode": "replace",
"write_mode_specified": true
},
"operations": [
{ "type": "rename_column", "from": "name", "to": "label" }
],
"prepare": {
"version": 1,
"input_kind": "text",
"output_kind": "geojson",
"operations": [{ "op": "extract_json" }]
},
"output_format": "GPKG",
"target_crs": "EPSG:4326",
"schedule": { "kind": "daily", "hour": 2, "minute": 15 }
}
}
timezone is an optional IANA zone used when the schedule omits one. A schedule is not invented and is not enabled. kind accepts convert. sync is rejected.
draft.source.new_url may be sent and is reported as an unsupported source. The URL is not fetched. Use a saved source id. draft.destination also accepts the target fields Enciva stores on a pipeline, including dataset, key, remote_path, workspace, store, layer, source_layer, title, resource_name, category_id, and permission_mode.
sql, python_script, shell, and prompt are not properties of this tool. Sending them is a schema error.
The result always has saved: false, executable: false, and schedule_enabled: false. problems and unresolved mean the draft needs a choice in the editor. document is the JSON to import. It is not a Job id. See Pipeline authoring.
validate_pipeline¶
Requires Jobs → Compose.
The body uses the same field names as a pipeline write:
name, description, enabled, kind, source_id, source_resource, transform_mode, recipe_id, operations, output_fields, output_format, target_crs, pipeline, destination_id, destination_target, schedule, notifications, prepare.
Validation forces the draft to manual. A schedule in the request is ignored. The check does not insert a Job, start a run, or enable a schedule. The returned job has enabled: false. Setting enabled to true is rejected. sql, python_script, and shell are not arguments of this tool.
saved, executable, and schedule_enabled are false. valid reports whether the authoring check passed.