Skip to main content
Glama

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
NameRequiredDescriptionDefault
searchYes

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(), });
  • Output validation schema used in the handler: array of proposal objects.
    export const proposalsListSchema = z.array(proposalListSchema);
  • Import of the searchProposalsTool for registration.
    import { searchProposalsTool } from './proposals/search-proposals.js';
  • 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)); }

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