On this page

Context

knowledge-base-retrieve

Retrieve raw knowledge base documents by tag. Needs the fabric:orchestrate.read grant.

The shape of result for knowledge-base-retrieve is not recorded here: it was not captured against a live deployment. Call it once and read what comes back rather than assuming a shape.

curl -sS -X POST https://fabric.wexa.ai/mcp/$FABRIC_PROJECT_ID \
  -H "authorization: Bearer $FABRIC_API_KEY" \
  -H "Mcp-Session-Id: $MCP_SESSION_ID" \
  -H "content-type: application/json" -H "accept: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"knowledge-base-retrieve","arguments":{"tags":["procurement-policy"],"goal":"Who approves a large purchase?","limit":5}}}'

Parameters

ParameterTypeRequiredNotes
tagsarrayRequiredKnowledge base tags to filter on. A tag nothing was stored under returns nothing. A non-empty array.
goalstringOptionalNatural-language query that reorders the tagged documents; it never widens the search.
limitintegerOptionalMax results (default 10). A positive integer.
offset_point_idstringOptionalPagination cursor from a prior response.
include_image_databooleanOptionalInclude base64 image payloads (default false).
Errors
  • UpstreamError (503): S8:knowledge-base-unavailable: the document store is down or refused the platform's credential. Never an empty result in disguise: no matches is a normal response with an empty list. Retry later.
More details

Full description from the tool, as the gateway advertises it:

Retrieve raw KB documents by tags. The results can be reasoned over directly (by you, the calling agent) to build a process_flow_manifest and call create-process-flow — or fed into a separate classification-style flow first, if the reasoning itself warrants its own dedicated flow. Don't build operational flows straight from unreasoned retrieve output — read it and think first, whichever way you do that.

Not marked consequential: it is audited lightly and the project's write gate never holds it.

Every tool call works the same way: How every tool call works.