List Transcripts
list_transcriptsView all your transcription jobs on GhostMinutes. Retrieve a list of submitted transcription requests.
Instructions
List your transcription jobs on GhostMinutes (authenticated accounts only).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_transcripts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/list-transcripts.ts:25-33 (handler)The tool handler function (async callback) that requires auth, calls client.listTranscripts(), and returns the result as text and structured content.
async () => { requireAuth(client); const body = await client.listTranscripts(); return { content: [{ type: 'text', text: JSON.stringify(body, null, 2) }], structuredContent: jsonStructured(body), }; }, ); - src/tools/list-transcripts.ts:18-24 (schema)Input schema definition for list_transcripts — takes no input (z.object({})), with title, description, and annotations.
{ title: 'List Transcripts', description: 'List your transcription jobs on GhostMinutes (authenticated accounts only).', inputSchema: z.object({}), annotations: { readOnlyHint: true, openWorldHint: false }, }, - src/tools/list-transcripts.ts:15-34 (registration)The register() function that registers the tool named 'list_transcripts' on the MCP server.
export function register(server: McpServer, client: GhostMinutesClient): void { server.registerTool( 'list_transcripts', { title: 'List Transcripts', description: 'List your transcription jobs on GhostMinutes (authenticated accounts only).', inputSchema: z.object({}), annotations: { readOnlyHint: true, openWorldHint: false }, }, async () => { requireAuth(client); const body = await client.listTranscripts(); return { content: [{ type: 'text', text: JSON.stringify(body, null, 2) }], structuredContent: jsonStructured(body), }; }, ); } - src/server.ts:35-35 (registration)Invocation of registerListTranscripts(server, client) in server.ts to wire up the tool.
registerListTranscripts(server, client); - src/client.ts:107-116 (helper)Client helper method listTranscripts() that sends a GET request to /mcp/jobs with Bearer auth and ensures OK response.
async listTranscripts(): Promise<unknown> { try { const res = await this.http.get('/mcp/jobs', { headers: { Authorization: `Bearer ${this.apiKey}` }, }); return this.ensureOk(res); } catch (e) { this.handleThrown(e); } }