getSecretPassphrase
Retrieve a secure passphrase by generating random US state and signature soup combinations through JSON-RPC 2.0.
Instructions
Whats the password?
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- index.js:48-65 (handler)The handler function that implements the getSecretPassphrase tool by randomly selecting a state and a soup to form a passphrase.handler: async () => { const states = [ 'New England', 'Louisiana', 'Texas', 'California', 'Michigan', 'Wisconsin', 'Maine', 'Florida', 'Washington', 'Oregon', 'New Mexico', 'Kentucky', 'Tennessee', 'Minnesota', 'Illinois' ]; const soups = [ 'Clam Chowder', 'Gumbo', 'Chili', 'Cioppino', 'Cherry Soup', 'Beer Cheese Soup', 'Lobster Stew', 'Conch Chowder', 'Salmon Chowder', 'Marionberry Soup', 'Green Chile Stew', 'Burgoo', 'Hot Chicken Soup', 'Wild Rice Soup', 'Corn Chowder' ]; const randomState = states[Math.floor(Math.random() * states.length)]; const randomSoup = soups[Math.floor(Math.random() * soups.length)]; return `${randomState} ${randomSoup}`; }
- index.js:42-47 (schema)Input schema for the getSecretPassphrase tool, which requires no parameters.inputSchema: { type: 'object', properties: {}, additionalProperties: false, required: [] },
- index.js:39-66 (registration)Registers the getSecretPassphrase tool in the tools Map with name, description, schema, and handler.this.tools.set('getSecretPassphrase', { name: 'getSecretPassphrase', description: 'What\s the password?', inputSchema: { type: 'object', properties: {}, additionalProperties: false, required: [] }, handler: async () => { const states = [ 'New England', 'Louisiana', 'Texas', 'California', 'Michigan', 'Wisconsin', 'Maine', 'Florida', 'Washington', 'Oregon', 'New Mexico', 'Kentucky', 'Tennessee', 'Minnesota', 'Illinois' ]; const soups = [ 'Clam Chowder', 'Gumbo', 'Chili', 'Cioppino', 'Cherry Soup', 'Beer Cheese Soup', 'Lobster Stew', 'Conch Chowder', 'Salmon Chowder', 'Marionberry Soup', 'Green Chile Stew', 'Burgoo', 'Hot Chicken Soup', 'Wild Rice Soup', 'Corn Chowder' ]; const randomState = states[Math.floor(Math.random() * states.length)]; const randomSoup = soups[Math.floor(Math.random() * soups.length)]; return `${randomState} ${randomSoup}`; } });