dataforseo-mcp-server
Version:
A Model Context Protocol (MCP) server for the DataForSEO API, enabling modular and extensible integration of DataForSEO endpoints with support for both HTTP and SSE transports.
28 lines • 987 B
JavaScript
import { BaseTool } from "../../../base.tool.js";
import { z } from 'zod';
export class AiOptimizationLlmModelsTool extends BaseTool {
constructor(dataForSEOClient) {
super(dataForSEOClient);
}
getName() {
return "ai_optimization_llm_models";
}
getDescription() {
return "Utility tool for ai_optimization_llm_response to get list of availible locations and languages";
}
getParams() {
return {
llm_type: z.string().describe(`type of llm. Must be one of: 'claude', 'gemini', 'chat_gpt', 'perplexity'`),
};
}
async handle(params) {
try {
const response = await this.dataForSEOClient.makeRequest(`/v3/ai_optimization/${params.llm_type}/llm_responses/models`, 'GET', null, true);
return this.validateAndFormatResponse(response);
}
catch (error) {
return this.formatErrorResponse(error);
}
}
}
//# sourceMappingURL=llm-models.js.map