get_subject_master
Retrieve subject labels and their corresponding IDs to map and organize subject data within the Manalink MCP Server, enabling efficient search and categorization.
Instructions
科目マスタを取得します。このマスタの取得を通じて、科目のラベルとIDの対応を取得します。
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": "get_subject_master"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.ts:19-30 (registration)Registration of the 'get_subject_master' tool, including its description and inline handler function that returns the subjects master as formatted JSON text.
server.tool( "get_subject_master", "科目マスタを取得します。このマスタの取得を通じて、科目のラベルとIDの対応を取得します。", async () => { return { content: [{ type: "text" as const, text: JSON.stringify(subjects, null, 2) }] }; } ); - src/masters/subjects.ts:10-25 (helper)The subjects master data array used by the get_subject_master tool handler.
export const subjects: Subject[] = [ { id: 40, name: "英語", code: "english" }, { id: 45, name: "理科", code: "science" }, { id: 46, name: "化学", code: "chemistry" }, { id: 47, name: "物理", code: "physics" }, { id: 48, name: "算数", code: "math" }, { id: 49, name: "中学数学", code: "juniorhighschoolmath" }, { id: 50, name: "高校数学", code: "highschoolmath" }, { id: 51, name: "国語", code: "language" }, { id: 52, name: "古典", code: "classic" }, { id: 53, name: "社会", code: "social" }, { id: 212, name: "その他の科目", code: "others" }, { id: 2655, name: "総合型・学校推薦型対策", code: "essay" }, { id: 2657, name: "金融", code: "finance" }, { id: 2658, name: "情報", code: "information" } ]; - src/masters/subjects.ts:4-8 (schema)Type definition (schema) for Subject entries in the master data.
export interface Subject { id: number; name: string; code: string; }