Skip to main content
Glama

run_helper

Run TokenSafe utility actions to sanitize or guard code, diff changes, inspect dependencies, expand prompts, process images, compress data, and probe bundles while reducing context bloat.

Instructions

Utilities: 'sanitize','guard','diff','deps','web','expand','image','compress','dict','bundle-probe' (live entry + hashed chunks + expect/reject table).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "run_helper"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNo
codeNo
diffNo
hashNo
actionNo
chunksNobundle-probe: explicit chunk URLs (default: auto-discover from the entry)
expectNobundle-probe: strings that must be present
promptNo
rejectNobundle-probe: strings that must be absent
commandNo
max_edgeNo
file_pathNo
image_pathNo
timeout_msNobundle-probe: total budget (default 6000, max 15000)
package_nameNo
lockfile_pathNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv4.16.0
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "sanitize",
      -  "guard",
      -  "diff",
      -  "deps",
      -  "web",
      -  "expand",
      -  "image",
      -  "compress"
      -]New value: +[
      +  "sanitize",
      +  "guard",
      +  "diff",
      +  "deps",
      +  "web",
      +  "expand",
      +  "image",
      +  "compress",
      +  "dict",
      +  "bundle-probe"
      +]
    • addedInput schema / properties / chunks
      Added value: +{
      +  "description": "bundle-probe: explicit chunk URLs (default: auto-discover from the entry)",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / expect
      Added value: +{
      +  "description": "bundle-probe: strings that must be present",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / reject
      Added value: +{
      +  "description": "bundle-probe: strings that must be absent",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / timeout_ms
      Added value: +{
      +  "description": "bundle-probe: total budget (default 6000, max 15000)",
      +  "type": "integer"
      +}
  2. Changed4 schema fields changedv4.7.15
    • removedInput schema / properties / cwd
      Removed value: -{
      -  "type": "string"
      -}
    • removedInput schema / properties / force_refresh
      Removed value: -{
      -  "type": "boolean"
      -}
    • removedInput schema / properties / max_context
      Removed value: -{
      -  "type": "integer"
      -}
    • removedInput schema / required
      Removed value: -[
      -  "action"
      -]
  3. Addedv4.6.2

TDQS

D1.6/5.0
Behavior2/5

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

Annotations provide only readOnlyHint=false, so the description carries nearly the full disclosure burden yet says nothing about which of the ten actions mutate state, what they write, or what auth or rate limits apply. The sole behavioral hint is that bundle-probe fetches a 'live entry + hashed chunks', implying network access, which is a small but real addition beyond the annotations.

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

Conciseness2/5

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

It is a single short sentence with little waste, but the brevity comes from under-specification rather than economy; a bare list of quoted tokens conveys almost no usable structure for a multi-action, 16-parameter tool.

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

Completeness1/5

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

A ten-action multiplexer with 16 parameters, no output schema, and minimal annotation coverage needs far more than one sentence. Which parameters apply to which action, what each action returns, and what side effects occur are all absent, making the definition inadequate for correct invocation.

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

Parameters1/5

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

With 16 parameters and only 25% schema description coverage, the description must compensate and does not: it never maps url, code, diff, hash, command, file_path, image_path, package_name, lockfile_path, max_edge, or prompt to any action. The only parameter-adjacent content repeats the enum values already in the schema.

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

Purpose2/5

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

The description gives a token list of action names ('sanitize','guard','diff','deps','web','expand','image','compress','dict','bundle-probe') under the generic label 'Utilities', which largely restates the action enum in the schema. Only bundle-probe gets any explanatory text ('live entry + hashed chunks + expect/reject table'), leaving the other nine operations with no stated purpose an agent could select on.

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

Usage Guidelines1/5

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

There is no when-to-use guidance, no prerequisites, and no mention of when to prefer this tool over siblings like scoped_search, smart_read_file, or repo_map. An agent is told only that these are 'utilities', with no condition that would select one action over another.

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