Skip to main content
Glama
mcp-local-llm

mcp-local-llm

local_draft

Generate initial drafts using a local LLM, then review and refine the output to cut API costs while maintaining quality control.

Instructions

Generate an initial draft using a local LLM that you can then refine.

DELEGATION GUIDANCE: Use this for boilerplate content, initial drafts, template-based generation. You (Claude) should review and refine the output - the local model does the grunt work, you do the quality control.

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": {
      "task": "<task>",
      "context": "<context>"
    },
    "name": "local_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskYesWhat to draft (e.g., 'email response', 'README section', 'function docstring')
toneNoDesired tone (e.g., 'professional', 'casual', 'technical')
formatNoDesired format (e.g., 'markdown', 'plain text', 'code comment')
contextYesContext and requirements for the draft

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?

No annotations are supplied, so the description carries the full behavioral burden. It does disclose a meaningful trait, namely that output comes from a weaker local model and requires human or Claude review, which is genuinely useful. It omits response shape, length limits, model capability boundaries, and whether calls are local or have a cost, leaving 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?

Front-loaded with the core action, followed by a clearly labeled guidance block. The 'grunt work / quality control' phrasing is slightly colorful but reinforces the delegation model. No filler sentences need to be trimmed.

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 4-parameter generation tool with no annotations and no output schema, the description covers purpose and workflow well. What it does not say is what comes back (a raw draft string, presumably) or how long or reliable it is, which matters more here because there is no output schema to describe the return value.

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 all four parameters (task, context, tone, format) are already documented with examples in the schema. The description adds no additional meaning about how tone or format interact with context. Baseline 3 applies when the schema does the heavy lifting.

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?

States a specific verb and resource: 'Generate an initial draft using a local LLM.' The phrase 'that you can then refine' distinguishes it from terminal operations like local_complete and local_summarize without naming them. It never explicitly excludes the siblings, but the drafting frame is unambiguous.

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 usage conditions: boilerplate content, initial drafts, template-based generation. It also prescribes the workflow role (local model drafts, Claude refines). It stops short of naming when NOT to use it, e.g., when a high-stakes final answer is needed, so it falls short of a 5.

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