Skip to main content
Glama

Vypis dokladu

list_documents
Read-onlyIdempotent

Vypis prijatych i vydanych dokladu (uctenky, faktury) s filtrovanim a fulltextem. Vraci strankovany seznam v zestihlenem tvaru (bez souboru dokladu, jen hasImage). Castky po sazbach DPH jsou v mene dokladu.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_documents"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
typeNoSkupina typu z menu dashboardu, napr. prijate-faktury, vydane-faktury, uctenky, prijmove-doklady; prijmy = vydane faktury + prijmove doklady, vydaje = vsechny vydajove doklady
limitNoVychozi 20, max 50
dateToNoDatum dokladu do (vcetne), YYYY-MM-DD
searchNoFulltext: dodavatel, ICO, cislo dokladu, variabilni symbol
sourceNoOdkud doklad prisel
statusNoStav schvaleni, vychozi PENDING
dateFromNoDatum dokladu od (vcetne), YYYY-MM-DD
exportedNotrue = jen doklady uz nekdy exportovane do souboru (Pohoda XML, Excel, ...), false = jen dosud neexportovane
companyIdNoJen doklady teto firmy (z list_companies)
unassignedNotrue = jen doklady bez prirazene firmy
documentTypeNoPresny typ dokladu

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / documentType / enum
      Previous value: -[
      -  "faktura",
      -  "uctenka",
      -  "pokladni_blok",
      -  "dobropis",
      -  "zalohova_faktura",
      -  "vydana_faktura",
      -  "proforma",
      -  "objednavka",
      -  "smlouva",
      -  "jine",
      -  "jsd",
      -  "vyuctovani"
      -]New value: +[
      +  "faktura",
      +  "uctenka",
      +  "pokladni_blok",
      +  "dobropis",
      +  "zalohova_faktura",
      +  "vydana_faktura",
      +  "proforma",
      +  "prijmovy_doklad",
      +  "objednavka",
      +  "smlouva",
      +  "jine",
      +  "jsd",
      +  "vyuctovani"
      +]
    • changedInput schema / properties / type / description
      Previous value: -"Skupina typu z menu dashboardu, napr. prijate-faktury, uctenky"New value: +"Skupina typu z menu dashboardu, napr. prijate-faktury, vydane-faktury, uctenky, prijmove-doklady; prijmy = vydane faktury + prijmove doklady, vydaje = vsechny vydajove doklady"
  2. Changed1 schema field changed
    • changedInput schema / properties / documentType / enum
      Previous value: -[
      -  "faktura",
      -  "uctenka",
      -  "pokladni_blok",
      -  "dobropis",
      -  "zalohova_faktura",
      -  "vydana_faktura",
      -  "objednavka",
      -  "smlouva",
      -  "jine",
      -  "jsd",
      -  "vyuctovani"
      -]New value: +[
      +  "faktura",
      +  "uctenka",
      +  "pokladni_blok",
      +  "dobropis",
      +  "zalohova_faktura",
      +  "vydana_faktura",
      +  "proforma",
      +  "objednavka",
      +  "smlouva",
      +  "jine",
      +  "jsd",
      +  "vyuctovani"
      +]
  3. Changed10 schema fields changed
    • addedInput schema / properties / companyId
      Added value: +{
      +  "description": "Jen doklady teto firmy (z list_companies)",
      +  "type": "string"
      +}
    • addedInput schema / properties / dateFrom
      Added value: +{
      +  "description": "Datum dokladu od (vcetne), YYYY-MM-DD",
      +  "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      +  "type": "string"
      +}
    • addedInput schema / properties / dateTo
      Added value: +{
      +  "description": "Datum dokladu do (vcetne), YYYY-MM-DD",
      +  "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      +  "type": "string"
      +}
    • addedInput schema / properties / documentType
      Added value: +{
      +  "description": "Presny typ dokladu",
      +  "enum": [
      +    "faktura",
      +    "uctenka",
      +    "pokladni_blok",
      +    "dobropis",
      +    "zalohova_faktura",
      +    "vydana_faktura",
      +    "objednavka",
      +    "smlouva",
      +    "jine",
      +    "jsd",
      +    "vyuctovani"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / exported
      Added value: +{
      +  "description": "true = jen doklady uz nekdy exportovane do souboru (Pohoda XML, Excel, ...), false = jen dosud neexportovane",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / search / description
      Previous value: -"Fulltext: dodavatel, cislo dokladu, poznamka"New value: +"Fulltext: dodavatel, ICO, cislo dokladu, variabilni symbol"
    • addedInput schema / properties / source
      Added value: +{
      +  "description": "Odkud doklad prisel",
      +  "enum": [
      +    "upload",
      +    "email",
      +    "whatsapp",
      +    "api"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / status / enum
      Previous value: -[
      -  "PENDING",
      -  "APPROVED",
      -  "REJECTED",
      -  "ALL"
      -]New value: +[
      +  "PENDING",
      +  "APPROVED",
      +  "SENT",
      +  "ERROR",
      +  "REJECTED",
      +  "ALL"
      +]
    • changedInput schema / properties / type / description
      Previous value: -"Typ dokladu, napr. vydana_faktura"New value: +"Skupina typu z menu dashboardu, napr. prijate-faktury, uctenky"
    • addedInput schema / properties / unassigned
      Added value: +{
      +  "description": "true = jen doklady bez prirazene firmy",
      +  "type": "boolean"
      +}
  4. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive, closed-world behavior, so the bar is lower. The description nonetheless adds real context beyond them: results come back paginated and in a slimmed shape without document files (only hasImage), and per-VAT-rate amounts are in the document's own currency rather than a converted one. It omits that the default status filter is PENDING, which would surprise an agent scanning for all documents.

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?

Three tight sentences: purpose first, then return shape, then a caveat about currency. No filler or restated title. It could be marginally tighter by folding the currency note into the return-shape sentence, but nothing is wasted.

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

Completeness4/5

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

With 12 optional parameters and no output schema, the description usefully compensates by describing the return shape (paginated, slimmed, no files, hasImage) and the currency semantics of VAT amounts. What remains unstated is the default PENDING status and whether pagination exposes a total count, minor but relevant for a list tool.

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

Parameters3/5

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

Schema coverage is 92%, so the schema already documents nearly every parameter with examples and enums. The description only says filtering and fulltext exist in general terms and adds no syntax, combination rules, or precedence between type, documentType, companyId, and unassigned. Baseline 3 is appropriate when the schema carries the load.

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

Purpose4/5

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

The description names a specific operation and resource: a listing ('Vypis') of both received and issued documents (receipts, invoices) with filtering and fulltext search. An agent can tell it is a collection-query tool rather than a single-document fetch. It does not explicitly contrast itself with siblings such as get_document or search, so it stops short of a 5.

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

Usage Guidelines2/5

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

It states what the tool does but never says when to reach for it versus get_document (single record detail) or search. There are no exclusions, no prerequisites, and no guidance about the default status filter that would change results. Usage is only implied by the word 'Vypis'.

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