What is a tool?
A tool is the fundamental unit of work in MCPCore. It has:- A name: how the AI client identifies and calls it (e.g.
fetch_repo_stats) - A description: a plain-language explanation of what the tool does; the AI uses this to decide when to call it
- Parameters: the typed inputs the AI passes at call time
- Logic: JavaScript code or a no-code workflow that runs when the tool is invoked
Code or workflow?
When you click Create New Tool, MCPCore asks how you want to build it:
Both produce the same kind of tool: AI clients see no difference. A tool always reopens in the editor it was built with. To build without code, follow the workflow builder guide. The steps below cover the code editor.
Create a tool
1
Open the Tools section
On the server detail page, click Create New Tool in the Tools section, then choose Write code.
2
Name your tool
Choose a clear, descriptive name in lowercase snake_case:
The name appears in the MCP schema and in your analytics dashboard. It cannot contain spaces or special characters.
3
Write a description
The description is critically important: it’s what the AI reads to decide when to call your tool. Be specific.Good description:
Fetches the number of stars, forks, and primary language for a GitHub repository. Use when the user asks about repository statistics or open-source project metrics.Weak description:
Gets GitHub data.
4
Add parameters
Define the inputs your code will receive via
params.*. See Parameters for the full schema reference.5
Set the behavior (optional)
Under Behavior, tell AI clients what the tool does to your data. See Behavior below.
6
Write the code
Write JavaScript in the code editor. The sandbox gives you access to
sdk, params, env, and console. See Sandbox for the complete API.Use the Snippets panel to insert ready-made blocks for HTTP calls, database queries and secrets, or let the AI Tool Builder generate the code, see below.7
Save
Click Create. The tool is live immediately on your server’s endpoint. Later edits are saved with Save & publish or Save draft, and every save is kept in the version history.
Behavior
The Behavior field tells AI clients what a tool does to your data. MCPCore sends it with the tool as standard MCP tool annotations. Clients such as Claude, Cursor and VS Code use it to decide whether to ask the user before running the tool.- The Playground turns tools marked Deletes or overwrites data off until you allow them.
- Imported tools get a behavior from their HTTP method: GET is Read-only, DELETE is Deletes or overwrites data, and the rest Changes data.
- The behavior is part of every version of the tool.
AI Tool Builder
The AI Tool Builder lets you create tools by describing what you want in plain language. Instead of writing code manually, you describe the tool’s purpose and MCPCore’s AI generates the complete tool, including the name, parameters, and code.How it works
- Open the tool editor and locate the AI Assistant panel on the right side
- Type a description of what your tool should do (up to 2000 characters)
- Click Generate
- The AI produces:
- A properly formatted
snake_casetool name - Typed parameters with descriptions
- Complete, working JavaScript code using
sdk.http(),sdk.db(), orsdk.lodash
- A properly formatted
- Review the generated code, make any adjustments, and save
Example prompts
Try these to get started:Fetch user profile from a PostgreSQL database using an email parameterCall a REST API endpoint and transform the JSON responseConnect to MySQL, query a table with filters, and return paginated results
Generation limits
AI generation is available on supported plans. Each user can generate up to 20 tools per day.The AI Tool Builder uses Claude Sonnet 4 to generate code. Always review the generated code before saving, especially when the tool writes data or interacts with sensitive systems.
A minimal tool
sdk.http() makes an HTTP request. env.GITHUB_TOKEN is a secret stored in the dashboard. params.repo is the value the AI passed at call time. The object you return is what the AI receives as the tool result.
Tool limits
Next steps
Code Editor
Explore the VS Code-style editor with snippets, AI completions and integrated terminal.
Workflow Builder
Build tools by connecting steps, no code required.
Code Examples
Ready-to-use examples for HTTP, databases, Lodash, and more.
Sandbox API
Full reference for
sdk.http(), sdk.db(), env, params, and console.Parameters
Define typed, validated inputs for your tools.
Secrets
Store and reference API keys and credentials securely.
Testing
Run tools with real parameters from the dashboard’s Run panel.
Version history
Save drafts, compare versions and restore an earlier one.
Playground
Chat with a real model and watch it call your tools.