# work.duebuddy/invoices

> Read supplier invoices (PDF, photo, XML) and return fields plus a DATEV/1C/CSV file.

- name: work.duebuddy/invoices
- version: 1.1.1
- connection class: R0 (autonomous)
- trust: 95/100
- quality: 82/100 (good)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/work.duebuddy%2Finvoices
- tools: https://api.protogrid.dev/v1/servers/work.duebuddy%2Finvoices/tools

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

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "invoices": {
      "type": "http",
      "url": "https://duebuddy.work/mcp"
    }
  }
}
```


## Trust

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

## Quality 82/100 (good)

### protocol: 88 (weight 25)

- pass `protocol.modern`: supports 2026-07-28 (server/discover)
- pass `protocol.stateless`: answers without a session
- pass `protocol.transport`: streamable HTTP
- warn `protocol.list_ttl`: tools/list declares ttlMs 0, so clients re-fetch it on every use

### 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: 94 (weight 30)

- pass `tools.descriptions`: every tool has a description
- warn `tools.description_length`: 2 tools have descriptions over 1,024 characters, which crowds the context
- pass `tools.schemas`: every tool has an object input schema
- pass `tools.annotations`: 4 of 4 tools declare readOnlyHint or destructiveHint
- pass `tools.directory_hints`: every tool declares readOnlyHint, destructiveHint, idempotentHint and openWorldHint
- pass `tools.token_cost`: about 1,709 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, prompt or resource definitions
- pass `tools.poisoning`: no instructions aimed at the model in tool, prompt or resource definitions

### stability: 50 (weight 15)

- warn `stability.changes`: 8 tool changes in 30 days
- fail `stability.rug_pull`: 4 tools kept their name but changed most of their description in 30 days; review before trusting them
- pass `stability.new_links`: no tool change named a new site

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

- n/a `deps.known_vulns`, `deps.mcp_sdk_version`, `deps.resolvable`: deps.dev does not know duebuddy-mcp@1.1.1

- tools: 4, about 1,709 tokens to load them all
- tool set hash: b5f7f7edbb010d0e1280de9081d69519
- tools last changed: 2026-11-18T19:07:20.687Z
- badge: [![protogrid quality](https://protogrid.dev/badge/work.duebuddy/invoices.svg)](https://protogrid.dev/servers/work.duebuddy/invoices)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Definition changes

- 2026-11-18 `topup_link` changed (description, inputSchema)
  - before: Returns the page where the prepaid balance can be topped up, plus the minimum amount. Use when: the balance is empty or too low for the documents the user wants to process. Do not use when: the balance is sufficient — check it with get_balance first. Side effects and cost: none. The call only builds a link; the payment happens in the browser and is handled by the payment provider, never by this server. Parameters: amount_eur is informational only and does not create an order. Returns: {ok, url, minimum_eur}.
  - after: Returns the page where the prepaid balance can be topped up, plus the minimum amount. Use when: the balance is empty or too low for the documents the user wants to process. Do not use when: the balance is sufficient — check it with get_balance first. Side effects and cost: none. The call only builds a link; the payment happens in the browser and is handled by the payment provider, never by this server. Parameter interactions and edge cases: amount_eur is echoed back only; a value outside 8..5000 is rejected by parameter validation before the call runs. The returned url is a pricing page, not a payment link tied to a sum — the user chooses the amount there. Calling it repeatedly returns the same page and creates no orders. Returns: {ok, url, minimum_eur}.
- 2026-11-18 `get_balance` changed (description, inputSchema)
  - before: Shows how many scanned pages are left on the prepaid balance for this API key. Use when: before a batch of scans or photos, or when parse_invoice answered insufficient_balance and the remaining amount must be confirmed. Do not use when: the user asks about invoice content — that is get_result. Side effects and cost: none; read-only and idempotent. Parameters: api_key is the DueBuddy key; optional when the server was added with an X-Api-Key header. Returns: {ok, balance} with remaining pages and the current plan.
  - after: Shows how many scanned pages are left on the prepaid balance for this API key. Use when: before a batch of scans or photos, or when parse_invoice answered insufficient_balance and the remaining amount must be confirmed. Do not use when: the user asks about invoice content — that is get_result. Side effects and cost: none. The number comes from the same counter that blocks parsing, so it can change between two calls while a batch is running. Parameter interactions and edge cases: this is the same counter that blocks parsing, so a balance of zero makes the next parse_invoice fail with insufficient_balance and a topup_link is the only way forward. Two keys of one account see the same number, because usage is counted per account. The number can drop between two calls while a batch runs, and pages parsed on the free cabinet allowance are not part of it. Returns: {ok, balance} with remaining pages and the current plan.
- 2026-11-18 `get_result` changed (description, inputSchema)
  - before: Returns the result of a parse job started by parse_invoice: structured fields (supplier, invoice number, dates, net/VAT/gross, currency, line items) plus export links for accounting systems. Use when: you already have a job_id and want its status or its extracted data. Do not use when: you have no job_id yet — start with parse_invoice. Do not poll in a tight loop: one call every few seconds is enough, text PDFs and XML usually finish in under a minute. Side effects and cost: none. Read-only and idempotent; does not touch the prepaid balance and can be repeated safely. Parameters: job_id is the identifier returned by parse_invoice for the same API key. Returns: {ok, result}, where result.status is queued, processing, done or failed; on done it also carries fields and export links.
  - after: Returns the result of a parse job started by parse_invoice: structured fields (supplier, invoice number, dates, net/VAT/gross, currency, line items) plus export links for accounting systems. Use when: you already have a job_id and want its status or its extracted data. Do not use when: you have no job_id yet — start with parse_invoice. Do not poll in a tight loop: one call every few seconds is enough, text PDFs and XML usually finish in under a minute. Side effects and cost: none. Does not touch the prepaid balance, so repeated polling is free; a failed job stays failed. Parameter interactions and edge cases: job_id belongs to the key that created it, so a job started with one key is invisible to another. A pasted URL or a document id from another system returns 404 rather than a guess. A job that failed stays failed — polling it again will not resurrect it; start a new parse_invoice call instead. Returns: {ok, result}, where result.status is queued, processing, done or failed; on done it also carries fields and export links.
- 2026-11-18 `parse_invoice` changed (description, inputSchema)
  - before: Reads ONE incoming supplier invoice and returns a job id for polling. Use when: the user has a single invoice (PDF, photo, scan, XML e-invoice or QR bill) and wants supplier, invoice number, dates, amounts, VAT or line items extracted. Do not use when: the user asks to ISSUE an invoice, to send a payment, or to post entries into DATEV/1C — this tool only reads documents. For several documents call it once per document; the returned job ids can be polled independently. Side effects and cost: the document is downloaded and queued for parsing. XML and QR invoices are parsed by code and cost nothing; scans and photos cost 0.07 EUR per page and are charged to the prepaid balance. Not idempotent: each call creates a new job and, for scans, a new charge — do not retry blindly after a timeout, poll get_result instead. Parameters: file_url must be a public https link to a single document on duebuddy.work (upload first via the cabinet); country is a two-letter code that selects the parsing profile and changes field names and tax rules, not the price. api_key may be omitted when the server was added with an X-Api-Key header. Returns: {ok, job_id, status}. Next step: call get_result with that job_id.
  - after: Reads ONE incoming supplier invoice and returns a job id for polling. Use when: the user has a single invoice (PDF, photo, scan, XML e-invoice or QR bill) and wants supplier, invoice number, dates, amounts, VAT or line items extracted. Do not use when: the user asks to ISSUE an invoice, to send a payment, or to post entries into DATEV/1C — this tool only reads documents. For several documents call it once per document; the returned job ids can be polled independently. Side effects and cost: the document is downloaded and queued. XML and QR invoices are parsed by code and cost nothing; scans and photos cost 0.07 EUR per page, charged to the prepaid balance. Not idempotent: each call creates a new job and a new charge for scans. Parameter interactions and edge cases: the same file parsed twice returns the existing job with charged=false instead of billing twice, so retrying after a client timeout is safe — and the second call's country is ignored, the first profile wins. Per API key there is a request rate limit and a cap of 3 parses in flight; exceeding either returns 429 with Retry-After, which is a throttle, not a billing error. country changes field names and tax checks, never the price. Returns: {ok, job_id, status}. Next step: call get_result with that job_id.
- 2026-11-17 `topup_link` changed (title, description, annotations) **meaning changed**
  - before: Where to top up the API balance. Lava.top processes the payment; the minimum top-up is 8 EUR.
  - after: Returns the page where the prepaid balance can be topped up, plus the minimum amount. Use when: the balance is empty or too low for the documents the user wants to process. Do not use when: the balance is sufficient — check it with get_balance first. Side effects and cost: none. The call only builds a link; the payment happens in the browser and is handled by the payment provider, never by this server. Parameters: amount_eur is informational only and does not create an order. Returns: {ok, url, minimum_eur}.
- 2026-11-17 `get_balance` changed (title, description, annotations) **meaning changed**
  - before: How many scanned pages are left on this API key before the next top-up.
  - after: Shows how many scanned pages are left on the prepaid balance for this API key. Use when: before a batch of scans or photos, or when parse_invoice answered insufficient_balance and the remaining amount must be confirmed. Do not use when: the user asks about invoice content — that is get_result. Side effects and cost: none; read-only and idempotent. Parameters: api_key is the DueBuddy key; optional when the server was added with an X-Api-Key header. Returns: {ok, balance} with remaining pages and the current plan.
- 2026-11-17 `get_result` changed (title, description, annotations) **meaning changed**
  - before: Fetch the result of a parse job: structured fields plus export links for accounting.
  - after: Returns the result of a parse job started by parse_invoice: structured fields (supplier, invoice number, dates, net/VAT/gross, currency, line items) plus export links for accounting systems. Use when: you already have a job_id and want its status or its extracted data. Do not use when: you have no job_id yet — start with parse_invoice. Do not poll in a tight loop: one call every few seconds is enough, text PDFs and XML usually finish in under a minute. Side effects and cost: none. Read-only and idempotent; does not touch the prepaid balance and can be repeated safely. Parameters: job_id is the identifier returned by parse_invoice for the same API key. Returns: {ok, result}, where result.status is queued, processing, done or failed; on done it also carries fields and export links.
- 2026-11-17 `parse_invoice` changed (title, description, annotations) **meaning changed**
  - before: Read one incoming invoice. Pass a publicly reachable file URL and the country code (de, fr, it, pl, ru, kz, by, us, ae, sa, ua, ge). The API key can be passed once as an X-Api-Key header when the server is added, instead of on every call. Returns a job id and status. Electronic invoices (XML, QR) are free; scans cost 0.07 EUR per page.
  - after: Reads ONE incoming supplier invoice and returns a job id for polling. Use when: the user has a single invoice (PDF, photo, scan, XML e-invoice or QR bill) and wants supplier, invoice number, dates, amounts, VAT or line items extracted. Do not use when: the user asks to ISSUE an invoice, to send a payment, or to post entries into DATEV/1C — this tool only reads documents. For several documents call it once per document; the returned job ids can be polled independently. Side effects and cost: the document is downloaded and queued for parsing. XML and QR invoices are parsed by code and cost nothing; scans and photos cost 0.07 EUR per page and are charged to the prepaid balance. Not idempotent: each call creates a new job and, for scans, a new charge — do not retry blindly after a timeout, poll get_result instead. Parameters: file_url must be a public https link to a single document on duebuddy.work (upload first via the cabinet); country is a two-letter code that selects the parsing profile and changes field names and tax rules, not the price. api_key may be omitted when the server was added with an X-Api-Key header. Returns: {ok, job_id, status}. Next step: call get_result with that job_id.

Full history: https://api.protogrid.dev/v1/servers/work.duebuddy%2Finvoices/changes

## Dependencies

- pypi duebuddy-mcp@1.1.1: unknown

Dependency graphs from deps.dev; advisories from OSV.dev, including the GitHub Advisory Database and the PyPI Advisory Database; all CC BY 4.0.

## Remotes

- https://duebuddy.work/mcp (streamable-http, auth none, reachable true, uptime30d 0.9830508)

## Packages

- pypi duebuddy-mcp@1.1.1 secrets: DUEBUDDY_API_KEY

## Tools (4)

- `get_balance`: Shows how many scanned pages are left on the prepaid balance for this API key.

Use when: before a batch of scans or photos, or when parse_invoice answered insufficient_balance and the remaining amount must be confirmed.
Do not use when: the user asks about invoice content — that is get_result.

Side effects and cost: none. The number comes from the same counter that blocks parsing, so it can change between two calls while a batch is running.

Parameter interactions and edge cases: this is the same counter that blocks parsing, so a balance of zero makes the next parse_invoice fail with insufficient_balance and a topup_link is the only way forward. Two keys of one account see the same number, because usage is counted per account. The number can drop between two calls while a batch runs, and pages parsed on the free cabinet allowance are not part of it.

Returns: {ok, balance} with remaining pages and the current plan.
- `get_result`: Returns the result of a parse job started by parse_invoice: structured fields (supplier, invoice number, dates, net/VAT/gross, currency, line items) plus export links for accounting systems.

Use when: you already have a job_id and want its status or its extracted data.
Do not use when: you have no job_id yet — start with parse_invoice. Do not poll in a tight loop: one call every few seconds is enough, text PDFs and XML usually finish in under a minute.

Side effects and cost: none. Does not touch the prepaid balance, so repeated polling is free; a failed job stays failed.

Parameter interactions and edge cases: job_id belongs to the key that created it, so a job started with one key is invisible to another. A pasted URL or a document id from another system returns 404 rather than a guess. A job that failed stays failed — polling it again will not resurrect it; start a new parse_invoice call instead.

Returns: {ok, result}, where result.status is queued, processing, done or failed; on done it also carries fields and export links.
- `parse_invoice`: Reads ONE incoming supplier invoice and returns a job id for polling.

Use when: the user has a single invoice (PDF, photo, scan, XML e-invoice or QR bill) and wants supplier, invoice number, dates, amounts, VAT or line items extracted.
Do not use when: the user asks to ISSUE an invoice, to send a payment, or to post entries into DATEV/1C — this tool only reads documents. For several documents call it once per document; the returned job ids can be polled independently.

Side effects and cost: the document is downloaded and queued. XML and QR invoices are parsed by code and cost nothing; scans and photos cost 0.07 EUR per page, charged to the prepaid balance. Not idempotent: each call creates a new job and a new charge for scans.

Parameter interactions and edge cases: the same file parsed twice returns the existing job with charged=false instead of billing twice, so retrying after a client timeout is safe — and the second call's country is ignored, the first profile wins. Per API key there is a request rate limit and a cap of 3 parses in flight; exceeding either returns 429 with Retry-After, which is a throttle, not a billing error. country changes field names and tax checks, never the price.

Returns: {ok, job_id, status}. Next step: call get_result with that job_id.
- `topup_link`: Returns the page where the prepaid balance can be topped up, plus the minimum amount.

Use when: the balance is empty or too low for the documents the user wants to process.
Do not use when: the balance is sufficient — check it with get_balance first.

Side effects and cost: none. The call only builds a link; the payment happens in the browser and is handled by the payment provider, never by this server.

Parameter interactions and edge cases: amount_eur is echoed back only; a value outside 8..5000 is rejected by parameter validation before the call runs. The returned url is a pricing page, not a payment link tied to a sum — the user chooses the amount there. Calling it repeatedly returns the same page and creates no orders.

Returns: {ok, url, minimum_eur}.

## Prompts and resources

### Prompts (1)

- `` invoice_to_accounting ``: Reusable working instruction for an assistant handling a batch of incoming supplier invoices. Call this prompt when the user says something like "разбери мои счета", "extract these invoices" or "сверь счета с учётом" and you need a safe, cost-aware order of operations across parse_invoice, get_result and get_balance.
