kb_update_personal
Update personal details like name, location, languages, and preferences to maintain accurate user context for AI interactions.
Instructions
Update personal information (name, location, languages, etc.)
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": "kb_update_personal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| birthYear | No | ||
| birthPlace | No | ||
| currentLocation | No | ||
| languages | No | ||
| nationality | No | ||
| timezone | No | ||
| pronouns | No |
Implementation Reference
- src/index.ts:557-567 (handler)MCP tool handler for kb_update_personal: delegates to KnowledgeManager.updatePersonal and returns success message
case 'kb_update_personal': { await km.updatePersonal(args as any); return { content: [ { type: 'text', text: '✅ Personal information updated successfully' } ] }; } - src/KnowledgeManager.ts:143-156 (handler)Core implementation of personal information update: merges partial updates into knowledge base, adds history entry, persists to JSON file
async updatePersonal(updates: Partial<PersonalInfo>): Promise<void> { Object.entries(updates).forEach(([field, value]) => { const oldValue = (this.kb.personal as any)[field]; (this.kb.personal as any)[field] = value; this.addHistory({ action: oldValue === undefined ? 'add' : 'update', category: 'personal', field, oldValue, newValue: value }); }); await this.save(); } - src/index.ts:86-101 (schema)Input schema definition for kb_update_personal tool, defining expected parameters for personal info updates
name: 'kb_update_personal', description: 'Update personal information (name, location, languages, etc.)', inputSchema: { type: 'object', properties: { name: { type: 'string' }, birthYear: { type: 'number' }, birthPlace: { type: 'string' }, currentLocation: { type: 'string' }, languages: { type: 'array', items: { type: 'string' } }, nationality: { type: 'string' }, timezone: { type: 'string' }, pronouns: { type: 'string' } } } }, - src/index.ts:423-425 (registration)Registers all tools including kb_update_personal by returning the tools array in ListToolsRequestSchema handler
server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });