Send pieces to an API source
helix_foundry_send_piecesRemember something for later in a business's Foundry ontology: what an agent learned, decided or did, sent as JSON pieces (objects with an id) to a Foundry API source (a connector of kind events), which the ontologies reading the source take into their graph, to read and ask about later. A piece replaces any piece already in the source with the same id. Not confirmed: it only writes data to a source a person made. Anyone who can send to the source can replace any of its pieces by id, or blank its fields by sending {}. Apps without an MCP client can POST the same pieces to https://ingest.helix-db.com/v1/sources/<event_source_id>/pieces with a send token as the bearer.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pieces": "<pieces>"
},
"name": "helix_foundry_send_pieces"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pieces | Yes | 1 to 500 pieces, at most 1 MiB of data together (keep a call under about 800 KB: data_json is escaped inside the call). | |
| client_token | No | A new random value for each call, 16 to 64 printable ASCII characters (a UUID). Reuse it only to retry the same call with the same pieces, such as after backend_unavailable: that stores nothing new and returns the first send. With other pieces it is refused. | |
| workspace_id | No | The API source's workspace. With a send token, optional: the token's own. | |
| event_source_id | No | The API source: a connector of kind events. With a send token, optional: the token's own. | |
| use_case_run_id | No | An open run of a use case (helix_foundry_start_use_case_run) to record this send under, with its pieces' ids; empty for none. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seq | Yes | The send's number in the source, as a string of digits. | |
| next | Yes | Pieces reach the source's table at its next sync, about a minute away; ontologies that map it see them at their next refresh. | |
| pieces | Yes | ||
| warning | No | Set from 80% full; tell the user. | |
| capacity | Yes | rows, max_rows, bytes and max_bytes (strings of digits) and percent_full of the source's table. | |
| replayed | Yes | True when this client_token's send was already stored: nothing new was stored. | |
| new_fields | Yes | ||
| received_at | Yes | ||
| content_trust | Yes | ||
| event_source_id | Yes |