Skip to main content
Glama

Przeglądanie aktów z rocznika

browse_acts
Read-onlyIdempotent

Browse all legal acts issued by a chosen publisher in a specified year. Get a paginated result list, then filter to find relevant documents.

Instructions

Przeglądaj wszystkie akty prawne wydane przez wydawcę w danym roku.

Kiedy użyć: Gdy chcesz przeglądać cały rocznik wydawcy bez filtrowania. Kiedy NIE używać: Gdy szukasz po słowach kluczowych lub tytule → użyj search_legal_acts.

Zwraca listę aktów (domyślnie max 20). Wyniki zapisywane są do result_set_id — użyj filter_results aby je zawęzić.

Przykłady:

  • browse_acts(publisher="DU", year=2024) - Wszystkie akty DU z 2024

  • browse_acts(publisher="MP", year=2024) - Wszystkie akty MP z 2024

  • browse_acts(publisher="DU", year=2024, detail_level="full") - Ze szczegółami

  • browse_acts(publisher="DU", year=2024, detail_level="minimal") - Tylko podstawowe info

  • browse_acts(publisher="DU", year=2000) - Akty z roku 2000

  • browse_acts(publisher="DU", year=2024, limit=20, offset=20) - Druga strona rocznika

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
yearYesRok publikacji (np. 2024).
limitNoMaksymalna liczba wyników do zwrócenia. Domyślnie 20, maksymalnie 100 — wartości powyżej są przycinane, tak samo jak w pozostałych narzędziach listujących. Podawaj najmniejszą wystarczającą wartość.
offsetNoLiczba wyników do pominięcia (paginacja). Użyj razem z limit. Domyślnie 0.
publisherYesKod wydawcy: 'DU' (Dziennik Ustaw) lub 'MP' (Monitor Polski).
detail_levelNoPoziom szczegółowości: 'minimal' (ELI, tytuł, status), 'standard' (+ typ, daty, obowiązywanie), 'full' (wszystkie pola). Domyślnie 'standard'.standard

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesThe actual response data
hintsNoSuggested next steps

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv4.4.0
    • removedOutput schema / properties / metadata
      Removed value: -{
      -  "additionalProperties": true,
      -  "description": "Additional metadata",
      -  "title": "Metadata",
      -  "type": "object"
      -}
  2. Changed5 schema fields changedv4.2.0
    • changedInput schema / properties / limit / description
      Previous value: -"Maksymalna liczba wyników do zwrócenia. Domyślnie 20, maksymalnie 100 — wartości powyżej są przycinane, tak samo jak w pozostałych narzędziach listujących."New value: +"Maksymalna liczba wyników do zwrócenia. Domyślnie 20, maksymalnie 100 — wartości powyżej są przycinane, tak samo jak w pozostałych narzędziach listujących. Podawaj najmniejszą wystarczającą wartość."
    • addedOutput schema / $defs / ActSummaryOutput / properties / effective_date / description
      Added value: +"Data wejścia w życie (entryIntoForce)."
    • addedOutput schema / $defs / ResultSetScope
      Added value: +{
      +  "description": "Zasięg zestawu wyników względem korpusu, z którego pochodzi.",
      +  "properties": {
      +    "corpus_count": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Rozmiar korpusu, z którego pochodzi zestaw. None, gdy nieznany — tak jest dla zestawu powstałego z filtrowania okna: wiadomo, ile rekordów trafiło w oknie, nie wiadomo, ile rekordów korpusu pasowałoby do tych samych kryteriów.",
      +      "title": "Corpus Count"
      +    },
      +    "scope": {
      +      "$ref": "#/$defs/SetScope",
      +      "description": "'complete' — zestaw zawiera każdy rekord pasujący do zapytania w chwili wywołania. 'page' — zestaw jest oknem wyciętym z większego korpusu, więc brak dopasowania w filter_results NIE dowodzi, że akt nie istnieje w zbiorze."
      +    },
      +    "stored_count": {
      +      "description": "Liczba rekordów w tym zestawie.",
      +      "title": "Stored Count",
      +      "type": "integer"
      +    },
      +    "window_offset": {
      +      "description": "Pozycja początku okna w korpusie. Zero dla zestawu kompletnego.",
      +      "title": "Window Offset",
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "scope",
      +    "stored_count",
      +    "window_offset"
      +  ],
      +  "title": "ResultSetScope",
      +  "type": "object"
      +}
    • addedOutput schema / $defs / SearchOutput / properties / result_set_scope
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/$defs/ResultSetScope"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Zasięg zapisanego zestawu wyników. None, gdy zestaw nie powstał (zero wyników). Wartość 'page' oznacza, że filter_results zawęża okno, a nie cały zbiór."
      +}
    • addedOutput schema / $defs / SetScope
      Added value: +{
      +  "description": "Whether a stored result set is the whole answer or a window into it.",
      +  "enum": [
      +    "complete",
      +    "page"
      +  ],
      +  "title": "SetScope",
      +  "type": "string"
      +}
  3. Changed1 schema field changedv4.0.2
    • changedInput schema / properties / limit / description
      Previous value: -"Maksymalna liczba wyników do zwrócenia. Domyślnie 20. Bez górnej granicy — w odróżnieniu od pozostałych narzędzi listujących, gdzie limit jest przycinany do 100."New value: +"Maksymalna liczba wyników do zwrócenia. Domyślnie 20, maksymalnie 100 — wartości powyżej są przycinane, tak samo jak w pozostałych narzędziach listujących."
  4. Changed15 schema fields changedv3.1.0
    • addedInput schema / properties / detail_level / title
      Added value: +"Detail Level"
    • changedInput schema / properties / limit / description
      Previous value: -"Maksymalna liczba wyników do zwrócenia. Domyślnie 20."New value: +"Maksymalna liczba wyników do zwrócenia. Domyślnie 20. Bez górnej granicy — w odróżnieniu od pozostałych narzędzi listujących, gdzie limit jest przycinany do 100."
    • addedInput schema / properties / limit / title
      Added value: +"Limit"
    • addedInput schema / properties / offset
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Liczba wyników do pominięcia (paginacja). Użyj razem z limit. Domyślnie 0.",
      +  "title": "Offset"
      +}
    • addedInput schema / properties / publisher / title
      Added value: +"Publisher"
    • addedInput schema / properties / year / title
      Added value: +"Year"
    • addedInput schema / title
      Added value: +"browse_actsArguments"
    • addedOutput schema / $defs
      Added value: +{
      +  "ActSummaryOutput": {
      +    "description": "Formatted output for act summary.",
      +    "properties": {
      +      "effective_date": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Effective Date"
      +      },
      +      "eli": {
      +        "title": "Eli",
      +        "type": "string"
      +      },
      +      "in_force": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "In Force"
      +      },
      +      "pos": {
      +        "title": "Pos",
      +        "type": "integer"
      +      },
      +      "promulgation_date": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Promulgation Date"
      +      },
      +      "publisher": {
      +        "title": "Publisher",
      +        "type": "string"
      +      },
      +      "status": {
      +        "title": "Status",
      +        "type": "string"
      +      },
      +      "title": {
      +        "title": "Title",
      +        "type": "string"
      +      },
      +      "type": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Type"
      +      },
      +      "year": {
      +        "title": "Year",
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "eli",
      +      "publisher",
      +      "year",
      +      "pos",
      +      "title",
      +      "status"
      +    ],
      +    "title": "ActSummaryOutput",
      +    "type": "object"
      +  },
      +  "Hint": {
      +    "description": "Hint for next actions or related tools.",
      +    "properties": {
      +      "message": {
      +        "description": "Hint message",
      +        "title": "Message",
      +        "type": "string"
      +      },
      +      "parameters": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": true,
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Suggested parameters",
      +        "title": "Parameters"
      +      },
      +      "tool": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Related tool name",
      +        "title": "Tool"
      +      }
      +    },
      +    "required": [
      +      "message"
      +    ],
      +    "title": "Hint",
      +    "type": "object"
      +  },
      +  "PageInfo": {
      +    "description": "Metadata describing one bounded response page.",
      +    "properties": {
      +      "limit": {
      +        "minimum": 0,
      +        "title": "Limit",
      +        "type": "integer"
      +      },
      +      "next_offset": {
      +        "anyOf": [
      +          {
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Next Offset"
      +      },
      +      "offset": {
      +        "minimum": 0,
      +        "title": "Offset",
      +        "type": "integer"
      +      },
      +      "returned_count": {
      +        "minimum": 0,
      +        "title": "Returned Count",
      +        "type": "integer"
      +      },
      +      "total_count": {
      +        "minimum": 0,
      +        "title": "Total Count",
      +        "type": "integer"
      +      },
      +      "unit": {
      +        "$ref": "#/$defs/PageUnit"
      +      },
      +      "was_truncated": {
      +        "title": "Was Truncated",
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "limit",
      +      "offset",
      +      "returned_count",
      +      "total_count",
      +      "was_truncated",
      +      "unit"
      +    ],
      +    "title": "PageInfo",
      +    "type": "object"
      +  },
      +  "PageUnit": {
      +    "description": "Unit represented by a page.",
      +    "enum": [
      +      "items",
      +      "characters"
      +    ],
      +    "title": "PageUnit",
      +    "type": "string"
      +  },
      +  "SearchOutput": {
      +    "description": "Output for search results.",
      +    "properties": {
      +      "page_info": {
      +        "$ref": "#/$defs/PageInfo"
      +      },
      +      "query_summary": {
      +        "title": "Query Summary",
      +        "type": "string"
      +      },
      +      "result_set_id": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Result Set Id"
      +      },
      +      "results": {
      +        "items": {
      +          "$ref": "#/$defs/ActSummaryOutput"
      +        },
      +        "title": "Results",
      +        "type": "array"
      +      },
      +      "returned_count": {
      +        "title": "Returned Count",
      +        "type": "integer"
      +      },
      +      "total_count": {
      +        "title": "Total Count",
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "results",
      +      "total_count",
      +      "query_summary",
      +      "returned_count",
      +      "page_info"
      +    ],
      +    "title": "SearchOutput",
      +    "type": "object"
      +  }
      +}
    • addedOutput schema / properties / data
      Added value: +{
      +  "$ref": "#/$defs/SearchOutput",
      +  "description": "The actual response data"
      +}
    • addedOutput schema / properties / hints
      Added value: +{
      +  "description": "Suggested next steps",
      +  "items": {
      +    "$ref": "#/$defs/Hint"
      +  },
      +  "title": "Hints",
      +  "type": "array"
      +}
    • addedOutput schema / properties / metadata
      Added value: +{
      +  "additionalProperties": true,
      +  "description": "Additional metadata",
      +  "title": "Metadata",
      +  "type": "object"
      +}
    • removedOutput schema / properties / result
      Removed value: -{
      -  "type": "string"
      -}
    • changedOutput schema / required
      Previous value: -[
      -  "result"
      -]New value: +[
      +  "data"
      +]
    • addedOutput schema / title
      Added value: +"EnrichedResponse[SearchOutput]"
    • removedOutput schema / x-fastmcp-wrap-result
      Removed value: -true
  5. Addedv1.0.2

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover readOnly, openWorld, idempotent, and non-destructive hints. The description adds that results are saved to result_set_id and that the default limit is 20 (max 100), which are useful behavioral details beyond the structured data. No contradictions found.

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

Conciseness5/5

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

The description is well-structured: purpose, usage guidance, return behavior, and examples. Every sentence earns its place, and the content is front-loaded with the core purpose. No fluff or redundancy.

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?

The description fully covers the tool's functionality, including usage alternatives, return format, result-set persistence, and parameter defaults. Given the comprehensive schema and annotations, nothing essential is missing for an agent to call the tool correctly.

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 description coverage is 100%, so the baseline is 3. The description provides examples that illustrate parameter usage but does not add new semantic meaning beyond what the schema already documents. The examples are helpful but not essential for understanding parameter meaning.

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?

The description clearly states the tool browses all legal acts issued by a publisher in a given year, distinguishing it from search_legal_acts. It specifies the verb (przeglądaj) and the resource (akty prawne), and explicitly mentions the return type (list) and default limit.

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?

The description gives explicit when-to-use and when-not-to-use guidance, naming search_legal_acts as the alternative for keyword/title searches. It also mentions using filter_results to narrow results, providing clear routing and post-processing context.

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