Skip to main content
Glama

Kalkulator B2B

JDG — miesiąc z faktur

b2b_month_from_invoices
Read-only

Liczy podatki za miesiąc wprost z listy faktur: sprzedażowych i zakupowych. Przepisz pozycje z dokumentów (netto, kwota VAT, tryb VAT), a narzędzie zsumuje je samo i zwróci PIT, ZUS, składkę zdrowotną oraz VAT należny, naliczony i do zapłaty. Obsługuje odwrotne obciążenie („np"), zwolnienie, 0% i częściowe odliczenie VAT (np. 50% od samochodu). NIE sumuj kwot samodzielnie — od tego jest to narzędzie. Przy zusVariant BRAK (ulga na start) narzędzie liczy etap miesiąca działalności: 1–6 bez ZUS społecznego, potem Mały ZUS — te same etapy co w b2b_year. Miesiące działalności liczy od zusStart (pierwszego pełnego miesiąca ulgi: miesiąc założenia, gdy firma powstała 1. dnia miesiąca, inaczej następny; miesiąc tuż przed nim to miesiąc założenia firmy założonej w trakcie miesiąca, też bez ZUS społecznego); bez zusStart podany miesiąc jest zarazem miesiącem działalności (firma od stycznia) i wynik to mówi. Gdy firma po uldze płaci pełny ZUS, policz z DUZY_ZUS. Gdy nie wiesz, od kiedy firma działa, zapytaj o datę założenia i policz ten miesiąc z zusStart; gdy nie wiesz, co płaci po uldze albo czy płaci dobrowolną chorobową — też zapytaj. Cały rok z etapami ZUS liczy b2b_year z zusStart, gdy ulga trwała już w styczniu tego roku.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "invoices": "<invoices>",
      "taxForm": "<taxForm>",
      "zusVariant": "<zusVariant>",
      "year": "<year>",
      "month": "<month>"
    },
    "name": "b2b_month_from_invoices"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearYesRok podatkowy — decyduje o stałych (progi, ZUS, płaca minimalna)
monthYesMiesiąc rozliczenia. Dla sprzedaży decyduje DATA WYKONANIA USŁUGI, nie data wystawienia — faktura wystawiona w sierpniu za lipiec należy do lipca
taxFormYesLINIOWY = 19%, SKALA = 12/32%, RYCZALT = od przychodu
invoicesYesFaktury z jednego miesiąca
sicknessNoDobrowolna składka chorobowa
zusStartNoOd kiedy trwa wybrany wariant ZUS: przy BRAK (ulga na start) — pierwszy miesiąc działalności liczony do ulgi (miesiąc założenia, gdy firma powstała 1. dnia miesiąca, inaczej następny), przy PREFERENCYJNY — pierwszy miesiąc Małego ZUS-u (Mały ZUS zaraz po uldze na start: zusVariant BRAK z pierwszym pełnym miesiącem ulgi). Etap biegnie od niego dalej. Nie później niż liczony miesiąc — przy BRAK najwyżej miesiąc po nim: miesiąc tuż przed zusStart to miesiąc założenia w trakcie miesiąca, objęty ulgą od dnia założenia. Bez tego pola przy BRAK narzędzie liczy miesiąc jako miesiąc działalności firmy założonej w styczniu tego roku i pisze to w wyniku, a przy PREFERENCYJNY — jako Mały ZUS. Przy DUZY_ZUS i UOP bez znaczenia
isVatPayerNofalse = zwolniony podmiotowo z VAT
zusVariantYesBRAK = ulga na start (6 miesięcy bez społecznych, potem Mały ZUS — etap liczy narzędzie), PREFERENCYJNY = mały ZUS (30% podstawy), DUZY_ZUS = pełny, UOP = etat obok działalności (społeczne po stronie pracodawcy)
ryczaltRateNoStawka ryczałtu w procentach. WYMAGANA dla RYCZALT — silnik jej nie zgaduje
ryczaltAnnualRevenueNoRoczny przychód narastająco — decyduje o progu składki zdrowotnej przy ryczałcie

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered. The description still adds real behavior: which taxes are computed and returned, how reverse charge/exempt/0%/partial VAT deduction are handled, and crucially that without zusStart the tool assumes a January start, treats the month as a month of activity, and states that assumption in the result. That assumption disclosure is valuable transparency beyond the structured fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core purpose and the 'do not sum yourself' rule, then moves to edge-case handling and escalation guidance. It is dense and partly repeats the zusStart semantics already spelled out in the schema, but each sentence carries actionable content and is organized logically.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter tool with nested invoice objects and no output schema, the description still names the returned values (PIT, ZUS, health contribution, VAT due/deductible/payable), covers VAT edge cases, and explains the ZUS stage logic. Nothing an agent needs in order to call it correctly or to know when to ask the user is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so 3 is the baseline; the description rises above it by explaining the interaction between zusVariant=BRAK, zusStart and the activity-month counting (1-6 without social contributions, then Mały ZUS), and by telling the agent to query missing founding-date/contribution information. It adds meaning about how parameters combine rather than merely restating field-level text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a concrete verb+resource: computes monthly taxes directly from an invoice list (sales and purchase), returning PIT, ZUS, health contribution and VAT due/deductible/payable. It explicitly says NOT to sum amounts manually and names b2b_year as the full-year alternative, so an agent can distinguish it from siblings without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit routing conditions: full year with ZUS stages goes to b2b_year; after the relief with full ZUS use DUZY_ZUS; if the company start date is unknown, ask for it and compute that month with zusStart. It also says to ask when the post-relief variant or voluntary sickness contribution is unknown, which is exactly the when/when-not guidance an agent needs.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources