Skip to main content
Glama
Moe03

Convocore MCP Server

by Moe03

code_tools

Destructive

Write, validate, run, and save JavaScript code tools inside an agent with declared input/output variables—no server needed—then test with sample inputs before saving.

Instructions

Write, check and run CODE tools: JavaScript that runs inside the agent (no server needed), with declared input and output variables. For tools that call an HTTP API use create_agent_tool. Flow: validate → run with sample inputVars → save. Actions: validate — check syntax and the input/output contract without running Needs: code. | run — run the code once with sample inputs and return outputs / logs / errors Needs: code. | ai_edit — have AI rewrite the code for a request (returns code; does not save) Needs: agentId, code, userRequest. | save — create or update the code tool on the agent Needs: agentId, tool.

Input Schema

NameRequiredDescriptionDefault
codeNoJavaScript source of the tool.
modeNocompact (default) = light mode: long text is cut and bulky blobs are replaced by a size marker. full = complete API response.
toolNoFor save: the tool definition — name, description, variablesIds / fields, and codeExecution: { enabled: true, code }. Include id to update an existing tool.
pathsNoNamed exit paths, if the tool branches.
actionYes
inputsNoDeclared inputs: [{ key, type: string|number|boolean|object, required? }].
strictNoFor validate / run: default true (outputs must match the contract).
agentIdNo
outputsNoDeclared outputs, same shape.
toolNameNo
inputVarsNoFor run: sample values by input key.
userRequestNoFor ai_edit: what to change, in plain words.
toolDescriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.6.17

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the safety profile is partly covered. The description adds useful action-level behavior: validate does not run code, ai_edit returns code without saving, run returns outputs/logs/errors, and save creates or updates the tool.

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

Conciseness4/5

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

The description is front-loaded and well structured around the workflow and action list. It is dense but appropriately sized for a multi-action tool, though some phrasing is run-on and could be slightly cleaner.

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

Completeness4/5

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

For a complex 13-parameter tool with nested objects and no output schema, the description covers the essential flow, action requirements, and alternative tool. It does not fully describe return shapes for every action, but it gives enough to call the tool correctly.

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

Parameters4/5

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

The schema documents many parameters at 69% coverage, and the description adds action-specific requirements such as code for validate/run, agentId/code/userRequest for ai_edit, and agentId/tool for save. It does not explain every parameter, but it meaningfully clarifies the main action-dependent inputs.

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 gives a specific verb and resource: writing, checking, and running JavaScript code tools that execute inside the agent. It also distinguishes this from create_agent_tool for HTTP API tools, so an agent can tell the two apart without opening both schemas.

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

Usage Guidelines4/5

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

It gives a clear workflow (validate → run with sample inputVars → save) and names an alternative for HTTP API tools. It also states the required inputs per action, though it does not discuss when not to use save or how this relates to update_agent_tool/delete_agent_tool siblings.

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

Deploy Server

Other Tools