# FiscaLLM

> LLM prices, cost estimates and break-even, plus your app's AI cost and margin per user.

- name: io.github.magna56/fiscallm
- version: 1.0.0
- connection class: R0 (autonomous)
- trust: 97/100
- quality: 89/100 (new)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/io.github.magna56%2Ffiscallm
- tools: https://api.protogrid.dev/v1/servers/io.github.magna56%2Ffiscallm/tools

**An agent can connect right now, no human step.** Remote endpoint, no authentication, reachable on the last probe.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "fiscallm": {
      "type": "http",
      "url": "https://fiscallm.com/api/mcp",
      "headers": {
        "Authorization": "Bearer ${FISCALLM_TOKEN}"
      }
    }
  }
}
```

Placeholders to fill: `${FISCALLM_TOKEN}`.

## Trust

- hygiene: 100
- liveness: 100
- freshness: 100
- provenance: 90
- drivers: +repository +namespace-matches-repo +website +reachable +uptime-100% +updated-3d-ago
- Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed.

## Quality 89/100 (new)

### protocol: 75 (weight 25)

- warn `protocol.modern`: newest supported version is 2025-11-25; 2026-07-28 not supported, older versions are deprecated until 2027-07-28
- n/a `protocol.stateless`: only applies to 2026-07-28 servers
- pass `protocol.transport`: streamable HTTP
- n/a `protocol.list_ttl`: only applies to 2026-07-28 servers

### authorization: n/a (weight 15)

- n/a `auth.prm`, `auth.as_metadata`, `auth.cimd`: no remote uses OAuth
- n/a `auth.secret_in_url`: no templated URL

### tool hygiene: 100 (weight 30)

- pass `tools.descriptions`: every tool has a description
- pass `tools.description_length`: descriptions are concise
- pass `tools.schemas`: every tool has an object input schema
- pass `tools.annotations`: 10 of 10 tools declare readOnlyHint or destructiveHint
- pass `tools.directory_hints`: every tool declares readOnlyHint, destructiveHint, idempotentHint and openWorldHint
- pass `tools.token_cost`: about 1,554 tokens to load every tool
- pass `tools.api_dump`: tools are not a one-to-one API dump
- pass `tools.hidden_text`: no hidden text in tool names, descriptions, schemas or annotations

### stability: n/a (weight 15)

- n/a `stability.changes`, `stability.rug_pull`, `stability.new_links`: tool history recorded for 3 of the 7 days needed

### dependencies: n/a (weight 15)

- n/a `deps.known_vulns`, `deps.mcp_sdk_version`, `deps.resolvable`: no npm or PyPI package

- tools: 10, about 1,554 tokens to load them all
- tool set hash: a6ed14687e9a848ba664605d1291c58f
- badge: [![protogrid quality](https://protogrid.dev/badge/io.github.magna56/fiscallm.svg)](https://protogrid.dev/servers/io.github.magna56/fiscallm)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Tool changes

_No tool definition changes recorded._

## Remotes

- https://fiscallm.com/api/mcp (streamable-http, auth none, reachable true, uptime30d 1)

## Packages

_none_

## Tools (10)

- `compare_llm_costs`: USD cost of the same call (same token counts) on each of several models, cheapest first. Use it to pick a model or to price a switch.
- `estimate_llm_cost`: USD cost of a call to a model from its token counts, at list price, and the total for a number of such calls.
- `fiscallm_setup_guide`: What FiscaLLM is and the ways to send it AI usage (OpenTelemetry, LiteLLM, SDK, HTTP), connect revenue, and read margins back.
- `get_cost_breakdown`: The app's AI cost over a period split by model and by feature. Needs the app's key.
- `get_llm_price`: Current list price of one model by id, e.g. "gpt-4o-mini" or "claude-sonnet-4-5". Includes the long-context rate and any announced change.
- `get_margin_overview`: The app's AI cost, revenue, margin, share of revenue spent on AI, request count and daily series over a period. Needs the app's key.
- `get_plan_margins`: AI cost, revenue and margin of each plan or product over a period. Needs the app's key.
- `list_llm_prices`: Current list prices (USD per 1M tokens: input, cached input, output) for OpenAI, Anthropic and Google models, with announced price changes. Use it to find a model id or to compare prices.
- `list_users_by_margin`: Each user's AI cost, revenue and margin over a period, the users losing the most money first. Needs the app's key.
- `subscription_break_even`: How many AI messages a month a subscriber can send before the model cost uses up what the plan earns, after the store or payment fee. Answers: does this plan price cover this model?
