Skip to main content
Glama

Send pieces to an API source

helix_foundry_send_pieces
Destructive

Remember 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

NameRequiredDescriptionDefault
piecesYes1 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_tokenNoA 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_idNoThe API source's workspace. With a send token, optional: the token's own.
event_source_idNoThe API source: a connector of kind events. With a send token, optional: the token's own.
use_case_run_idNoAn 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

NameRequiredDescriptionDefault
seqYesThe send's number in the source, as a string of digits.
nextYesPieces reach the source's table at its next sync, about a minute away; ontologies that map it see them at their next refresh.
piecesYes
warningNoSet from 80% full; tell the user.
capacityYesrows, max_rows, bytes and max_bytes (strings of digits) and percent_full of the source's table.
replayedYesTrue when this client_token's send was already stored: nothing new was stored.
new_fieldsYes
received_atYes
content_trustYes
event_source_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

It goes well beyond the annotations: replacement-by-id semantics, the ability to blank fields by sending {}, the authorization model ('anyone who can send to the source can replace any of its pieces'), the retry-only client_token contract, and the non-MCP HTTP alternative. The destructiveHint annotation is corroborated rather than merely restated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening clause front-loads the purpose well, but the body is a dense single block mixing semantics, limits, auth, and retry rules. Some phrasing ('which the ontologies reading the source take into their graph') is explanatory padding rather than actionable information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema and annotations already present, the description fills the important gaps: replacement risk, auth model, retry semantics, and the escape hatch for non-MCP clients. It is nearly complete for a write tool, though it leaves the piece-count/size limits to the schema and never states what a successful send returns.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents all five parameters in detail. The description adds only marginal meaning beyond it, notably tying use_case_run_id to the pieces' ids and framing event_source_id as 'a connector of kind events,' so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a concrete verb and resource: send JSON pieces (objects with an id) to a Foundry API source of kind events, so ontologies can read them later. The purpose is unmistakable, though it never names a sibling tool or explicitly contrasts itself with one, so differentiation is left to inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by 'Remember something for later ... to read and ask about later,' and there is a useful fallback path for non-MCP clients (direct POST to the ingest endpoint). However, there is no explicit when-to-use/when-not guidance relative to sibling tools, and no stated prerequisite beyond 'a source a person made.'

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources