Skip to main content
Glama

getSupportedFormats

Retrieve a list of supported video formats and encodings for the Video Clip MCP server, enabling users to ensure compatibility for video manipulation tasks like clipping, merging, and splitting.

Instructions

获取支持的视频格式和编码

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The primary handler function implementing the getSupportedFormats tool logic. It constructs a result object with supported video formats, codecs, and audio codecs using Object.values on imported enums, then returns it as JSON text content.
    private async handleGetSupportedFormats() { const result: MCPToolResults['getSupportedFormats'] = { videoFormats: Object.values(VideoFormat), videoCodecs: Object.values(VideoCodec), audioCodecs: Object.values(AudioCodec) }; return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; }
  • The tool registration entry in getToolDefinitions(), specifying the name, description, and empty input schema for listTools request.
    { name: 'getSupportedFormats', description: '获取支持的视频格式和编码', inputSchema: { type: 'object', properties: {} } },
  • Type definition for the output/result of getSupportedFormats in MCPToolResults interface.
    getSupportedFormats: { videoFormats: string[]; videoCodecs: string[]; audioCodecs: string[]; };
  • Type definition for the input parameters of getSupportedFormats in MCPToolParams interface (empty object).
    getSupportedFormats: Record<string, never>;
  • Dispatch case in the main CallToolRequestSchema handler that invokes the specific getSupportedFormats handler.
    case 'getSupportedFormats': return await this.handleGetSupportedFormats();

Other Tools

Related Tools

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/pickstar-2002/video-clip-mcp'

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