Skip to main content
Glama

Get Tool Help

get-tool-help

Retrieve detailed information, including input schema and parameters, for any tool in the MCP Firebird server to understand its purpose and usage.

Instructions

Obtiene información detallada sobre una herramienta específica

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toolNameYesNombre de la herramienta sobre la que obtener ayuda

Implementation Reference

  • The handler function for the 'get-tool-help' tool. It looks up a tool by name in the combined map of database and metadata tools, and returns detailed help information (name, title, description, category, inputSchema, usage) formatted via formatForClaude.
        handler: async (args: { toolName: string }) => {
            try {
                const allTools = new Map([...databaseTools, ...tools]);
                const tool = allTools.get(args.toolName);
    
                if (!tool) {
                    return {
                        content: [{
                            type: 'text',
                            text: `Herramienta '${args.toolName}' no encontrada. Use 'list-available-tools' para ver las herramientas disponibles.`
                        }],
                        isError: true
                    };
                }
    
                const helpInfo = {
                    name: args.toolName,
                    title: tool.title || args.toolName,
                    description: tool.description,
                    category: databaseTools.has(args.toolName) ? 'database' : 'metadata',
                    inputSchema: tool.inputSchema ? 'Disponible' : 'No definido',
                    usage: `Para usar esta herramienta, llame a '${args.toolName}' con los parámetros apropiados.`
                };
    
                return {
                    content: [{
                        type: 'text',
                        text: `Ayuda para la herramienta: ${args.toolName}\n\n${formatForClaude(helpInfo)}`
                    }]
                };
            } catch (error) {
                logger.error('Error getting tool help:', { error });
                return {
                    content: [{
                        type: 'text',
                        text: `Error obteniendo ayuda: ${error instanceof Error ? error.message : String(error)}`
                    }],
                    isError: true
                };
            }
        }
    });
  • Input schema for 'get-tool-help' using Zod. Expects a single required string parameter 'toolName' representing the name of the tool to get help about.
    inputSchema: z.object({
        toolName: z.string().describe('Nombre de la herramienta sobre la que obtener ayuda')
    }),
  • Registration of the 'get-tool-help' tool in the metadata tools map via tools.set(). It sets the title, description, inputSchema, and handler.
    tools.set('get-tool-help', {
        title: 'Get Tool Help',
        description: 'Obtiene información detallada sobre una herramienta específica',
        inputSchema: z.object({
            toolName: z.string().describe('Nombre de la herramienta sobre la que obtener ayuda')
        }),
        handler: async (args: { toolName: string }) => {
            try {
                const allTools = new Map([...databaseTools, ...tools]);
                const tool = allTools.get(args.toolName);
    
                if (!tool) {
                    return {
                        content: [{
                            type: 'text',
                            text: `Herramienta '${args.toolName}' no encontrada. Use 'list-available-tools' para ver las herramientas disponibles.`
                        }],
                        isError: true
                    };
                }
    
                const helpInfo = {
                    name: args.toolName,
                    title: tool.title || args.toolName,
                    description: tool.description,
                    category: databaseTools.has(args.toolName) ? 'database' : 'metadata',
                    inputSchema: tool.inputSchema ? 'Disponible' : 'No definido',
                    usage: `Para usar esta herramienta, llame a '${args.toolName}' con los parámetros apropiados.`
                };
    
                return {
                    content: [{
                        type: 'text',
                        text: `Ayuda para la herramienta: ${args.toolName}\n\n${formatForClaude(helpInfo)}`
                    }]
                };
            } catch (error) {
                logger.error('Error getting tool help:', { error });
                return {
                    content: [{
                        type: 'text',
                        text: `Error obteniendo ayuda: ${error instanceof Error ? error.message : String(error)}`
                    }],
                    isError: true
                };
            }
        }
    });
  • The 'get-tool-help' tool (along with other metadata tools) is registered into the server by calling setupMetadataTools(databaseTools) and merging the result into the allTools map.
    const metadataTools = setupMetadataTools(databaseTools);
  • The formatForClaude helper utility used by the handler to format the help info object into a readable string for output.
    export const formatForClaude = (result: any): string => {
        try {
            // For simple strings, return them directly
            if (typeof result === 'string') {
                return result;
            }
    
            // For objects, convert them to a pretty JSON string
            return JSON.stringify(result, null, 2);
        } catch (error) {
            // Handle JSON.stringify errors
            console.error(`Error formatting for Claude: ${error instanceof Error ? error.message : String(error)}`);
            return `Error formatting result: ${error instanceof Error ? error.message : String(error)}`;
        }
    };
Behavior1/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations exist, so the description must fully disclose behavioral traits. It only states the basic function, without indicating whether it is read-only, what the output format is, or any side effects. This is inadequate for a tool that presumably returns help content.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single concise sentence with no wasted words. It directly states the tool's purpose and is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description is minimal. For a help tool, it should explain the nature of the help (e.g., format, content) and any constraints. No output schema is provided, and the text fails to compensate. The Spanish language adds a potential barrier for English agents.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the description of parameter 'toolName' in Spanish matches the parameter description. The description adds no extra semantic value beyond the schema, but the baseline for high coverage is 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Obtiene información detallada sobre una herramienta específica' clearly states the verb (gets) and resource (detailed information about a specific tool). It distinguishes from sibling tool 'list-available-tools' by focusing on a single tool, but does not explicitly contrast. The language is Spanish, which may hinder an English-speaking AI, but the purpose is still clear.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No usage guidelines provided. The description does not mention when to use this tool versus alternatives like 'list-available-tools', nor any prerequisites or context. The agent receives no guidance on selection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

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/PuroDelphi/mcpFirebird'

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