peopleByEmail
Identify the potential contact associated with an email address using Routine's 'peopleByEmail' tool. Input an email to retrieve ownership details efficiently.
Instructions
The potential contact owning this email address.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes |
Implementation Reference
- src/tools.ts:228-254 (handler)Full tool definition including registration, input schema (email: string), and handler logic that sends RPC request to 'people.by_email' with the email and returns formatted JSON response or error."peopleByEmail", "The potential contact owning this email address.", { /* {"$schema":"https://json-schema.org/draft/2019-09/schema","type":"string"} */ email: z.string(), }, async ({ email }) => { try { const data = await sendRpcRequest("people.by_email", [email]); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }], }; } catch (error) { logger.error("Error fetching people.by_email: %o", error); return { content: [ { type: "text", text: `Error fetching auth id: ${error instanceof Error ? error.message : String(error)}`, }, ], isError: true, }; } } );
- src/index.ts:234-234 (registration)Calls registerServerTools which registers all tools including peopleByEmail.registerServerTools(server, sendRpcRequest, logger);
- src/tools.ts:231-235 (schema)Zod schema for input: email as string./* {"$schema":"https://json-schema.org/draft/2019-09/schema","type":"string"} */ email: z.string(), }, async ({ email }) => {