Skip to main content
Glama

HuggingFace — Named Entity Recognition

hf_inference.nlp.ner
Read-onlyIdempotent

Extract named entities — people (PER), locations (LOC), organizations (ORG), and miscellaneous (MISC) — from text using a BERT-based NER model via HuggingFace Inference API. Returns each detected entity with its type, confidence score, and character positions in the original text. Default model: dbmdz/bert-large-cased-finetuned-conll03-english (CoNLL-2003, English). Useful for document parsing, contact extraction, and knowledge graph construction.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesInput text to process. Maximum ~10,000 characters depending on model context window.
modelNoHuggingFace model ID to use for named entity recognition. Default: "dbmdz/bert-large-cased-finetuned-conll03-english" (English NER: PER, LOC, ORG, MISC). Alternatives: "dslim/bert-base-NER" (lightweight English NER), "Jean-Baptiste/roberta-large-ner-english" (higher accuracy English NER).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoPresent only when the call failed. Includes error code, message, request_id, and any provider-specific extras.
resultNoTool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, and non-destructive behavior. The description adds valuable context beyond that: return shape ('type, confidence score, and character positions'), model default and language coverage (CoNLL-2003, English), and the API transport ('HuggingFace Inference API'). No contradiction with annotations.

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?

Three sentences, each earning its place: purpose and entity types, return format, and model/use-case context. Information is front-loaded and there is zero filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present and safety profile covered by annotations, the description is complete: it explains the task, the output shape, the default model, language scope, and typical applications. No critical information needed for correct invocation is missing.

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 both parameters are already well documented (text with length limit, model with default and alternatives). The description does not add unique parameter semantics beyond what the schema provides, landing at the baseline for high coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Extract') and clear resource ('named entities') with explicit entity types (PER, LOC, ORG, MISC). It differentiates itself from sibling NLP tools (sentiment, summarize, translate, zero_shot) by focusing on NER and even naming the underlying BERT model.

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?

Provides clear context by listing concrete use cases ('document parsing, contact extraction, and knowledge graph construction') and stating the default model handles English NER. However, it does not explicitly mention when not to use it or point to specific alternative sibling tools, so it stops short of full when/when-not guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.