Skip to main content
Glama
scmdr

SourceSync.ai MCP Server

by scmdr

getIngestJobRunStatus

Retrieve the status of a content ingestion job to monitor progress and ensure successful data integration into the knowledge management platform.

Instructions

Checks the status of a previously submitted ingestion job.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ingestJobRunIdYes
namespaceIdNo
tenantIdNo

Implementation Reference

  • Registration and handler function for the 'getIngestJobRunStatus' MCP tool. Creates a SourceSync client and calls its getIngestJobRunStatus method, wrapped in safeApiCall for error handling.
    server.tool( 'getIngestJobRunStatus', 'Checks the status of a previously submitted ingestion job.', IngestJobRunStatusSchema.shape, async (params) => { return safeApiCall(async () => { const { namespaceId, tenantId, ingestJobRunId } = params // Create a client with the provided API key const client = createClient({ namespaceId, tenantId }) return await client.getIngestJobRunStatus({ ingestJobRunId, }) }) }, )
  • Zod input schema defining parameters for the getIngestJobRunStatus tool: optional namespaceId, required ingestJobRunId, optional tenantId.
    export const IngestJobRunStatusSchema = z.object({ namespaceId: namespaceIdSchema.optional(), ingestJobRunId: z.string(), tenantId: tenantIdSchema, })
  • SourceSyncApiClient helper method that performs the actual HTTP GET request to retrieve ingest job run status from the SourceSync API.
    /** * Get the status of an ingest job run */ public async getIngestJobRunStatus({ ingestJobRunId, }: Omit< SourceSyncGetIngestJobRunStatusRequest, 'namespaceId' >): Promise<SourceSyncGetIngestJobRunStatusResponse> { return this.client .url(`/v1/ingest-job-runs/${ingestJobRunId}`) .query({ namespaceId: this.namespaceId }) .get() .json<SourceSyncGetIngestJobRunStatusResponse>() }
  • TypeScript type definitions for the SourceSyncGetIngestJobRunStatusRequest and Response used by the client method.
    export type SourceSyncGetIngestJobRunStatusRequest = { ingestJobRunId: string } export type SourceSyncGetIngestJobRunStatusResponse = SourceSyncApiResponse<SourceSyncIngestJobRun>

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