jiheng-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DSH_CALC_HOME | No | Formula/settings directory. Default: ./.calc or ~/.calc. | |
| DSH_CALC_DEBUG | No | Pass through worker stderr when set. | |
| DSH_CALC_POLICY | No | Temporarily override the calculation policy. | |
| DSH_CALC_PYTHON | No | Worker interpreter. Default: auto-detected. | |
| DSH_CALC_TIMEOUT_MS | No | Per-evaluation timeout in milliseconds. | 8000 |
| DSH_CALC_DSH_CALC_BUILTIN_PACKS_PLACEHOLDER | No | Not used |
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 | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| calcA | Evaluate a math expression exactly: fractions stay fractions (1/3), radicals stay radicals (sqrt(2)). Symbolic: solve/diff/simplify/expand/factor/subs. Built-ins: sum/mean/std/median/quantile, loan_pmt, npv, cagr, discount, markup, convert, unit_convert, normal/option functions (norm_cdf, black_scholes_call), dates. Common composite functions: norm_cdf(x), black_scholes_call(spot,strike,years,rate,vol), npv(rate, flows[, start]), loan_pmt(principal, annualRate, years), unit_convert(value, from, to). Call functions() to list names, help("name") for a signature. N(expr, digits) is numeric evaluation, NOT the normal CDF. For multi-step work use one call with steps:[{name,expr},...]; later steps may reference earlier names. Results include a full-precision decimal; copy it verbatim and never round. |
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 1 tool
There is only one tool, so there is no possibility of misselection between tools. Internal ambiguity is handled by the documented functions()/help() introspection and the steps[] chaining mechanism rather than by separate tools.
A single tool named 'calc' is trivially consistent; there are no competing conventions to clash. The sub-function names referenced in the description (norm_cdf, black_scholes_call, loan_pmt, unit_convert) also follow a uniform snake_case style.
One tool is thin against the typical 3-15 range, and the surface is really a whole math library collapsed into a single overloaded entry point. It is defensible for a pure evaluator, but discoverability depends entirely on in-band functions()/help() calls rather than a browsable tool set.
Coverage is broad for a math domain: exact arithmetic, symbolic solve/diff/simplify, statistics, financial functions, unit conversion, probability/options, and dates, plus multi-step chaining. Gaps remain in areas like linear algebra/matrices and complex-number work, which agents would have to work around.