get_stats
Retrieve session statistics and current configuration snapshot from the prompte-mcp server to monitor prompt enhancement performance and settings.
Instructions
Get session totals and current config snapshot.
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_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- bin/prompte-mcp.js:200-203 (handler)The handler for 'get_stats' tool which returns session stats, per-technique stats, and current configuration.
case 'get_stats': { const { stats } = getStats(); return { session: sessionStats, perTechnique: stats, config: getConfig() }; } - src/config/profile.js:106-108 (helper)Helper function that reads and returns the statistics from the decisions file.
export function getStats() { return readJSON(DECISIONS_FILE, { decisions: [], stats: {} }); }