Skip to main content
Glama

execute

Execute JavaScript against the VaultCord API for anything the curated tools don't cover (there are ~270 endpoints total; the curated toolsets wrap the common ones). First use the 'search' tool to find the right path/method/request body shape, then call this with an async arrow function using vaultcord.request().

Available in your code: async function vaultcord.request({ method, path, query, body }): Promise

  • method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" (default "GET")

  • path: the OpenAPI path with real values substituted, e.g. "/servers/5180"

  • query: optional object of query-string params

  • body: optional JSON-serializable request body

  • Throws on non-2xx responses and on {success:false} envelopes, with VaultCord's own message included.

Your code must be an async arrow function that returns the result. Example:

async () => { const servers = await vaultcord.request({ path: "/servers" }); return servers.data?.map(s => ({ id: s.id, name: s.name })); }

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "code": "<code>"
    },
    "name": "execute"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesJavaScript async arrow function to execute

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false and openWorldHint=true, so the description carries the burden and does so well: it documents the thrown-error contract for non-2xx and {success:false} envelopes with VaultCord's own message surfaced, plus the default method and the full vaultcord.request signature. What it omits is the risk profile of the readOnlyHint=false declaration — there is no warning that arbitrary endpoints include destructive writes, nor any mention of rate limits or response-size limits.

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?

It is long, but the length is justified: purpose and the search-first prerequisite are front-loaded, the runtime contract is itemized, and a concrete worked example closes it out. The bullet list of request fields is slightly redundant with the signature line, but nothing is filler.

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

Completeness5/5

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

For a single-parameter code-execution escape hatch with no output schema, an agent needs the callable globals, argument shape, error semantics, and a prerequisite step — all are present, along with an example showing response unwrapping (servers.data?.map). Nothing essential to a correct first call is missing.

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?

Schema coverage is 100% and the single "code" param is already described, so the baseline is 3; the description earns a step above by specifying the required shape precisely ("async arrow function that returns the result") and enumerating the in-scope API surface the code can call. That is real semantic content the schema line alone does not convey.

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 opens with a specific verb and target ("Execute JavaScript against the VaultCord API") and immediately scopes it as the escape hatch for "anything the curated tools don't cover," naming ~270 uncovered endpoints versus the curated toolsets. An agent can tell exactly what this tool is and how it differs from the curated siblings like list_servers or get_server.

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

Usage Guidelines5/5

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

It gives an explicit precondition ("First use the 'search' tool to find the right path/method/request body shape") and an explicit selection rule ("for anything the curated tools don't cover"), which implies curated tools are preferred where they exist. Both the when-to-use and the routing to the alternatives are stated, not inferred.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.