Skip to main content
Glama

Search Wikidata Entities

wikidata_search_entities
Read-only

Search Wikidata for items or properties by text query. Returns QIDs or PIDs with labels, descriptions, and match metadata indicating whether the hit was on a label or alias. Use type="item" for real-world concepts (people, places, works) and type="property" to find predicate P-IDs. The API returns no total count — pagination is offset-based with no result ceiling indicator.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNoEntity type to search. Use "item" for Q-IDs (people, places, concepts) or "property" for P-IDs (predicates).item
limitNoMaximum number of results to return. Range: 1–50.
queryYesSearch terms to match against entity labels, aliases, and descriptions.
offsetNoPagination offset. Start at 0; increment by limit to page through results.
languageNoBCP 47 language code for returned labels and descriptions (e.g., "en", "de", "zh").en

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
capNoThe limit parameter in effect.
errorNoPresent when the call failed. Absent on success.
shownNoNumber of results returned on this page.
noticeNoRecovery hint when results are empty — echoes filters and suggests how to broaden. Absent when results are present.
resultsNoRanked list of matching entities. Empty when no results found.
languageNoThe language used for label and description display.
truncatedNoTrue when results were capped at the limit. The Wikidata search API returns no total count — use offset pagination to retrieve more.
searchTypeNoThe entity type that was searched ("item" or "property").
effectiveQueryNoThe search query that was executed.

TDQS

A4.3/5.0
Behavior4/5

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

The description adds meaningful behavioral details beyond the annotations: it clarifies that the API returns no total count, pagination is offset-based, and no result ceiling indicator exists. The annotations already indicate read-only/open-world behavior, so the description only needs to add quirks and return format, which it does.

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 tight sentences: the first states exactly what the tool does, the second gives return-type guidance, and the third addresses pagination can. There is no filler or redundant restating, and the most important details are front-loaded.

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?

Combined with the fully-covered input schema, attached output schema, and read-only/open-world annotations, the description is complete for an agent to invoke the tool correctly. It also covers important behavioral caveats (pagination without total count) that the schema would not.

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?

The input schema covers 100% of parameter semantics, so the baseline is 3. The description adds only marginal color — e.g., plain-language examples for type values — but the formal parameter documentation already contains the same meaning for query, limit, offset, and language.

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 opens with a specific verb and resource ('Search Wikidata for items or properties by text query') and explicitly states the result type ('QIDs or PIDs with labels, descriptions, and match metadata'). This clearly distinguishes the tool from direct-lookup siblings like wikidata_get_entity, which fetch by exact ID rather than full-text search.

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 description gives clear contextual guidance on when to set type="item" vs type="property", and warns about pagination. It doesn't explicitly state 'use wikidata_get_entity for direct lookups' or list exclusions, but the search semantics are implied well enough that an agent can select this tool when the user has a text query.

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.