Skip to main content
Glama
mcp-local-llm

mcp-local-llm

local_complete

Sends a custom prompt to a local LLM to generate raw text completions for tasks that don't fit predefined patterns. Use it when you need full control over the prompt.

Instructions

Raw completion using local LLM for maximum flexibility.

DELEGATION GUIDANCE: Use when other tools don't fit. You control the prompt entirely. Good for custom tasks that don't match predefined patterns.

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": {
      "prompt": "<prompt>"
    },
    "name": "local_complete"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYesThe prompt for the local model
systemNoOptional system message to set context/behavior
max_tokensNoMaximum tokens to generate (default: 2048)
temperatureNoTemperature for generation (default: 0.7)

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 available, the description carries the full burden. 'Raw completion' and 'You control the prompt entirely' usefully signal that output is unconstrained and not schema-shaped, but it says nothing about latency, model size, token limits beyond the default, determinism, or what the response body looks like. The behavioral picture is directionally right but incomplete.

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?

Three short sentences, front-loaded with the capability and then the delegation rule. 'For maximum flexibility' is mildly redundant with the following guidance but overall there is no meaningful padding.

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?

For a four-parameter generation tool with no annotations and no output schema, the agent still lacks any statement about the return value (plain text completion?) and about operational constraints. The delegation guidance covers tool selection well, but the invocation-side completeness is only adequate.

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%, so prompt, system, max_tokens, and temperature are already documented with defaults. The description adds only the general notion of full prompt control, which the schema already conveys; no syntax, format, or interaction guidance (e.g., how system interacts with prompt) is contributed.

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 states a specific capability (raw local-LLM completion) and positions it as the general-purpose fallback against siblings that handle predefined patterns. It is clear what the tool does, though the phrase 'maximum flexibility' is value framing rather than additional specification.

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?

Explicit routing guidance is given: 'Use when other tools don't fit' establishes it as the default fallback after pattern-specific siblings, and 'Good for custom tasks that don't match predefined patterns' reinforces the condition. It does not enumerate exclusions or limits (e.g., when a pattern tool would still be preferable), but the selection rule is unambiguous.

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