Skip to content

MCP Tools Reference ​

The Model Context Protocol (MCP) provides a standardized way for agents to interact with external systems. In Zelkor, the MCP Gateway aggregates tools from native infrastructure servers and your custom SaaS backends, exposing them securely over a single MCP_URL endpoint.

This abstraction ensures that agent code never handles connection strings or SaaS API keys. Instead, the agent requests an action, and the platform injects the required credentials and enforces tenant isolation before executing the tool.

For instructions on adding your own servers, see Register extra MCP backends.

Native Tools ​

Zelkor ships with several native MCP servers that provide essential infrastructure capabilities out of the box. These tools are strictly governed and automatically enforce tenant boundaries (e.g., injecting row-level security or vector payload filters).

BackendToolDescription
Postgrespostgres__queryExecutes a SQL query against the platform's Postgres database. Tenant context is injected automatically.
Postgrespostgres__list_tablesLists available tables in the database, restricted to what the tenant is authorized to see.
Postgrespostgres__get_schemaRetrieves the schema of a specific table.
Qdrantqdrant__search_documentsPerforms a vector similarity search. The query is automatically wrapped in a tenant_id payload filter.
Qdrantqdrant__upsert_documentInserts or updates a document in Qdrant with tenant payload context.
Sandboxsandbox__execute_pythonExecutes arbitrary Python code in a secure, ephemeral gVisor container. Used for dynamic data analysis or generating charts.

Tool Prefixes ​

To prevent naming collisions, the gateway prefixes tool names based on the server that provides them. When an agent calls tools/list, it sees the prefixed names.

Server / BackendOriginal Tool NameAgent Sees
Postgres (Native)querypostgres__query
Postgres (Native)list_tablespostgres__list_tables
Postgres (Native)get_schemapostgres__get_schema
Qdrant (Native)search_documentsqdrant__search_documents
Qdrant (Native)upsert_documentqdrant__upsert_document
Sandbox (Native)execute_pythonsandbox__execute_python
Extra (e.g., jira)create_issuejira__create_issue

Note: Double underscores (__) separate the server prefix from the tool name.

Tool Invocation Flow ​

Agents interact with the MCP Gateway using standard JSON-RPC 2.0 messages. The interaction typically follows two steps:

  1. Discovery (tools/list): The agent queries the gateway to discover available tools. The gateway aggregates tools from all native and extra backends, applies the appropriate prefix, and returns the unified list.
  2. Execution (tools/call): The agent invokes a specific tool (e.g., postgres__query). The gateway:
    • Identifies the target backend from the prefix.
    • Strips the prefix from the tool name.
    • Enforces the tenant identity (rejecting if the JWT is missing or invalid).
    • Injects the backend secret (database password or SaaS API key).
    • Forwards the request to the target backend and returns the result to the agent.

workspace.tools.extraBackends Schema ​

You configure custom SaaS MCP servers in values.yaml under workspace.tools.extraBackends.

For instructions on adding your own servers, see Register extra MCP backends and the values.schema.json.