Skip to content

Answers

Every operation answers JSON. Add ?format=text for the text the MCP tool gives a model: the same answer, written to be read.

Terminal window
curl -s "https://api.pandex.io/v1/document?format=text" \
-H "content-type: application/json" \
-d '{"id": "BW 7", "element": "7:668a", "at": "2010-01-01"}'

An answer is cut to max_tokens: 1,500 unless you set it, from 200 to 8,000. A cut answer says how to read on:

  • get_document gives next, to pass as from.
  • search and get_changes give the next offset.

Its document and element id, the title, the date, the issuer, the language, the address of the publisher’s copy, the day its wording took effect where the source says so, and how many documents cite it. The fields are listed for each operation in the API reference.