set_threshold
Define the minimum significance threshold (1-10) for insights generated by the MCP Contemplation server, ensuring relevant and actionable cognitive processing during background operations.
Instructions
Set minimum significance threshold for insights
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| significance_threshold | Yes | Minimum significance 1-10 |
Implementation Reference
- src/index.ts:282-284 (handler)Core handler function that sets and clamps the significance threshold value on the ContemplationManager instance.setThreshold(threshold: number): void { this.significanceThreshold = Math.max(1, Math.min(10, threshold)); }
- src/index.ts:433-448 (registration)Registration of the 'set_threshold' tool in the ListToolsRequestSchema handler, including name, description, and input schema definition.{ name: 'set_threshold', description: 'Set minimum significance threshold for insights', inputSchema: { type: 'object', properties: { significance_threshold: { type: 'number', description: 'Minimum significance 1-10', minimum: 1, maximum: 10 } }, required: ['significance_threshold'], }, },
- src/index.ts:535-541 (handler)MCP tool dispatcher handler for 'set_threshold' that parses arguments, invokes the setThreshold method, and returns a confirmation response.case 'set_threshold': { const { significance_threshold } = args as { significance_threshold: number }; contemplation.setThreshold(significance_threshold); return { content: [{ type: 'text', text: `Significance threshold set to ${significance_threshold}` }], }; }
- src/index.ts:436-446 (schema)Input schema definition for the set_threshold tool, specifying the required significance_threshold parameter with validation.inputSchema: { type: 'object', properties: { significance_threshold: { type: 'number', description: 'Minimum significance 1-10', minimum: 1, maximum: 10 } }, required: ['significance_threshold'],