作成した日報アプリをMCP Inspectorで実行しています。実行環境はAlways FreeのAutonomous AI Databaseです。Microsoft Entra IDでユーザー認証しています。アプリの開発にAIを使うため、開発は壊れてもよいローカルのOracle AI Database 26ai Freeのコンテナ環境で実施しています。
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"title": "view_daily_report",
"properties": {
"employeeName": {
"type": "string",
"description": "The employee who wrote the daily report."
},
"reportDate": {
"type": "string",
"description": "Target date of the daily report."
}
},
"required": [
"reportDate"
]
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"title": "view_daily_report",
"properties": {
"employeeName": {
"type": "string",
"description": "The employee who wrote the daily report."
},
"reportDate": {
"type": "string",
"description": "Target date of the daily report."
},
"summary": {
"type": "string",
"description": "Summary of the day"
},
"tomorrowPlan": {
"type": "string",
"description": "Tomorrow Plan"
}
}
}「ビューOJ_MCP_UC_AI_TOOLSで定義されているview_daily_reportの本体となるPL/SQLのファンクションを生成してください。入力はINPUT_SCHEMAで定義されているJSONのCLOB、戻り値はOUTPUT_SCHEMAで定義されているCLOBの形式になります。 PL/SQLファンクションの操作対象は表DAILY_REPORTSです。」
SQLclのMCPサーバーを使用すると、ファンクションの作成に必要な情報をデータベースから引き出してくれます。
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"title": "update_daily_report",
"description": "Update Daily Report",
"properties": {
"employeeName": {
"type": "string",
"description": "The employee who wrote the daily report."
},
"reportDate": {
"type": "string",
"description": "Target date of the daily report."
},
"summary": {
"type": "string",
"description": "Summary of the day"
},
"tomorrowPlan": {
"type": "string",
"description": "Tomorrow Plan"
}
},
"required": [
"reportDate"
]
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"title": "update_daily_report",
"description": "Update Daily Report",
"properties": {
"employeeName": {
"type": "string",
"description": "The employee who wrote the daily report."
},
"reportDate": {
"type": "string",
"description": "Target date of the daily report."
},
"summary": {
"type": "string",
"description": "Summary of the day"
},
"tomorrowPlan": {
"type": "string",
"description": "Tomorrow Plan"
}
}
}



















































