Skip to main content
Glama
mcp-local-llm

mcp-local-llm

local_extract

Extract structured information from unstructured text using a local LLM by defining target fields and choosing JSON, YAML, or markdown table output.

Instructions

Extract structured information from text using a local LLM.

DELEGATION GUIDANCE: Use for parsing documents, extracting specific fields, converting unstructured text to structured data.

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>",
      "fields": "<fields>"
    },
    "name": "local_extract"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe text to extract from
fieldsYesFields to extract (e.g., ['name', 'email', 'date', 'amount'])
output_formatNoOutput format (default: json)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.4/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 burden. It does convey one meaningful behavioral trait — the extraction runs on a local model, implying no external calls — but it says nothing about accuracy, hallucination risk, determinism, latency, or what happens when a requested field is absent from the text.

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 sentences, front-loaded with the core action followed by usage context; nothing is padded. The 'DELEGATION GUIDANCE' label is slightly ceremonial but does not cost much, and the second sentence partially restates the first.

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 three-parameter tool with no annotations and no output schema, the definition is adequate but thin. It never describes the shape of the returned structured object or how missing fields are handled, which an agent would need before relying on the output.

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% with all three parameters documented, including an example array for 'fields' and a default for 'output_format'. The description adds no syntax or semantics beyond the schema, so the 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?

States a specific verb+resource: 'extract structured information from text.' The addition of 'using a local LLM' clarifies the mechanism. It does not explicitly contrast with siblings such as local_transform or local_classify, so an agent must infer that this tool is for field-targeted extraction rather than free-form rewriting.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The 'DELEGATION GUIDANCE' sentence lists three use cases (parsing documents, extracting fields, unstructured-to-structured conversion), which is genuine when-to-use context. However, it names no alternatives and gives no when-not-to-use conditions, so an agent cannot distinguish this from local_transform except by guessing.

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