ask_tembo
Query Tembo Docs to find answers and guidance on managing Tembo Cloud resources using natural language interactions.
Instructions
Ask a question to Tembo Docs
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The ask query. For example, "how to create a Tembo instance" |
Implementation Reference
- src/tools.ts:289-304 (handler)The handler function for the 'ask_tembo' tool. It extracts the 'query' from the input arguments, calls temboClient.ask with the query, and returns the JSON-stringified response or error.ask_tembo: async (request) => { const { query } = request.params.arguments as { query: string }; const response = await temboClient.ask({ query: { query, }, }); return { content: [ { type: "text", text: JSON.stringify(response.data ?? response.error, null, 2), }, ], }; },
- src/tools.ts:36-50 (schema)The schema definition for the 'ask_tembo' tool, including name, description, and input schema requiring a 'query' string.{ name: "ask_tembo" as const, description: "Ask a question to Tembo Docs", inputSchema: { type: "object", properties: { query: { type: "string", description: 'The ask query. For example, "how to create a Tembo instance"', }, }, required: ["query"], }, },
- src/index.ts:32-34 (registration)Registration of all tools (including 'ask_tembo') via the ListTools handler that returns the TOOLS array.server.setRequestHandler(ListToolsRequestSchema, () => { return { tools: TOOLS }; });
- src/index.ts:41-44 (registration)Dispatch logic in CallTool handler that routes to the specific TOOL_HANDLERS[toolName] for execution if allowed.try { if (isAllowedTool(toolName)) { return await TOOL_HANDLERS[toolName](request); }