Skip to main content
Glama
mcp-local-llm

mcp-local-llm

local_transform

Transforms text according to your instructions using a local LLM. Use it for formatting changes, style conversions, and simple rewrites that don't need deep reasoning.

Instructions

Transform text according to instructions using a local LLM.

DELEGATION GUIDANCE: Use for formatting changes, style conversions, simple rewrites. Good for mechanical transformations that don't require deep reasoning.

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": {
      "text": "<text>",
      "instruction": "<instruction>"
    },
    "name": "local_transform"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe text to transform
instructionYesHow to transform the text (e.g., 'convert to bullet points', 'make more concise', 'add markdown formatting')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose one meaningful trait: the LLM is local, implying no external network call or data egress. Beyond that, it says nothing about determinism, latency, model size or output format, all of which matter for an LLM-backed transform. Adequate but with real gaps.

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?

Two short paragraphs, front-loaded with the core purpose before the guidance block, and no filler sentences. The all-caps "DELEGATION GUIDANCE" label is slightly louder than needed but aids scannability rather than hurting it.

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 two-parameter, non-nested tool with full schema coverage and no output schema, the description covers purpose, mechanism, and routing context well. What's missing is any hint of return shape or size limits on input text, which would round it out for an LLM-backed tool.

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 description coverage is 100%, and the instruction parameter even carries inline examples, so the schema does the heavy lifting. The description only restates "according to instructions" and adds no format, length, or constraint semantics beyond what the schema already supplies. Baseline 3 applies.

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 description gives a specific verb and resource ("Transform text") plus the execution mechanism ("using a local LLM"), which is concrete enough for an agent to understand. It doesn't name any sibling tool explicitly, but the phrase "mechanical transformations that don't require deep reasoning" implicitly carves out scope versus reasoning-oriented siblings like local_complete. Clear, but stops short of explicit sibling differentiation.

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 DELEGATION GUIDANCE block gives concrete when-to-use cases: formatting changes, style conversions, simple rewrites. It also implies a when-not boundary ("that don't require deep reasoning"), which is genuinely useful routing signal. It stops short of a 5 because no alternative tool is named as the destination when deep reasoning is needed.

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