Skip to main content
Glama
hesreallyhim

DIY Tools MCP Server

add_tool

Add custom tools or functions to the MCP server by specifying name, description, programming language, and code. New tools become available to clients for execution.

Instructions

Add a new custom tool/function to the server

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesThe name of the tool (must be unique)
descriptionYesA description of what the tool does
languageYesThe programming language the function is written in
codeNoThe function code (inline). Must define a function named "main". Mutually exclusive with codePath
codePathNoPath to file containing the function code. Mutually exclusive with code
parametersYesJSON Schema defining the input parameters for the function
returnsNoOptional description of what the function returns
dependenciesNoOptional list of dependencies (e.g., Python packages)
timeoutNoOptional timeout in milliseconds (max 300000ms = 5 minutes)
Behavior2/5

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

No annotations are provided, so the description carries full burden. It only states 'Add a new custom tool/function' without disclosing side effects (e.g., overwriting, error handling for duplicate names), permissions, or return behavior. Schema notes uniqueness but description adds no behavioral context.

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?

Single sentence with no extraneous text, perfectly concise for the core purpose.

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?

With 9 parameters and no output schema, the description is too brief. It does not explain what happens upon success/failure, return format, or relationships with siblings. More detail is needed for a tool of this complexity.

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 description coverage is 100%, so baseline is 3. The description adds no parameter-specific information beyond what the schema already provides, neither enhancing nor detracting.

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

Purpose5/5

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

The description 'Add a new custom tool/function to the server' uses a specific verb and clearly identifies the resource. It distinguishes from sibling tools (list_tools, remove_tool, view_source) by implying addition rather than listing, removal, or viewing.

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

Usage Guidelines3/5

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

No explicit guidance on when to use this tool versus alternatives. The purpose is clear but lacks context about prerequisites or when not to use it. Sibling names hint at different functions but no comparison is provided.

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/hesreallyhim/diy-tools-mcp'

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