Skip to main content
Glama

Get Wikidata Labels

wikidata_get_labels
Read-only

Resolve one or more QIDs or PIDs to their human-readable labels and descriptions. Lightweight — returns no claim data. Supports up to 50 IDs per call (batched automatically). Designed for the common agent pattern: receive QIDs from a SPARQL query, then humanize them.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idsYesQ-IDs (e.g., "Q76") or P-IDs (e.g., "P31") to resolve. 1–50 IDs per call.
languagesNoBCP 47 language codes for returned labels and descriptions (e.g., ["en", "de", "fr"]). A language with no label of its own falls back to the entity's multilingual ("mul") value, returned under the requested code.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
foundNoCount of IDs that returned data.
entitiesNoMap of entity ID to labels and descriptions. IDs that were not found are absent.
notFoundNoIDs from the request that did not return data (not found or invalid).
languagesNoThe language codes that were requested.

TDQS

A4/5.0
Behavior3/5

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

The read-only nature is already marked by annotations (readOnlyHint: true). The description adds valuable context by noting it returns no claim data, and the parameter schema clarifies the languages fallback behavior. While these are useful additions, the core safety profile (read-only, no side effects) is already well-covered by annotations, so the incremental contribution is moderate.

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?

Concise yet information-dense: the core purpose followed by the most critical operational constraints ('Lightweight', 'no claim data', '50 ID limit', 'batched') and a use-case anchor. Every sentence earns its place without redundancy. Exactly the right size for the tool's simplicity.

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

Completeness4/5

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

The existence of a complete output schema means the return shape is documented elsewhere. The description sufficiently covers the primary use case, the 'lightweight' nature, and the batching. A small gap: it doesn't explicitly state the behavior when an ID cannot be found (e.g., error vs. skip), but this is covered by the output schema's error handling and isn't critical for basic usage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, and the schema itself documents both parameters clearly (with formats in the IDs description and fallback in the languages). The description adds semantics by reinforcing the batch limit ('50') and providing a usage example pattern. However, it doesn't add new syntax details beyond what's already in the schema.

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 ('Resolve') with a clear resource ('QIDs or PIDs to their human-readable labels and descriptions'), and explicitly scopes what the tool does NOT do ('returns no claim data') and its batch limit (50 IDs). It clearly differentiates itself from siblings like wikidata_get_entity and wikidata_get_statements by its specific focus on label resolution.

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 description includes a use-case pattern ('receive QIDs from a SPARQL query, then humanize them') and notes the batching behavior. However, it doesn't explicitly mention sibling tools or state when NOT to use it, which limits its utility for an agent choosing between tools.

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.

TDQS

A4.5/5.0
Disambiguation5/5

Each tool targets a distinct access pattern: entity retrieval, label resolution, sitelinks, statements, external ID lookup, text search, and SPARQL. Any apparent overlap (e.g., get_entity with fields vs. get_statements) is explicitly disambiguated in the descriptions.

Naming Consistency5/5

All tools share a consistent wikidata_ prefix followed by verb_noun style: get_entity, get_labels, get_sitelinks, get_statements, resolve_external_id, search_entities. Even sparql_query follows the predictable action-oriented pattern, so the set reads uniformly.

Tool Count5/5

Seven tools is well-scoped for a Wikidata knowledge-access server. Each tool earns its place, covering the primary retrieval methods without adding redundant or purely cosmetic variants.

Completeness5/5

For a read-only Wikidata MCP server, the surface is essentially complete: direct entity lookup, label humanization, sitelink mapping, statement fetching with qualifiers/references, external ID resolution, text search, and full SPARQL querying. There are no obvious dead ends for the domain it serves.