Skip to main content
Glama

approve_instinct

Approve an instinct for active use by setting its approved_by status to human, enabling persistent tool context across chat sessions.

Instructions

Approve an instinct for active use (sets approved_by to human)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesInstinct ID to approve

Implementation Reference

  • Handler implementation for the approve_instinct tool, which calls registry.approve.
    case 'approve_instinct': {
      const id = String(args?.['id'] ?? '');
      if (!id) return { content: [{ type: 'text', text: 'Error: id is required' }] };
      try {
        const instinct = await registry.approve(id);
        return { content: [{ type: 'text', text: JSON.stringify({ approved: id, confidence: instinct.confidence, active: instinct.active }, null, 2) }] };
      } catch (e) {
        return { content: [{ type: 'text', text: `Error: ${e instanceof Error ? e.message : String(e)}` }] };
      }
    }
  • Tool definition and schema registration for approve_instinct.
    {
      name: 'approve_instinct',
      description: 'Approve an instinct for active use (sets approved_by to human)',
      inputSchema: {
        type: 'object' as const,
        properties: {
          id: { type: 'string', description: 'Instinct ID to approve' },
        },
        required: ['id'],
      },
    },

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/doobidoo/MCP-Context-Provider'

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