# When the docs do not say

## Where to ask

These pages show the common paths. When you want something they do not show, there are three places to ask before you fall back on trial and error:

- [The instance you run](https://trafficparrot.com/documentation/5.67.x/when-the-docs-do-not-say.html#ask-the-instance), which describes the keys, helpers and matchers it has, and says why a request got no answer.
- [An AI assistant](https://trafficparrot.com/documentation/5.67.x/when-the-docs-do-not-say.html#ask-an-assistant), which can read these pages and your instance for you.
- [Us](https://trafficparrot.com/documentation/5.67.x/when-the-docs-do-not-say.html#ask-us).

## Ask the instance you run

A running instance and its install directory describe the version you have. The addresses below are on the management port, `8080` unless you changed it.

| You want to know | Where to look |
| --- | --- |
| Which keys a mapping file can carry, and what each one takes | The mapping explorer, at `http://localhost:8080/explorer/index.html` and under **Help**. It lists every key of each format with its description, allowed values and an example, and its search turns a Java DSL name such as `urlEqualTo` into the key to write. |
| Whether a mapping file is right, before it is loaded | The [`validate` command](https://trafficparrot.com/documentation/5.67.x/mappings-by-hand.html#validate), which names each file and key that does not fit its schema. The mapping explorer runs the same check on a mapping you paste into it. |
| Which helpers and matchers there are, and how each is written | `http://localhost:8080/helpers-catalogue.json` and `http://localhost:8080/matchers-catalogue.json` list the built-in helpers and matchers, each with a description and a snippet; a matcher's `mappingKey` is the key a mapping file takes. The mapping editors' [Available helpers](https://trafficparrot.com/documentation/5.67.x/dynamic.html#available-helpers-panel) panel shows the same, with snippets to copy. |
| Why an HTTP request got no answer, or the wrong one | The near misses in the Request Log, which compare the request with the closest mappings field by field. [When a request gets no answer](https://trafficparrot.com/documentation/5.67.x/mappings-by-hand.html#no-answer) has the call that lists them for a script. |
| Why a mapping file or an extension is missing after a start | The line the start script prints, and the `ERROR` lines in `logs/trafficparrot.log`, which name each item left out and the reason. See [Logging](https://trafficparrot.com/documentation/5.67.x/logging.html#left-out-at-start). |
| What a setting does, and which values it takes | The comments in `trafficparrot.properties`, in the install directory: many settings have one above them that says what the values mean. The [Configuration Reference](https://trafficparrot.com/documentation/5.67.x/properties.html) describes the settings by area. |
| What a Management API call takes and returns | The [Management API reference](https://trafficparrot.com/documentation/5.67.x/openapi/index.html) in this documentation, with the [specification](https://trafficparrot.com/documentation/5.67.x/downloads/openapi.yaml) behind it to load into your own client. |
| What an extension can call | The [SDK Javadoc](https://trafficparrot.com/documentation/5.67.x/sdk-javadoc/index.html). [Custom extensions](https://trafficparrot.com/documentation/5.67.x/dynamic.html#write-your-own) shows how to write one, with a project to start from. |
| What Traffic Parrot did at a given moment | `logs/trafficparrot.log`. [Logging](https://trafficparrot.com/documentation/5.67.x/logging.html#change-log-level) says how to make it record more. |

The other protocols say why in other places. An unmatched gRPC call is answered with the status `UNKNOWN`, whose message compares the call with the closest mapping, and the log prints the same; see the [gRPC Requests page](https://trafficparrot.com/documentation/5.67.x/grpc.html#requests-page). For [JMS](https://trafficparrot.com/documentation/5.67.x/jms.html#requests-page), [IBM MQ](https://trafficparrot.com/documentation/5.67.x/ibmmq.html#requests-page) and [file](https://trafficparrot.com/documentation/5.67.x/filemessage.html#requests-page) messages, the Requests page of the protocol lists each unmatched message with its near misses once `trafficparrot.messaging.diagnostics.enabled` is `true`. It is `false` by default.

This documentation holds a [copy of the mapping explorer](https://trafficparrot.com/documentation/5.67.x/mapping-explorer/explorer/index.html), for when you have no instance running.

By default, a running instance does not check a mapping file against its schema, and it drops a key it does not know without a word. When a key seems to do nothing, run [`validate`](https://trafficparrot.com/documentation/5.67.x/mappings-by-hand.html#validate) on the file before you conclude anything about the key.

A start can make the check itself. With `trafficparrot.virtualservice.messaging.check.mapping.schema.on.startup` set to `true`, Traffic Parrot does not start while a JMS, IBM MQ or file mapping fails its schema, and `trafficparrot.virtualservice.grpc.check.mapping.schema.on.startup` does the same for a gRPC mapping that does not fit its proto file. Both are `false` by default, and the [Configuration Reference](https://trafficparrot.com/documentation/5.67.x/properties.html) describes them.

## Ask an AI assistant

An AI assistant can search all of these pages for you and look at your instance. It answers better with three things in hand.

- **The brief.** The install directory holds `AGENTS.md`, written for the assistant: the ground rules, where the instance serves its schemas, and how to check a mapping and load it. [Give your agent the brief](https://trafficparrot.com/documentation/5.67.x/generate-mocks-with-ai-agent.html#agents-md) says how to hand it over.
- **These pages as Markdown.** The pages of this documentation are also served as Markdown, at the same address with `.md` in place of `.html`, and the [notes for AI assistants](https://trafficparrot.com/llms.txt) list them. An assistant that fetches a page answers from what the page says, not from what it remembers.
- **Your instance.** Traffic Parrot serves an MCP endpoint at `http://localhost:8080/mcp`. An assistant connected to it reads the HTTP mappings the instance is serving and the requests it has received, can test one against the other, and can change the mappings, which writes the change to the scenario's mapping files. [Connect your assistant with MCP](https://trafficparrot.com/documentation/5.67.x/generate-mocks-with-ai-agent.html#mcp) has the steps, and the [MCP endpoint reference](https://trafficparrot.com/documentation/5.67.x/mcp.html) lists the tools.

An assistant can still be wrong, and sound sure. Check a mapping it wrote with `validate`, and a key, helper or matcher it names against the explorer and the catalogues above.

## Ask us

When none of that answers it, ask us: email [support@trafficparrot.com](mailto:support@trafficparrot.com), or start a chat on the [support page](https://trafficparrot.com/support.html). In the web UI, **Help** has a **Send feedback** link that opens the same chat with your version and the page you were on already in the message.

It helps to send:

- the Traffic Parrot version you run;
- what you were trying to do, and what happened instead;
- the mapping file, and the request or message it should have answered;
- the lines of `logs/trafficparrot.log` from that moment.

Take passwords, tokens and personal data out first.

The licence agreements do not allow decompiling Traffic Parrot, so when the answer is in none of these places, ask us instead of opening a jar.

When one of these pages left out what you needed, say so. The **Missing something?** line at the foot of each reference page opens the support page with the page's address already in the message.
