Get Upload Instructions for Local Ontology
get_upload_instructionsRetrieve a curl command to upload a local RDF file to the server and obtain an upload_id, avoiding AI file reading to reduce token usage.
Instructions
Returns the exact curl command to upload a local RDF file to this MCP server and get back an upload_id — without the AI ever reading the file content.
CRITICAL — how to use this tool:
Call this tool with the local file path
Execute the returned
curl_commandvia the Bash tool (do NOT read the file first, do NOT pass its content through the conversation)Parse the
idfield from the curl JSON outputPass the id as
upload_idtoinspect_local_ontology,query_local_ontology,compare_local_with_remote, orquery_uploaded_store
Why this matters: Reading the file and sending its content through the AI conversation wastes tokens and may hit context limits. curl sends the raw bytes directly from the filesystem to the server — the AI never sees the content.
When to use this vs X:
use this only when the file is on the client machine and the MCP server cannot read it directly
if the server can already read the file, prefer
file_pathon the local ontology toolsif the file is small and you only need a quick summary,
inspect_local_ontologywithcontent + formatmay be enough
HTTP mode only: This workflow requires the MCP server to be running in HTTP mode (MCP_TRANSPORT=http). In stdio mode the HTTP endpoint is not available; use the content parameter of inspect_local_ontology for small files instead.
Docker / reverse-proxy: Set the MCP_PUBLIC_URL env var to the externally reachable base URL (e.g. http://localhost:8080). Without it, the tool falls back to the internal bind address which may be unreachable from outside the container.
Supported formats: .ttl (Turtle), .owl/.rdf (RDF/XML), .nt (N-Triples), .jsonld (JSON-LD), .graphol (Graphol XML)
Uploaded stores expire after 1 hour.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the local RDF file to upload |