Skip to main content
Glama

get_tools

Retrieve available tools and workflows from the VeyraX platform to access their methods, parameters, and capabilities for integration.

Instructions

"Use this tool to retrieve a list of available tools from the Veyrax API. This will return dynamic tools that user has access to. You can use this tool to get the list of tools, method names and parameters, and then use tool_call tool to call the tool with the provided parameters. This method also returns all flows with name and id that user has access to (if any). "

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
questionYesQuery question that you want find answer for. Try to ALWAYS provide this field based on conversation with user. Could be your reasoning for calling tool.
toolYesGuess the tool name. Use explicit information based on the user's request or make an educated guess. It will be used for vector search for identifying the most relevant tools.

Implementation Reference

  • The execute method of GetToolsTool that handles the tool logic: constructs URL with optional 'question' and 'tool' query params, fetches from Veyrax API '/get-tools', formats response as MCP content block.
    async execute({ question, tool }: z.infer<typeof this.schema>) { try { let url = '/get-tools'; const params = new URLSearchParams(); if (question) params.append('question', question); if (tool) params.append('tool', tool); if (params.toString()) { url += `?${params.toString()}`; } const { data } = await veyraxClient.get(url); return { content: [ { type: "text" as const, text: JSON.stringify(data, null, 2), }, ], }; } catch (error) { throw error; } }
  • Input schema using Zod: 'question' (string, conversation context/reasoning) and 'tool' (string, for filtering tools). Defines validation for tool parameters.
    schema = z.object({ question: z.string() .describe("Query question that you want find answer for. Try to ALWAYS provide this field based on conversation with user. Could be your reasoning for calling tool."), tool: z.string() .describe("Guess the tool name. Use explicit information based on the user's request or make an educated guess. It will be used for vector search for identifying the most relevant tools.") });
  • src/index.ts:13-13 (registration)
    Registers the GetToolsTool with the MCP server in the main entry point.
    new GetToolsTool().register(server);
  • TypeScript interface for the get_tools response: object mapping tool names to their methods and parameters.
    export interface GetToolsResponse { tools: { [toolName: string]: Tool; }; }
  • src/index.ts:4-4 (registration)
    Import statement for GetToolsTool used in registration.
    import { GetToolsTool } from "./tools/get-tools";

Other Tools

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/clarenous/veyrax-mcp'

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