Skip to main content
Glama
MikeyBeez

MCP Contemplation

by MikeyBeez

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
NameRequiredDescriptionDefault
significance_thresholdYesMinimum significance 1-10

Implementation Reference

  • 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'], }, },
  • 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}` }], }; }
  • 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'],

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MikeyBeez/mcp-contemplation'

If you have feedback or need assistance with the MCP directory API, please join our Discord server