Skip to main content
Glama
scmdr

SourceSync.ai MCP Server

by scmdr

deleteNamespace

Permanently remove a namespace by its ID to manage and organize data within the SourceSync.ai MCP Server, ensuring efficient knowledge management.

Instructions

Permanently deletes a namespace by its ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
namespaceIdNo
tenantIdNo

Implementation Reference

  • src/index.ts:192-206 (registration)
    MCP tool registration for 'deleteNamespace', including the inline handler function that extracts parameters, creates a SourceSync client, and delegates to client.deleteNamespace() wrapped in safeApiCall for error handling.
    server.tool( 'deleteNamespace', 'Permanently deletes a namespace by its ID.', deleteNamespaceSchema.shape, async (params: DeleteNamespaceParams) => { return safeApiCall(async () => { const { namespaceId, tenantId } = params // Create a client with the provided API key const client = createClient({ namespaceId, tenantId }) return await client.deleteNamespace() }) }, )
  • Core implementation of the deleteNamespace method in the SourceSyncApiClient class, which performs an HTTP DELETE request to `/v1/namespaces/${namespaceId}` and parses the response.
    public async deleteNamespace(): Promise<SourceSyncDeleteNamespaceResponse> { return this.client .url(`/v1/namespaces/${this.namespaceId}`) .delete() .json<SourceSyncDeleteNamespaceResponse>() }
  • Zod schema defining the input parameters for the deleteNamespace tool: required namespaceId and optional tenantId.
    export const deleteNamespaceSchema = z.object({ namespaceId: namespaceIdSchema, tenantId: tenantIdSchema, })

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/scmdr/sourcesyncai-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server