precisioncalc-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PRECISIONCALC_HOST | No | HTTP bind host | 127.0.0.1 |
| PRECISIONCALC_OTEL | No | Set to '1' to enable OpenTelemetry tracing (if SDK present), '0' otherwise | 0 |
| PRECISIONCALC_PORT | No | HTTP bind port | 8000 |
| PRECISIONCALC_FX_TTL | No | FX cache TTL in seconds | 3600 |
| PRECISIONCALC_API_KEYS | No | Comma-separated API keys. Empty = open mode (still metered/limited by IP) | |
| PRECISIONCALC_LOG_JSON | No | Set to '1' for structured JSON logging, '0' for plain text | 1 |
| PRECISIONCALC_LOG_LEVEL | No | Logging level (e.g., INFO, DEBUG) | INFO |
| PRECISIONCALC_FX_TIMEOUT | No | FX HTTP timeout in seconds | 4 |
| PRECISIONCALC_FX_PROVIDER | No | FX provider: 'static' or 'frankfurter' (live/historical ECB) | static |
| PRECISIONCALC_METRICS_PATH | No | Usage-metrics endpoint | /metrics |
| PRECISIONCALC_RATE_LIMIT_BURST | No | Token-bucket burst limit | 40 |
| PRECISIONCALC_RATE_LIMIT_PER_MIN | No | Token-bucket rate limit per minute | 120 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| calculate_metricA | Compute a business / SaaS / finance metric with exact decimal precision. Supported
Call Args: metric: Name of the metric to compute. params: Object of named numeric parameters for the chosen metric. currency: ISO currency code used to format monetary results. |
| list_metricsA | List every supported metric with description, required and optional params. |
| currency_convertA | Convert an amount between major currencies with Decimal precision. Supported: USD, EUR, GBP, JPY, CAD, AUD, CHF, CNY, INR. Returns the converted amount, exact cross-rate, provider, and timestamps. Rates: static offline table by default. A Args:
amount: Amount in |
| business_daysA | Business-day arithmetic honoring weekends and regional public holidays. Operations: add_business_days (needs days, may be negative) | count_business_days (needs end_date, inclusive) | next_business_day | previous_business_day. Regions: US, UK, EU, NONE (weekends only) are built in and offline. If the
optional Args: operation: One of the four operations above. start_date: Anchor date, ISO YYYY-MM-DD. days: Business days to add (add_business_days; negative allowed). end_date: End date (count_business_days), ISO. region: US | UK | EU | NONE | ISO country code. custom_holidays: Optional extra holiday dates (YYYY-MM-DD). |
| compound_growthA | Compound-interest / growth math (future value, present value, or CAGR). Operations: future_value (needs rate, years, present_value) | present_value
(needs rate, years, future_value) | cagr (needs begin_value, end_value, years).
|
| net_present_valueA | Net Present Value (discounted cash flow) of a periodic cashflow series. NPV = sum(CF_t / (1 + rate)^t), t = 0..n. Index 0 is period 0 (typically the negative initial investment). Args: rate: Discount rate per period as a decimal (0.10 = 10%). cashflows: List of >= 2 numbers, e.g. [-10000, 3000, 4200, 6800]. currency: ISO code for formatting. |
| internal_rate_of_returnA | Internal Rate of Return: the per-period rate where NPV == 0. Solved with Newton's method + a bisection fallback. Requires at least one negative and one positive cashflow. Args: cashflows: List of >= 2 numbers, e.g. [-10000, 3000, 4200, 6800]. guess: Optional starting rate for Newton's method (decimal). |
| loan_amortizationA | Level-payment loan: monthly payment, total interest, payoff, and schedule. payment = P * r / (1 - (1 + r)^-n), r = annual_rate/12, n = term_months. Args: principal: Loan amount (> 0). annual_rate: Nominal annual rate as a decimal (0.06 = 6%). term_months: Number of monthly payments (> 0). extra_payment: Optional extra principal each month (shortens the term). currency: ISO code for formatting. include_schedule: If true, return the full month-by-month schedule. |
| depreciationA | Asset depreciation schedule. Methods: straight_line | declining_balance (double-declining) | sum_of_years_digits. Returns Year-1 depreciation plus the full yearly schedule (book value converges to salvage_value). Args: method: Depreciation method (see above). cost: Initial asset cost. salvage_value: Residual value at end of life (<= cost). useful_life_years: Whole years (> 0). currency: ISO code for formatting. |
| batch_calculateA | Run many calculations in one request to cut agent round-trips. Each item is Args: calls: List of {"tool": str, "arguments": object} items (max 100). |
| health_checkA | Return server health/status metadata (name, version, tools, capabilities). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 11 tools
Each tool addresses a distinct calculation domain: metric computation, currency conversion, business day arithmetic, compound growth, NPV/IRR, amortization, depreciation, batching, and health. No two tools appear to perform the same function.
All names use lowercase with underscores creating a predictable style, though some follow verb_noun (calculate_metric) while others are noun phrases (business_days, net_present_value). The convention is consistent enough that an agent can infer tool purposes.
With 11 tools, the set is well-scoped for a financial calculation server. Each tool represents a meaningful capability, and the batch_calculate tool efficiently aggregates without inflating the surface.
The server covers a comprehensive range of financial calculations: business metrics, currency conversion, time arithmetic, time-value-of-money, loans, and depreciation. The inclusion of batch_calculate and health_check rounds out operational needs. No major gaps are evident.