search_contact_people
Find contact people by name in Offorte Proposal Software to quickly locate team members and stakeholders for your proposals.
Instructions
Search for people by name in the contacts
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search | Yes |
Input Schema (JSON Schema)
{
"properties": {
"search": {
"type": "string"
}
},
"required": [
"search"
],
"type": "object"
}
Implementation Reference
- The full tool definition and handler implementation for 'search_contact_people'. Includes input parameters schema (search: string), annotations, and the execute function which performs a GET request to `/contacts/people/?query=${search}`, parses the response using contactPeopleListSchema, handles errors, and returns the JSON string of the data.export const searchContactPeopleTool: Tool<typeof parameters._type, typeof parameters> = { name: 'search_contact_people', description: `Search for people by name in the contacts`, parameters, annotations: { title: 'Search Contact People', openWorldHint: true, }, async execute({ search }) { const result = await get(`/contacts/people/?query=${encodeURIComponent(search)}`); const parsed = contactPeopleListSchema.safeParse(result); if (!parsed.success) { throwApiInvalidResponseError(parsed.error); } return JSON.stringify(parsed.data); }, };
- Zod input schema definition for the tool parameters.const parameters = z.object({ search: z.string(), });
- src/tools/register.ts:30-30 (registration)Includes the searchContactPeopleTool in the array of tools to be registered with the FastMCP server.searchContactPeopleTool,
- src/tools/register.ts:12-12 (registration)Import of the searchContactPeopleTool from its implementation file.import { searchContactPeopleTool } from './contacts/search-contact-people.js';
- src/tools/register.ts:37-39 (registration)The registration function that adds all tools (including searchContactPeopleTool) to the MCP server instance.export function registerTools({ server }: { server: FastMCP }) { (tools as unknown as FastMCPTool<Record<string, unknown>, ToolParameters>[]).map(initialContextGuard).forEach((tool) => server.addTool(tool)); }