Skip to main content
Glama
scmdr

SourceSync.ai MCP Server

by scmdr

getNamespace

Retrieve a specific namespace by its ID to organize and manage documents on SourceSync.ai's knowledge management platform for efficient content ingestion and semantic search.

Instructions

Retrieves a specific namespace by its ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
namespaceIdNo
tenantIdNo

Implementation Reference

  • MCP tool handler for 'getNamespace': extracts namespaceId and tenantId from params, creates SourceSync client, and calls client.getNamespace() wrapped in safeApiCall.
    async (params: GetNamespaceParams) => { return safeApiCall(async () => { const { namespaceId, tenantId } = params // Create a client with the provided API key const client = createClient({ namespaceId, tenantId }) return await client.getNamespace() }) },
  • src/index.ts:160-174 (registration)
    Registration of the 'getNamespace' MCP tool using server.tool, including name, description, schema, and handler function.
    server.tool( 'getNamespace', 'Retrieves a specific namespace by its ID.', getNamespaceSchema.shape, async (params: GetNamespaceParams) => { return safeApiCall(async () => { const { namespaceId, tenantId } = params // Create a client with the provided API key const client = createClient({ namespaceId, tenantId }) return await client.getNamespace() }) }, )
  • Zod schema defining input parameters for getNamespace tool: optional namespaceId and tenantId.
    export const getNamespaceSchema = z.object({ namespaceId: namespaceIdSchema, tenantId: tenantIdSchema, })
  • SourceSyncApiClient helper method getNamespace() that performs the actual API GET request to /v1/namespaces/{namespaceId}.
    public async getNamespace(): Promise<SourceSyncGetNamespaceResponse> { return this.client .url(`/v1/namespaces/${this.namespaceId}`) .get() .json<SourceSyncGetNamespaceResponse>() }

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