Installation
Running the Server
STDIO Transport Mode
Environment Variables
Optional configuration variables:OCI_PRICING_DEFAULT_CCY- Default currency code (e.g., JPY; default: USD)OCI_PRICING_MAX_PAGES- Page-follow upper bound for listing (default: 6, clamped to 1-10)OCI_PRICING_HTTP_TIMEOUT- HTTP timeout in seconds (default: 25)OCI_PRICING_RETRIES- Transient retry count (default: 2)OCI_PRICING_BACKOFF- Exponential backoff base in seconds (default: 0.5)PROBE_CCY- Convenience fallback for default currency
Available Tools
The server provides the following tools for pricing queries:| Tool Name | Description |
|---|---|
pricing_get_sku | Look up pricing for a specific part number (SKU) |
pricing_search_name | Fuzzy-search pricing by product name or alias |
ping | Health check - returns “ok” |
Usage Examples
SKU Lookup
Product Search (Fuzzy)
Health Check
Understanding Pricing Data
Supported Aliases
The server recognizes common product aliases:adb→ Autonomous Databaseoss→ Object Storageoke→ Kubernetes Engine (OKE)- And more…
Query Matching
3-4 characters:- Word-boundary match
- Space-insensitive substring matching
- Similarity scoring
Response Format
Responses include:kind- “sku”, “search”, or “error”currencyCode- Currency of pricing datamodel- Pricing model (e.g., per GB, per hour)value- Price valuenote- Additional information (e.g., zero-price indicator)
API Tools Details
pricing_get_sku
Look up pricing for a specific part number. Parameters:part_number(required) - SKU/part number to look upcurrency(optional) - Currency code (defaults to env default)max_pages(optional) - Maximum pages to fetch (defaults to env default)
- On hit:
{"kind":"sku", "model": "...", "value": "...", "currencyCode": "..."} - On fallback/not found:
{"kind":"search", "note":"matched-by-name"|"not-found", ...} - On error:
{"kind":"error", ...}
pricing_search_name
Fuzzy-search by product name or alias. Parameters:query(required) - Product name or alias to search forcurrency(optional) - Currency code (defaults to env default)limit(optional, default 12, max 20) - Maximum results to returnmax_pages(optional) - Maximum pages to fetch (defaults to env default)require_priced(optional, default false) - If true, only return items with model + value
ping
Health check endpoint. Returns:"ok"
Features
No Credentials Required
- Uses public Oracle Price List API
- No OCI account needed
- No authentication setup
Stateless
- Side-effect-free operations
- No persistent state
- Safe for concurrent use
Network Robustness
- Automatic retry with exponential backoff
- Request timeout handling
- Transient error recovery
Currency Handling
- Normalizes ISO currency codes
- Ensures currencyCode present in responses
- Falls back to requested or default currency
Common Use Cases
Cost Estimation
- Look up pricing for specific SKUs
- Calculate monthly costs
- Compare service pricing
- Estimate project costs
Budget Planning
- Research service costs
- Plan infrastructure expenses
- Forecast spending
- Evaluate cost scenarios
Cost Comparison
- Compare pricing across services
- Evaluate different configurations
- Identify cost optimization opportunities
- Assess regional pricing differences
Vendor Evaluation
- Compare OCI pricing with competitors
- Evaluate total cost of ownership
- Assess pricing models
- Support procurement decisions
Best Practices
Verification
- Always verify pricing in OCI Console
- Check for current promotions or discounts
- Confirm pricing for your specific region
- Review terms and conditions
Currency
- Specify currency explicitly when possible
- Set default currency via environment variable
- Be aware of exchange rate considerations
- Understand currency conversion limitations
Interpretation
- Treat all pricing as informational only
- Account for taxes and surcharges separately
- Consider negotiated pricing if applicable
- Factor in commitment discounts
Automation
- Cache pricing data appropriately
- Handle zero-price items correctly
- Implement error handling
- Monitor for pricing changes
Troubleshooting
Zero Price Results
Possible reasons:- Free tier only service
- Missing price localization for currency
- Not available in all regions
- Pricing not published
- Check for
note: "zero-price-or-free-tier-only" - Try different currency
- Verify in OCI Console
- Contact Oracle sales
No Results Found
- Verify SKU is correct
- Try broader search terms
- Use product aliases
- Check spelling
Network Errors
- Verify internet connectivity
- Check for firewall/proxy issues
- Review timeout settings
- Retry the request
Reference
Oracle Price List API
Official documentation: https://docs.oracle.com/en-us/iaas/Content/GSG/Tasks/signingup_topic-Estimating_Costs.htm#accessing_list_pricingCommon SKUs
Refer to Oracle documentation for current SKU listings.Related Services
- Usage - Track actual usage and costs
- Identity - Tenancy information
- Compute - Instance pricing
- Object Storage - Storage pricing
