How to Use Latvia company details in opencode
Returns one Latvian company's registered name, legal form, address, and registration details. Use it to identify the business behind an ownership record or check a supplier's registered details.
Prompts to try with Latvia company details in opencode
Copy an example into opencode, or ask in your own words.
Use Latvia company details for registration number 40003229495 and map its registered name, legal form, and address into this project's supplier schema.
Use Latvia company details to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from Latvia company details and tell me what changed since last week.
Check Latvia company details and summarize what you find in three bullet points.
Pull the newest data from Latvia company details and give me the result as a table.
How to set up Latvia company details in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
- Sign in
Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.
opencode mcp auth spiral
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode 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 Latvia company 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": "data-gov-lv/company-registry/companies_get", "input": { "company_registration_number": "<company_registration_number>" } }'
Then paste one of the prompts above: opencode finds Latvia company details on Spiral, shows the price and runs it.
Latvia company details providers and prices
Spiral runs Latvia company details through Alexandria. Open a card for today's price, with every fee included.
What can you do with Latvia company details in opencode?
Build a Latvian company reference table that joins registered business details with ownership records. A coding agent can add company-level comparisons to your project while keeping shareholding and beneficial-owner data separate.
Prepare supplier ownership reviews
Build a supplier reference table from company and ownership snapshots. Check publication versions, then confirm selected companies individually and compare their registered shareholdings with their beneficial-owner records.
Review changes in a supplier portfolio
Compare saved publications for changes in company details, beneficial-owner records, and share quantities. Recheck affected companies individually before preparing a business review queue.
Measure company ownership-data coverage
Join company, beneficial-owner, and shareholder snapshots by registration number. Report company-level coverage by legal form, check selected gaps individually, and keep each dataset's publication version with the analysis.
Validate a company-data import
Check publication versions and reconcile imported company, beneficial-owner, and shareholder tables. Use individual lookups to investigate mismatched company identifiers or ownership rows.
Compare regional business populations
Group registered entities by legal form and registered address in Riga, Liepaja, or other Latvian locations. Confirm selected company records and compare results across saved publications.
Compare registered share quantities
Review share quantities, nominal values, and currencies for selected Latvian companies. Attach registered company details and compare saved shareholder snapshots to identify changes requiring review.
More on Latvia company details and opencode
Overview
Latvia company details in other agents
Questions about Latvia company details in opencode
Can opencode use Latvia company details?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Latvia company details like any built-in tool.
How much does Latvia company details cost in opencode?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.
Do I need an Alexandria account to use Latvia company details in opencode?
No. Spiral runs Latvia company 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 Latvia company details in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Latvia company details runs?
Latvia company details runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.
Does the register cover only commercial companies?
The company dataset covers all entities registered in Latvia's Register of Enterprises. Its stated scope extends beyond commercial companies.
How fresh are the company and shareholder datasets?
The company register, SIA shareholding dataset, and AS shareholder dataset each specify daily updates. Their published schedule does not describe an immediate feed of changes.
Does the beneficial-owner file include former owners?
The file describes current beneficial owners who are natural persons. Build comparisons from saved snapshots when you need to study changes over time.
Are complete personal identity numbers included in the open data?
The Register describes partial personal identity numbers in its open data. When a personal identity number is absent, it publishes birth month and year.
What can shareholding records tell me about a company's capital?
The SIA and AS source tables include share quantity, nominal share value, and currency. Keep these registered shareholding figures separate from the beneficial-owner file, which describes current natural-person owners.
Start using Latvia company details in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


