wikidata-mcp-server
Server Details
Search and fetch Wikidata entities, execute SPARQL queries, and resolve external identifiers.
- Status
- Healthy
- Last Tested
- Transport
- Streamable HTTP
- URL
- Repository
- cyanheads/wikidata-mcp-server
- GitHub Stars
- 3
- Server Listing
- wikidata-mcp-server
Available Tools
7 toolswikidata_get_entityGet Wikidata EntityARead-onlyInspect
Fetch a Wikidata entity (item or property) by QID or PID. The fields parameter narrows the upstream fetch, not just the response — asking for labels alone costs a fraction of the whole entity, so name the fields you need. Omit fields for all data; a well-connected item is large enough to overflow, and an oversized entity returns kind: "outline" — the field categories with their byte sizes — instead of the data. Follow its retrieval_notice literally rather than picking from sections yourself — it names a fields set already measured to fit, since category sizes are additive and requesting them all would overflow again; for a category too large to deliver whole (statements or sitelinks on a major item) it names the sibling tool that can narrow it. Q-IDs (e.g. Q76) fetch items; P-IDs (e.g. P31) fetch properties from the correct endpoint automatically. Use wikidata_get_statements for deep claim traversal with label resolution, and whenever an entity's statements are large — its properties parameter selects individual P-IDs, granularity fields does not carry.
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Q-ID (e.g., "Q76") or P-ID (e.g., "P31"). Case-insensitive — normalized to uppercase. | |
| fields | No | Fields to include. Options: "labels", "descriptions", "aliases", "statements", "sitelinks". Narrows the upstream fetch as well as the response, so a narrow selection is markedly cheaper. Omit for all fields. | |
| languages | No | Language codes to include in labels, descriptions, and aliases (e.g., ["en", "de"]). A requested language with no label of its own falls back to the entity's multilingual ("mul") value, returned under the requested code. Omit to return all available languages. |
Output Schema
| Name | Required | Description |
|---|---|---|
| id | No | Normalized entity ID (e.g., "Q76" or "P31"). |
| kind | No | full — the requested field categories carry their data. outline — the entity overflowed the inline byte budget, so sections lists the categories with their byte sizes instead, and retrieval_notice names how to fetch each one. The id and type are present either way. |
| type | No | Entity type: "item" or "property". |
| error | No | Present when the call failed. Absent on success. |
| labels | No | Map of language code to label string (e.g., {"en": "Barack Obama", "de": "Barack Obama"}). |
| aliases | No | Map of language code to list of alias strings (e.g., {"en": ["Barack H. Obama", "President Obama"]}). |
| sections | No | Present when kind = outline: the entity's field categories, largest first, each with its byte size. Sizes are additive — a set of categories is only retrievable together if their total fits the budget, so follow retrieval_notice rather than requesting every name listed here. |
| data_type | No | Property data type (e.g., "wikibase-item", "external-id"). Present on properties only. |
| sitelinks | No | Map of site code (e.g., "enwiki") to sitelink metadata with title, url, and badges fields. |
| statements | No | Map of property ID to array of raw statement objects. Use wikidata_get_statements for resolved claims with label resolution, and whenever this entity's statements are large — its properties parameter selects individual P-IDs, granularity fields does not carry. |
| descriptions | No | Map of language code to description string (e.g., {"en": "44th President of the United States"}). |
| fieldsReturned | No | Which fields were requested. In outline mode these are the categories the outline covers, not data returned. |
| retrieval_notice | No | Present when kind = outline: the next call to make, and the authoritative one to follow. It names a literal fields set already measured to fit the budget, defers any category that would not fit alongside it, and for a category too large for fields to deliver at all names the sibling tool (wikidata_get_statements, wikidata_get_sitelinks) or the languages parameter that can narrow it. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already provide readOnlyHint and openWorldHint, and the description adds substantial behavioral context: fields narrow the upstream fetch, oversized entities return an 'outline' with byte sizes, category sizes are additive, and Q-IDs/P-IDs route to the correct endpoint automatically. 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.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is front-loaded with the core purpose, then cost, overflow, retrieval_notice, endpoint handling, and sibling routing. It is long and dense, and some phrasing is awkward ('granularity fields does not carry'), but every sentence carries operational value with no filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a tool with overflow behavior, field-selection subtleties, and sibling routing, the description covers all operational essentials. An output schema exists, so return-value details need not be repeated, and nothing an agent needs to call the tool correctly is missing.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so the baseline is 3, but the description adds meaning well beyond the schema: the fields parameter narrows the upstream fetch and affects cost, omitting fields can trigger overflow, and Q-IDs versus P-IDs change endpoint behavior. This is operationally important guidance the schema alone does not convey.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb and resource: 'Fetch a Wikidata entity (item or property) by QID or PID.' It also distinguishes from siblings by explaining Q/P endpoint handling and the fields parameter, so an agent can tell this tool apart from wikidata_get_labels, wikidata_get_sitelinks, and wikidata_get_statements.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description explicitly directs agents to wikidata_get_statements for deep claim traversal and large statement sets, and instructs following the retrieval_notice literally rather than self-selecting sections. It does not explicitly name when to prefer wikidata_get_labels or wikidata_get_sitelinks, though the fields-narrowing guidance implies those alternatives.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
wikidata_get_labelsGet Wikidata LabelsARead-onlyInspect
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.
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Q-IDs (e.g., "Q76") or P-IDs (e.g., "P31") to resolve. 1–50 IDs per call. | |
| languages | No | BCP 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
| Name | Required | Description |
|---|---|---|
| error | No | Present when the call failed. Absent on success. |
| found | No | Count of IDs that returned data. |
| entities | No | Map of entity ID to labels and descriptions. IDs that were not found are absent. |
| notFound | No | IDs from the request that did not return data (not found or invalid). |
| languages | No | The language codes that were requested. |
TDQS
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.
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.
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.
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.
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.
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.
wikidata_get_sitelinksGet Wikidata SitelinksARead-onlyIdempotentInspect
Fetch Wikipedia and Wikimedia project article URLs for a Wikidata item. A sitelink maps a site code (e.g., "enwiki") to a Wikipedia article title and URL. Major items can have 300+ sitelinks across languages. Use sites to filter to specific language editions, or wikis_only to return only Wikipedia links. Only Q-IDs (items) have sitelinks — properties (P-IDs) do not.
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Q-ID of the item (e.g., "Q76"). Only items have sitelinks; properties (P-IDs) are not supported. | |
| sites | No | Optional filter to specific site codes (e.g., ["enwiki", "frwiki", "dewiki"]). Omit to return all sitelinks. | |
| wikis_only | No | When true, return only Wikipedia sitelinks (site codes ending in "wiki", e.g., "enwiki", "dewiki"). Excludes Wikisource, Wiktionary, Wikiquote, etc. |
Output Schema
| Name | Required | Description |
|---|---|---|
| id | No | The Q-ID whose sitelinks were fetched. |
| count | No | Number of sitelinks returned. |
| error | No | Present when the call failed. Absent on success. |
| message | No | Informational note when no sitelinks were found. Absent when sitelinks are present. |
| sitelinks | No | Map of site code to sitelink metadata. Empty when the entity has no matching sitelinks. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint and idempotentHint, so safety is covered. The description adds key behavioral context: the item-vs-property limitation is not present in annotations, and the note about 300+ sitelinks informs about scale. This adds value beyond structured fields without contradicting them.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is tightly written: it leads with the function, then explains the filter options, and closes with the critical item-vs-property constraint. Each sentence contributes new information with no redundancy, and the most important caveat is placed last for emphasis.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With an output schema present and annotations providing read-only/idempotent hints, the description covers all necessary invocation details: purpose, filters, scale expectations, and a critical domain restriction. An agent has enough to correctly select and call this tool without additional information.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so parameters are documented. However, the description enriches understanding by explaining the purpose of the filters (sites for specific language editions, wikis_only for Wikipedia-only) and the underlying concept of a sitelink mapping site codes to article titles. It also highlights the property exclusion, which is not in the schema descriptions but is crucial for correct invocation.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Fetch Wikipedia and Wikimedia project article URLs') and the resource ('for a Wikidata item'). It distinguishes from sibling tools by explicitly noting that only items (Q-IDs) have sitelinks, not properties (P-IDs), which immediately separates it from property-related tools like wikidata_get_statements.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Provides explicit guidance on using the 'sites' parameter to filter by language and 'wikis_only' to restrict to Wikipedia. It also warns that major items can have 300+ sitelinks, implying potential large responses. While it doesn't explicitly state when NOT to use this tool, the property exclusion clarifies a boundary, and the context is clear enough for an agent to decide.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
wikidata_get_statementsGet Wikidata StatementsARead-onlyIdempotentInspect
Fetch property claims for a Wikidata entity with qualifier and reference detail. Value QIDs are resolved to human-readable labels by default. Use the properties parameter to fetch only specific P-IDs — omitting it returns every statement, and a well-connected item (a country, a major city) carries hundreds of properties: more than fits inline. An oversized set comes back as kind: "outline" — every available P-ID with its byte size, largest first — instead of the statements; re-call with the same id plus properties:[...] naming the P-IDs you want. Designed for fact verification: "what does Wikidata say about this entity's {property}?". Preferred-rank statements are the most current values.
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Q-ID (e.g., "Q76") or P-ID of the entity to fetch statements for. | |
| language | No | Language code for label resolution of QID values (e.g., "en", "de"). | en |
| properties | No | P-IDs to fetch (e.g., ["P31", "P569", "P27"]). Omit to return all properties (may be large for major items). | |
| resolve_labels | No | Resolve wikibase-item value QIDs to human-readable labels via a batched label call. Set to false to skip label resolution and return raw QIDs only (faster, smaller payload). |
Output Schema
| Name | Required | Description |
|---|---|---|
| id | No | The entity ID whose statements were fetched. |
| kind | No | full — statements carries the claims. outline — the statement set overflowed the inline byte budget, so sections lists the P-IDs available instead; re-call with properties:[...] to retrieve specific ones. The counts below are reported either way. |
| error | No | Present when the call failed. Absent on success. |
| sections | No | Present when kind = outline: the P-IDs this entity carries statements for, largest first. Copy names into the properties input to retrieve them. |
| statements | No | Map of property ID to array of normalized statements. Each statement has id, rank, property, value (with type-specific fields), and optional qualifiers and references arrays. Present in full mode; omitted in outline mode. |
| propertyCount | No | Number of distinct properties — those returned in full mode, those offered as sections in outline mode. |
| labelsResolved | No | True when QID values were resolved to labels. False when resolve_labels was set to false. |
| statementCount | No | Total number of statement objects across all properties. Counted before any overflow, so it reports the entity's full statement volume in both modes. |
| retrieval_notice | No | Present when kind = outline: how to re-call for specific properties. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Beyond the read-only and idempotent annotations, the description discloses meaningful behaviors: default QID-to-label resolution, the outline fallback for oversized result sets, the need to re-call with selected P-IDs, and the preferred-rank currency note. This goes well beyond what annotations alone convey.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is dense but efficient: primary function first, then payload-size caveat, then the outline recovery mechanism, then the intended use case. Every sentence contributes actionable information with no redundancy.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With a rich output schema, complete parameter documentation, and annotations covering safety, the description still adds the missing behavioral context: oversize handling, label resolution defaults, and rank semantics. Nothing critical is missing for an agent to select and invoke this tool correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is complete at 100%, so the parameters are already documented. The description adds useful semantic context beyond the schema: what happens when properties is omitted, the outline response shape, and the effect of label resolution on payload size and speed.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description opens with a specific verb+resource ('Fetch property claims for a Wikidata entity') and adds detail about qualifiers, references, and label resolution. It clearly distinguishes itself from sibling tools like get_entity, get_labels, and sparql_query, which serve different purposes.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description gives practical guidance: use the properties parameter to narrow to specific P-IDs, and expect a large result set if omitted. It also characterizes the tool as designed for fact verification, which signals an appropriate use case, though it does not explicitly name when-not-to-use alternatives.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
wikidata_resolve_external_idResolve Wikidata External IDARead-onlyInspect
Look up a Wikidata entity by an external identifier such as a DOI, PubMed ID, ORCID iD, or OpenAlex ID. Returns match= on success, match=null when not found, and match=null with multipleMatches populated when a Wikidata data integrity issue causes more than one entity to claim the same external ID. Common cross-server join use cases: CrossRef DOI → Wikidata paper QID (P356), PubMed PMID → Wikidata paper QID (P698), ORCID → author QID (P496), OpenAlex ID → entity QID (P10283). The property must be one whose Wikidata data type is external-id — item-valued or media properties (e.g. P31 instance-of, P18 image) are rejected rather than returning an empty match. Known value normalization is applied automatically: surrounding whitespace is trimmed, identifier-resolver URL prefixes are stripped (https://doi.org/, https://pubmed.ncbi.nlm.nih.gov/, https://orcid.org/), DOIs are uppercased, PMID prefixes stripped, ORCID hyphens normalized.
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | The external identifier value to look up (e.g., "10.1038/nature01234" for a DOI, "32283226" for a PubMed ID, "0000-0002-1825-0097" for an ORCID). A resolver URL is accepted for DOI, PubMed, and ORCID — the prefix is stripped before lookup. | |
| language | No | Language code for label and description in the response (e.g., "en", "de"). | en |
| property | Yes | P-ID of the external identifier property, whose Wikidata data type must be external-id (e.g., "P356" for DOI, "P698" for PubMed ID, "P496" for ORCID, "P10283" for OpenAlex ID, "P345" for IMDb ID). Properties of any other data type are rejected — check an unfamiliar P-ID's data type with wikidata_get_entity. |
Output Schema
| Name | Required | Description |
|---|---|---|
| error | No | Present when the call failed. Absent on success. |
| match | No | Matching entity, or null when no Wikidata entity claims this external identifier (including the case where multipleMatches is populated). A null match is not proof of absence — the Query Service backing this lookup lags the live wiki, so a recently added identifier may not be indexed yet. |
| value | No | The normalized value that was searched (may differ from input due to canonicalization). |
| property | No | The P-ID used for the lookup. |
| multipleMatches | No | Present when more than one Wikidata entity claims this external ID (data integrity issue). match is null when this field is present. Inspect the list and select the correct QID manually. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=true and openWorldHint=true, but the description goes far beyond by disclosing specific return states (match=entity, match=null, multipleMatches), the rejection behavior for non-external-id properties, and detailed normalization rules (whitespace trimming, URL prefix stripping, DOI uppercasing, ORCID hyphen normalization). This behavior is not derivable from annotations or schema and adds substantial transparency.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is dense but well-organized: purpose first, then return semantics, then use cases, then constraints, then normalization. Every sentence provides non-redundant information, and the most critical constraints (must be external-id) are positioned before the parameter-specific details. No fluff or repetition.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool has 3 parameters, an output schema (present per context), and rich annotations, the description completes the picture by covering success/failure states, multi-match edge cases, property type restrictions, and normalization. Nothing an agent needs for correct invocation is missing, and the existence of an output schema means return values need no further elaboration.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Despite 100% schema coverage, the description enriches parameter meaning substantially. For the 'value' parameter, it explains acceptable resolver URL prefixes that get stripped; for the 'property' parameter, it enumerates valid P-IDs (P356, P698, P496, P10283, P345) and explicitly warns that non-external-id types are rejected. This goes well beyond the schema's own field descriptions.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's function: 'Look up a Wikidata entity by an external identifier' with specific examples like DOI, PubMed ID, ORCID, OpenAlex. It also describes the return behavior (match=entity, match=null) and distinguishes from sibling tools by focusing exclusively on external identifier resolution rather than direct QID lookup, search, or property statements.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides explicit when-to-use context through 'Common cross-server join use cases' and maps identifiers to properties. It also gives when-not-to-use guidance by stating the property must be external-id type, with examples of rejected properties (P31, P18). However, it does not explicitly name alternative tools or conditions for choosing a sibling such as wikidata_get_entity or wikidata_search_entities, so it stops short of full alternative comparison.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
wikidata_search_entitiesSearch Wikidata EntitiesARead-onlyInspect
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.
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Entity type to search. Use "item" for Q-IDs (people, places, concepts) or "property" for P-IDs (predicates). | item |
| limit | No | Maximum number of results to return. Range: 1–50. | |
| query | Yes | Search terms to match against entity labels, aliases, and descriptions. | |
| offset | No | Pagination offset. Start at 0; increment by limit to page through results. | |
| language | No | BCP 47 language code for returned labels and descriptions (e.g., "en", "de", "zh"). | en |
Output Schema
| Name | Required | Description |
|---|---|---|
| cap | No | The limit parameter in effect. |
| error | No | Present when the call failed. Absent on success. |
| shown | No | Number of results returned on this page. |
| notice | No | Recovery hint when results are empty — echoes filters and suggests how to broaden. Absent when results are present. |
| results | No | Ranked list of matching entities. Empty when no results found. |
| language | No | The language used for label and description display. |
| truncated | No | True when results were capped at the limit. The Wikidata search API returns no total count — use offset pagination to retrieve more. |
| searchType | No | The entity type that was searched ("item" or "property"). |
| effectiveQuery | No | The search query that was executed. |
TDQS
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.
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.
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.
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.
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.
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.
wikidata_sparql_queryWikidata SPARQL QueryARead-onlyInspect
Execute a SPARQL SELECT query against the Wikidata Query Service. Full graph power: multi-hop traversals, aggregations, subqueries, OPTIONAL, FILTER, UNION, BIND. Standard Wikidata prefixes (wd:, wdt:, p:, ps:, pq:, wikibase:, bd:) are auto-injected. The wikibase:label SERVICE is also auto-injected when language is set and the query includes ?Label variables — so you can use ?itemLabel without writing the boilerplate. Hard server timeout is 60s; use LIMIT to keep queries fast. Bindings use the SPARQL 1.1 JSON format: each value is { type, value, "xml:lang"? }. Use wikidata_get_labels to humanize QID results from this tool.
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | SPARQL SELECT query. Must be a SELECT query (not CONSTRUCT/DESCRIBE/ASK). Standard prefixes (wd:, wdt:, p:, ps:, pq:, wikibase:, bd:) are injected automatically. Example: SELECT ?item ?itemLabel WHERE { ?item wdt:P31 wd:Q146. } LIMIT 10 | |
| timeout | No | Client-side timeout in seconds (1–55). Capped at 55s — the Wikidata server hard limit is 60s. | |
| language | No | Language for the wikibase:label SERVICE (e.g., "en", "de"). Controls the language of ?<var>Label variables. Set to "" to suppress label SERVICE injection. | en |
Output Schema
| Name | Required | Description |
|---|---|---|
| error | No | Present when the call failed. Absent on success. |
| notice | No | Recovery hint when no results returned — suggests checking query logic or broadening filters. Absent on non-empty results. |
| results | No | Array of result bindings. Each row maps variable names to binding objects with { type, value, "xml:lang"?, datatype? } fields. |
| truncated | No | True when the row count equals 10,000 — the Wikidata/Blazegraph server-side cap — indicating the result set was likely truncated. False otherwise. Add a LIMIT clause to avoid hitting the cap. Note: the SPARQL endpoint does not expose an explicit truncation flag; this is an inferred signal. |
| variables | No | Variable names returned by the SELECT clause. |
| totalCount | No | Number of result rows returned. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations (readOnlyHint: true, openWorldHint: true) are reinforced rather than contradicted, and the description adds substantial behavior beyond them: SELECT-only enforced, auto-injection of standard prefixes, the dynamic wikibase:label SERVICE injection rule, the 60s hard server timeout, and the SPARQL 1.1 JSON binding format. An agent can predict failure modes and output shapes without a trial call. No contradiction with annotations; annotation_contradiction = false.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Dense but never padded. Every clause delivers a distinct fact: purpose, capability scope, prefix injection, label SERVICE behavior, timeout, response format, and cross-tool routing. The core purpose leads, and behavioral details follow in logical order with zero fluff.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a full SPARQL endpoint, the description covers the critical gotchas an agent would otherwise discover through failed calls: auto-injected prefixes, label SERVICE magic, timeout ceiling, and response shape. An output schema exists to carry return-value documentation. Minor gaps like rate limiting, error handling for malformed queries, and caching are not addressed, but these are optional given the output schema's presence.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
At 100% schema coverage, the baseline is 3, but the description adds meaning beyond the schema: it explains the 60s server cap that rationalizes the timeout parameter's 55s maximum, and it clarifies the label SERVICE auto-injection rule that governs how the language and query parameters interact. The 'use LIMIT to keep queries fast' tip connects the query param to performance behavior.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The opening sentence, 'Execute a SPARQL SELECT query against the Wikidata Query Service,' is a textbook example of specific verb + resource. It further enumerates capability ('multi-hop traversals, aggregations, subqueries, OPTIONAL, FILTER, UNION, BIND') and implicitly differentiates from siblings by naming wikidata_get_labels as the follow-up for humanization, clarifying what this tool is not for.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The closing pointer to 'Use wikidata_get_labels to humanize QID results' gives one alternative-routing hint, and 'Full graph power' implies this is the heavy-duty sibling versus simpler accessors. However, there is no explicit statement of when to prefer this over wikidata_get_entity, wikidata_get_statements, or search tools — the when/when-not boundary is implied, not stated.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Frequently Asked Questions
Claiming proves that you control a remote MCP connector. It does not move, proxy, or interrupt the server.
Open the connector listing, choose Claim ownership, and sign in to Glama.
Complete one verification method:
GitHub identity — fastest for official registry listings. For a namespace such as
io.github.alice/server, link the matching GitHub user or an account that owns the GitHub organization, then choose Claim with GitHub.HTTP challenge — works when you can deploy a public file. Generate a token, publish the exact JSON Glama shows at
/.well-known/glama.jsonon the same origin as the connector, then choose Check HTTP challenge.DNS challenge — works when you control DNS but cannot change the server. Generate a token, create the exact TXT record Glama shows, wait for it to propagate, then choose Check DNS challenge.
After verification, Glama sends a confirmation email and gives you access to listing details, thumbnails, health checks, and analytics. Keep the HTTP file or DNS record in place: Glama periodically checks it and ownership remains verified while the token is discoverable.
The HTTP ownership file has this structure:
{
"$schema": "https://glama.ai/mcp/schemas/connector.json",
"claim": "glama_claim_..."
}Claim tokens are opaque, stable, and bound to the signed-in Glama account. They contain no email address or other personal information. If Glama can no longer discover a verified HTTP or DNS token, it starts a seven-day grace period before removing claim-based access. Restore the same token during that period to keep ownership verified. Never publish an email address, Glama session token, GitHub token, or connector credential as ownership proof.
If verification fails, confirm that you copied the current token exactly. The HTTP file must be public, return valid JSON with a successful HTTP response, and stay on the connector's origin. DNS changes may need more time to propagate. A claim cannot transfer to a different origin or hostname: if the connector target changes, Glama starts the grace period and the new target must be claimed separately after the previous claim is released.
For a connector linked to the official MCP Registry, registry updates continue to replace its name, description, and URL by default. After claiming, open Manage connector and enable Use Glama listing details as the source of truth if edits made on Glama should be preserved. Categories and thumbnails are always managed on Glama; registry linkage and technical connection settings continue to sync.
Control your server's listing on Glama, including description and metadata
Access analytics and receive server usage reports
Get monitoring and health status updates for your server
Feature your server to boost visibility and reach more users
To improve your MCP server's ranking:
Claim ownership of the server listing
Complete the server profile with an accurate description and thumbnail
Provide a test profile so Glama can connect to and evaluate the server
Keep tool definitions clear and complete to earn a high Tool Definition Quality Score (TDQS)
Route real usage through the Glama Gateway; more recorded successful server uses also improve the ranking
For users:
Full audit trail – every tool call is logged with inputs and outputs for compliance and debugging
Granular tool control – enable or disable individual tools per connector to limit what your AI agents can do
Centralized credential management – store and rotate API keys and OAuth tokens in one place
Change alerts – get notified when a connector changes its schema, adds or removes tools, or updates tool definitions, so nothing breaks silently
For server owners:
Proven adoption – public usage metrics on your listing show real-world traction and build trust with prospective users
Tool-level analytics – see which tools are being used most, helping you prioritize development and documentation
Direct user feedback – users can report issues and suggest improvements through the listing, giving you a channel you would not have otherwise
The connector status is unhealthy when Glama is unable to successfully connect to the server. This can happen for several reasons:
The server is experiencing an outage
The URL of the server is wrong
Credentials required to access the server are missing or invalid
If you are the owner of this MCP connector and would like to make modifications to the listing, including providing test credentials for accessing the server, please contact support@glama.ai.
Discussions
No comments yet. Be the first to start the discussion!
Related MCP Connectors
Wikidata MCP — wraps Wikidata API (wikidata.org/w/api.php)
Live Wikipedia edit feed, page summaries, trending pages, and Wikidata search.
Search MusicBrainz artists, releases, works, labels; resolve ISRC/ISWC/barcode; fetch cover art.
Machine-readable entity discovery with provenance, trust and verified source evidence.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables querying Wikidata via SPARQL, with convenience tools for instances, subclasses, properties, and geo-spatial queries.211MIT
- AlicenseBqualityDmaintenanceProvides access to Wikidata for Large Language Models through the Model Context Protocol, offering tools for entity search, detailed retrieval, SPARQL queries, relation exploration, and property-based searches.54MIT
- FlicenseNot gradedqualityDmaintenanceConnects LLMs to Wikidata's structured knowledge base using a hybrid architecture that optimizes for both fast entity searches and complex relational queries. It provides tools for entity and property retrieval, metadata lookups, and direct SPARQL execution to ground AI responses in verified data.2
- FlicenseNot gradedqualityDmaintenanceEnables searching and retrieving Wikipedia content across multiple languages, including article summaries, sections, coordinates, and related topics.
Glama MCP Gateway
Add one secure layer between your agents and this server.
TDQS
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.
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.
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.
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.