Skip to main content
Glama

get_course_features

Retrieve course feature details from the Manalink MCP Server to map labels and IDs for tutoring search criteria.

Instructions

コース特徴マスタを取得します。このマスタの取得を通じて、特徴のラベルとIDの対応を取得します。

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "properties": {}, "type": "object" }

Implementation Reference

  • Full tool handler implementation including registration: calls fetchCourseFeatures and returns JSON response or error.
    server.tool( "get_course_features", "コース特徴マスタを取得します。このマスタの取得を通じて、特徴のラベルとIDの対応を取得します。", async () => { try { const features = await fetchCourseFeatures(); return { content: [{ type: "text" as const, text: JSON.stringify(features, null, 2) }] }; } catch (error) { console.error('特徴マスタの取得に失敗しました:', error); return { content: [{ type: "text" as const, text: `エラーが発生しました: ${error instanceof Error ? error.message : '不明なエラー'}` }], isError: true }; } } );
  • TypeScript interface defining the structure of course features returned by the tool.
    export interface CourseFeature { id: number; name: string; description?: string; }
  • Async helper function that provides the course features data from hardcoded constant.
    export async function fetchCourseFeatures(): Promise<CourseFeature[]> { return COURSE_FEATURES; }
  • Hardcoded array of course features master data used by fetchCourseFeatures.
    const COURSE_FEATURES: CourseFeature[] = [ { id: 1, name: "中学受験" }, { id: 2, name: "高校受験" }, { id: 3, name: "TOEIC" }, { id: 5, name: "大学受験" }, { id: 6, name: "発達障害" }, { id: 8, name: "英検" }, { id: 9, name: "定期テスト" }, { id: 12, name: "共通テスト" }, { id: 21, name: "中高一貫" }, { id: 25, name: "看護" }, { id: 27, name: "帰国子女" }, { id: 32, name: "海外子女" }, { id: 52, name: "医学部" }, { id: 66, name: "不登校" }, { id: 67, name: "平均点以下" }, { id: 71, name: "公務員試験" }, { id: 78, name: "小論文" } ];

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/TeXmeijin/manalinkMCP'

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