search_proposals
Search for proposals in Offorte Proposal Software by entering specific queries to find relevant documents quickly.
Instructions
Search for proposals by query
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search | Yes |
Implementation Reference
- The execute handler function for the 'search_proposals' tool. Performs API search request, validates response with proposalsListSchema, and returns stringified data.async execute({ search }) { const result = await get(`/proposals/open/?query=${encodeURIComponent(search)}`); const parsed = proposalsListSchema.safeParse(result); if (!parsed.success) { throwApiInvalidResponseError(parsed.error); } return JSON.stringify(parsed.data); },
- Input schema (parameters) for the search_proposals tool: requires a 'search' string.const parameters = z.object({ search: z.string(), });
- src/schemas/proposals.ts:28-28 (schema)Output validation schema used in the handler: array of proposal objects.export const proposalsListSchema = z.array(proposalListSchema);
- src/tools/register.ts:14-14 (registration)Import of the searchProposalsTool for registration.import { searchProposalsTool } from './proposals/search-proposals.js';
- src/tools/register.ts:37-39 (registration)Registration function that adds all tools, including searchProposalsTool, to the MCP server.export function registerTools({ server }: { server: FastMCP }) { (tools as unknown as FastMCPTool<Record<string, unknown>, ToolParameters>[]).map(initialContextGuard).forEach((tool) => server.addTool(tool)); }