Skip to main content
Glama
mcp-local-llm

mcp-local-llm

local_classify

Classify text into defined categories using a local LLM to sort, tag, and organize content for batch classification tasks.

Instructions

Classify text into categories using a local LLM.

DELEGATION GUIDANCE: Use for sorting, tagging, organizing content. Good for batch classification tasks where the categories are clear-cut.

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>",
      "categories": "<categories>"
    },
    "name": "local_classify"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe text to classify
explainNoInclude brief explanation for classification (default: false)
categoriesYesList of possible categories
allow_multipleNoAllow multiple category assignments (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.7/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. "Local LLM" usefully signals on-device execution, but the description says nothing about latency, determinism, cost, or what happens when text matches no category — gaps that matter for a classification call. It at least implies a non-mutating read-style operation.

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

Conciseness5/5

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

Two sentences, front-loaded with the core action and followed by a clearly labeled guidance block. Nothing is redundant with the tool name or with schema fields, so every sentence earns its place.

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?

With 4 parameters, no annotations, and no output schema, the definition leaves the response shape entirely unspecified — an agent cannot tell whether it receives a category string, a list, or a confidence score. Input-side coverage is solid thanks to the schema, so the omission is isolated but consequential.

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 text, categories, explain, and allow_multiple are already documented, and the baseline of 3 applies. The description adds only the expectation that categories should be "clear-cut," without elaborating on category count limits or how multiple assignments are ordered.

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?

"Classify text into categories using a local LLM" gives a specific verb (classify) and resource (text into categories), plus the execution mode (local LLM). This is clearly distinguishable from siblings like local_summarize or local_draft, though it does not explicitly contrast itself with local_extract, which could be the nearest neighbor.

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 names concrete use cases (sorting, tagging, organizing) and a condition (batch classification with clear-cut categories). It is clear about when to use it but offers no exclusions or named alternatives for overlapping tasks such as structured extraction.

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