Skip to main content
Glama

shapeshift

Mount or unmount MCP server tools at runtime, optionally expose only selected tools, and sandbox untrusted sources without restarting the host.

Instructions

Mount an MCP server's tools at runtime. Empty server_id unmounts.

shapeshift('mcp-server-time') # mount (community sources cage by default) shapeshift('id', tools=['only_this']) # lean — mount only listed tools shapeshift('id', sandbox=False) # opt out of the default Docker cage shapeshift('id', sandbox=True) # force the cage (hard-fail if no Docker) shapeshift() # unmount + kill process

sandbox: None (default) cages low-trust npm/PyPI/github sources in Docker when it's available (best-effort — runs uncaged with a nudge if not); True forces the cage; False opts out. source: auto|local|official. confirm=True for community sources.

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": "shapeshift"
  }
}

Input Schema

NameRequiredDescriptionDefault
keepNo
toolsNo
sourceNoauto
confirmNo
sandboxNo
server_idNo
server_argsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.21.0
    • addedInput schema / properties / sandbox
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Sandbox"
      +}
  2. Changed7 schema fields changedv0.20.3
    • removedInput schema / properties / confirm / description
      Removed value: -"Bypass the community-trust gate after reviewing the server. Required for npm/github/glama-via-github sources unless KITSUNE_TRUST=community is set in the environment."
    • removedInput schema / properties / keep / description
      Removed value: -"On unmount (empty server_id), keep the subprocess in the pool for fast re-attach. Default False — fully cleans up on unmount."
    • removedInput schema / properties / server_args / description
      Removed value: -"Extra CLI arguments appended to the server's install command — e.g. ['/private/tmp'] to scope the filesystem server to a directory."
    • removedInput schema / properties / server_id / description
      Removed value: -"Server identifier to mount — npm package, PyPI package, registry slug, or full HTTP(S) URL. Leave empty to unmount the current form. Examples: 'mcp-server-time', '@modelcontextprotocol/server-filesystem', 'https://api.example.com/mcp'."
    • removedInput schema / properties / source / description
      Removed value: -"Registry/install source preference. 'auto' picks the best available; 'local' forces npx/uvx install (downloads + runs locally); 'smithery' requires SMITHERY_API_KEY; 'official' restricts to the verified MCP registry."
    • removedInput schema / properties / source / examples
      Removed value: -[
      -  "auto",
      -  "local",
      -  "smithery",
      -  "official"
      -]
    • removedInput schema / properties / tools / description
      Removed value: -"Optional allowlist of tool names to mount — load only these instead of the full toolset. Use to keep context lean when a server exposes many tools you don't need."
  3. Changed7 schema fields changedv0.20.2
    • addedInput schema / properties / confirm / description
      Added value: +"Bypass the community-trust gate after reviewing the server. Required for npm/github/glama-via-github sources unless KITSUNE_TRUST=community is set in the environment."
    • addedInput schema / properties / keep / description
      Added value: +"On unmount (empty server_id), keep the subprocess in the pool for fast re-attach. Default False — fully cleans up on unmount."
    • addedInput schema / properties / server_args / description
      Added value: +"Extra CLI arguments appended to the server's install command — e.g. ['/private/tmp'] to scope the filesystem server to a directory."
    • addedInput schema / properties / server_id / description
      Added value: +"Server identifier to mount — npm package, PyPI package, registry slug, or full HTTP(S) URL. Leave empty to unmount the current form. Examples: 'mcp-server-time', '@modelcontextprotocol/server-filesystem', 'https://api.example.com/mcp'."
    • addedInput schema / properties / source / description
      Added value: +"Registry/install source preference. 'auto' picks the best available; 'local' forces npx/uvx install (downloads + runs locally); 'smithery' requires SMITHERY_API_KEY; 'official' restricts to the verified MCP registry."
    • addedInput schema / properties / source / examples
      Added value: +[
      +  "auto",
      +  "local",
      +  "smithery",
      +  "official"
      +]
    • addedInput schema / properties / tools / description
      Added value: +"Optional allowlist of tool names to mount — load only these instead of the full toolset. Use to keep context lean when a server exposes many tools you don't need."
  4. First observedv0.20.1

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full load and does real work: it explains that sandbox=None is best-effort (uncaged plus a nudge when Docker is absent), that True hard-fails without Docker, that confirm=True is required for community sources, and that unmounting kills the process. It does not cover persistence of the mount across sessions or any auth requirements.

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 lead sentence comes first, followed by a compact example block and then prose only for the parameters needing nuance. Examples earn their place as usage patterns, though the sandbox paragraph is dense enough to require re-reading.

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

Completeness3/5

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

An output schema exists so return values need no description, and the sandbox/dispatch semantics are well covered for a process-spawning tool. However, with 7 parameters, 0% schema coverage, and no annotations, the unexplained 'keep' and 'server_args' parameters and absent lifecycle/auth context leave the definition short of complete.

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 coverage is 0% across 7 parameters, so the description must compensate. It documents sandbox in depth, plus source ('auto|local|official'), confirm, tools (by example), and server_id (empty implies unmount) — but 'keep' and 'server_args' receive no explanation anywhere, leaving two parameters opaque.

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

Purpose4/5

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

The first sentence names a specific verb and resource — 'Mount an MCP server's tools at runtime' — and adds the inverse operation ('Empty server_id unmounts'). It is clearly distinct from call/search sibling operations, though the relationship to lifecycle siblings like connect/release/reload is never stated.

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?

The five worked examples effectively act as when-to-use guidance: mounting by id, lean mounting with tools, opting out or forcing the sandbox, and unmounting with no arguments. What's missing is explicit routing against siblings such as release or connect, which plausibly overlap with the unmount path.

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