check_approval
Check the status of a human approval request to verify if sensitive actions can proceed.
Instructions
Check the status of a human approval request.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The approval ID to check |
Implementation Reference
- src/index.js:158-165 (handler)The handler logic for the 'check_approval' tool, which fetches the status of an approval request from an external API.
case 'check_approval': result = await call('GET', `/approve/${args.id}`); return { content: [{ type: 'text', text: `Approval ${result.id}: ${result.status}${result.decision ? ` (${result.decision})` : ''}`, }], }; - src/index.js:93-102 (schema)The registration and schema definition for the 'check_approval' tool.
name: 'check_approval', description: 'Check the status of a human approval request.', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'The approval ID to check' }, }, required: ['id'], }, },