Skip to main content
Glama

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

NameRequiredDescriptionDefault
searchYes

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(), });
  • Includes the searchContactPeopleTool in the array of tools to be registered with the FastMCP server.
    searchContactPeopleTool,
  • Import of the searchContactPeopleTool from its implementation file.
    import { searchContactPeopleTool } from './contacts/search-contact-people.js';
  • 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)); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/offorte/offorte-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server