Skip to main content
Glama
scmdr

SourceSync.ai MCP Server

by scmdr

deleteNamespace

Permanently deletes a namespace by its ID to remove unused or obsolete organizational structures from the SourceSync.ai knowledge management platform.

Instructions

Permanently deletes a namespace by its ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
namespaceIdNo
tenantIdNo

Implementation Reference

  • src/index.ts:192-206 (registration)
    MCP server registration of the 'deleteNamespace' tool, including the input schema reference and the handler function that wraps the SourceSync client call 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, executing the HTTP DELETE request to the API endpoint /v1/namespaces/{namespaceId} using the configured wretch client.
    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: optional namespaceId and tenantId.
    export const deleteNamespaceSchema = z.object({ namespaceId: namespaceIdSchema, tenantId: tenantIdSchema, })
  • TypeScript type definition for the API response of the deleteNamespace operation.
    export type SourceSyncDeleteNamespaceResponse = SourceSyncApiResponse<{ identifier: string }>
  • Inferred TypeScript type for DeleteNamespaceParams from the Zod schema.
    export type DeleteNamespaceParams = z.infer<typeof deleteNamespaceSchema>

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