Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PORT | No | Port for streamable-http transport | 8080 |
| BQ_PROJECT | No | BigQuery クエリ実行用 GCP プロジェクト | |
| DATA_PROJECT | No | KARTE データプロジェクト | karte-data |
| KARTE_API_KEY | Yes | KARTE API キー | |
| MCP_TRANSPORT | No | MCP transport protocol (stdio or streamable-http) | stdio |
| CREDENTIAL_FILE | No | サービスアカウントキーファイルパス |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| query_karte_events | KARTEイベントデータを取得する。 日付制約は自動的に適用される(デフォルト: 2日前〜昨日)。 Args: select_columns: SELECT句(デフォルト: "*") where_clause: 追加WHERE条件(例: "event_name = 'click'") date_from: 開始日 YYYYMMDD形式(デフォルト: 2日前) date_to: 終了日 YYYYMMDD形式(デフォルト: 昨日) limit: 取得件数上限 1〜10000(デフォルト: 100)。Noneで制限なし order_by: ORDER BY句(例: "sync_date DESC") |
| count_karte_events | KARTEイベントの件数を取得する。 Args: where_clause: WHERE条件(例: "event_name = 'purchase'") date_from: 開始日 YYYYMMDD形式(デフォルト: 2日前) date_to: 終了日 YYYYMMDD形式(デフォルト: 昨日) group_by: GROUP BY句(例: "event_name") |
| describe_karte_events_schema | KARTEイベントテーブルのスキーマを取得する。 テーブルのカラム名、型、説明等のメタデータを返す。 |
| execute_karte_sql | カスタムSQLを実行する(ガードレール付き)。 krt_pockyevent_v1_* テーブルへのクエリには _TABLE_SUFFIX 制約が必須。 LIMIT未指定時は自動で LIMIT 1000 が付与される。 破壊的SQL(DROP, DELETE等)は拒否される。 Args: sql: 実行するSQL文 dry_run: Trueの場合、スキャン量のみ確認する no_limit: Trueの場合、自動LIMIT付与をスキップする |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |