How to Use Wikidata item details in Gemini CLI
Returns an item's labels, descriptions, aliases, statements, and Wikimedia article links. Use it to research a known entity and inspect the qualifiers and references attached to its statements.
Prompts to try with Wikidata item details in Gemini CLI
Copy an example into Gemini CLI, or ask in your own words.
Use Wikidata item details for Earth (Q2), then add a sample record to this project's entity viewer that preserves the returned qualifiers and references.
Use Wikidata item details for Berlin (Q64) and create a readable report of its returned population statements, including any date qualifiers and references.
Use Wikidata item details to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from Wikidata item details and tell me what changed since last week.
Check Wikidata item details and summarize what you find in three bullet points.
How to set up Wikidata item details in Gemini CLI
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Or add it to ~/.gemini/settings.json yourself:
gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
- Sign in
Start gemini and run:
/mcp auth spiral
- Check it
In Gemini CLI, run /mcp. From your shell:
gemini mcp list
Use the Spiral skill
- Send Gemini CLI this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Wikidata item details
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "alexandria", "model": "wikipedia/wikidata/item", "input": { "identifier": "<identifier>" } }'
Then paste one of the prompts above: Gemini CLI finds Wikidata item details on Spiral, shows the price and runs it.
Wikidata item details providers and prices
Spiral runs Wikidata item details through Alexandria. Open a card for today's price, with every fee included.
What can you do with Wikidata item details in Gemini CLI?
Build readable Wikidata records into a place directory or catalog viewer. A coding agent can use item statements, translated names, and property definitions to replace unexplained identifiers in the project's interface.
Build a multilingual place directory
Retrieve records for places such as Paris and Berlin, add their available translated names, and inspect the definitions of the geographic properties used in the directory.
Explain a knowledge graph record
Turn an item's statements into a readable explanation. Resolve linked identifiers to names and use property definitions to explain what each relationship means.
Map catalog columns to Wikidata
Compare an existing museum or landmark catalog with Wikidata item values. Read candidate property definitions and translated labels before choosing the columns to map.
Review changes to public records
Compare saved records for public places or organizations with new retrievals. Review changes to statements, translated names, and property definitions in separate sections of the report.
Audit localization coverage
Check whether selected landmarks and their properties have names in the languages your product supports. Include item descriptions in the review and distinguish missing translations from available aliases.
Find related Wikimedia articles
Read a known item's sitelinks to assemble links to existing pages across Wikipedia and other Wikimedia projects.
Explain dated city statistics
Inspect city statements with their date qualifiers and references. Add readable names for linked entities and explain the definitions of the statistical properties before comparing values.
More on Wikidata item details and Gemini CLI
Overview
Wikidata item details in other agents
Questions about Wikidata item details in Gemini CLI
Can Gemini CLI use Wikidata item details?
Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run Wikidata item details like any built-in tool.
How much does Wikidata item details cost in Gemini CLI?
$0.001746 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Gemini CLI plan is separate.
Do I need an Alexandria account to use Wikidata item details in Gemini CLI?
No. Spiral runs Wikidata item details on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up Wikidata item details in Gemini CLI?
About two minutes: add the server, then sign in, then check it.
Does Gemini CLI wait while Wikidata item details runs?
Wikidata item details runs in the background. Gemini CLI starts the run, checks on it and gives you the json when it's ready.
Does Wikidata cover subjects without Wikipedia articles?
Yes. A clearly identifiable entity can qualify through serious, publicly available references, even without a Wikipedia article.
Are names available in every language?
No. Wikidata supports multilingual labels, but property values are not necessarily translated into every language. A translated name and an alternative name are also different things: alternative names belong in aliases.
Who keeps Wikidata current?
Wikidata editors maintain the records, and automated bots also enter data. Changes therefore come from contributor activity rather than a single publisher's release cycle.
Does Wikidata verify everything before publication?
No. Wikidata has no executive editor or editorial board that vets content before publication. Its statement structure supports references and qualifiers, but those features do not constitute editorial approval.
Are Wikidata names unique, and how long can they be?
Different items can share the same label, and labels are limited to 250 characters. Use the entity identifier to distinguish records with matching names.
Start using Wikidata item details in Gemini CLI
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Gemini CLI:
set up https://spiral.ai/SKILL.md


