# Standard tools and tool learning: Exact answers from tools that leave a receipt.

Seven ready-made tools handle statistics, units, time zones, JSON and CSV structure, checksums and public web reads, each run with a receipt. Duplex also learns which tool fits which job.

Source: https://www.matterspace.ai/duplex/docs/tools

## For agents

### Running a registered tool
`duplex_tool {tool, input}` when the key may run tools (check `duplex_status {show: "capabilities"}`). Report the receipt: tool, input or fingerprint, time, output or error, and `ran`. Keep the `operation` ID; if the reply is lost, check it before running again.

### Standard tools
`number_stats`, `unit_convert`, `time_convert`, `json_summary`, `csv_summary`, `text_checksum`, `public_https_get`. Always send explicit units and time zones. Keep units with results.

### Tool learning
Record what worked with `duplex_learn {what: "tools"}` from real traces. Ask for suggestions with `duplex_context {include: ["tools"]}`.

### Never
- Never present a suggested tool as having run.
- Never attribute an answer to a tool that was unavailable.
- Never repeat a tool call with external effects because its record is late. Check the operation first.

Where to find more in the MatterSpace Duplex docs:
- Standard tools and tool learning, this topic in full: https://www.matterspace.ai/duplex/docs/tools.md
- Every prompt, and where to paste the standing ones: https://www.matterspace.ai/duplex/docs/prompts.md
- Exact tools, operations, settings and answers: https://www.matterspace.ai/duplex/docs/reference.md
- Errors and what to do about them: https://www.matterspace.ai/duplex/docs/troubleshooting.md
- Every docs page, with what it covers: https://www.matterspace.ai/duplex/docs/llms.txt

## For people

### Who actually ran it?

A request can involve three different executors: your AI using one of its own tools, Duplex running a tool registered with the service, or a separate agent your organization authorized, working in its own scope. Know which one acted, and which only reported, before you read the result.

### The seven standard tools

An administrator controls who may run them. Check which tools are registered and permitted on your own connection. If a conversion depends on your organization’s own convention, name its source rather than assuming the standard tool follows it.

| Tool | Give it, and check |
| --- | --- |
| number_stats | The numbers actually in scope. Make sure labels, comments and blanks didn’t become numbers. |
| unit_convert | The value, its unit and the target unit. Length, mass, time, temperature, area, volume, speed, pressure, energy, power, data size, angle and frequency. Keep the unit with the result. |
| time_convert | The time, its zone and the target zone. Check the date when crossing midnight, and which input was sent for an ambiguous local time. |
| json_summary | JSON content or a supported public address. It shows structure; the correctness of any value is a separate check. |
| csv_summary | A CSV table inline or by public address. Compare rows and columns with what you expected. |
| text_checksum | The exact content to compare. Line endings and spacing count. |
| public_https_get | A public HTTPS address, where outbound access is allowed. Private addresses and air-gapped installations are outside this path. |

### Read the receipt

An assistant saying a tool would suit the job is not a run. Look for the tool name, purpose, input or its fingerprint, time, and output or error. A tool can execute and still report an invalid input: the receipt then records a real attempt.

The tool catalog’s last check describes the tool. The receipt tells you what this input returned at that moment. If a connection drops, read the operation record before starting another run.

### Teach which tool fits

Dispatch of a registered tool is claimed at most once for the same operation, but a claimed dispatch doesn’t prove the tool produced the right number or changed an outside record. Read the result, check it against what you wanted, and read the audit entry.

| You want to | What to give |
| --- | --- |
| Record tool experience | The situation, the tool and the effect seen. A run Duplex witnessed counts more than an imported account. |
| Learn from earlier use | Real execution traces. One failure isn’t a verdict on a tool. |
| Get a suggestion | The situation. You get ranked candidates; a name in the answer is not a receipt. |

## Prompts

### Convert with a receipt (ask your AI)

```text
Use the Duplex unit_convert tool to convert <value> <unit> to <target unit>. Show me the receipt: the input sent, the output with its unit and the time.

Where to find more in the MatterSpace Duplex docs:
- Standard tools and tool learning, this topic in full: https://www.matterspace.ai/duplex/docs/tools.md
- Every prompt, and where to paste the standing ones: https://www.matterspace.ai/duplex/docs/prompts.md
- Exact tools, operations, settings and answers: https://www.matterspace.ai/duplex/docs/reference.md
- Errors and what to do about them: https://www.matterspace.ai/duplex/docs/troubleshooting.md
- Every docs page, with what it covers: https://www.matterspace.ai/duplex/docs/llms.txt
```

### Check a CSV's structure (ask your AI)

```text
Run the Duplex csv_summary tool on this table and compare the rows and columns it reports with what I expect: <expected structure>. Tell me which file version you sent.

Where to find more in the MatterSpace Duplex docs:
- Standard tools and tool learning, this topic in full: https://www.matterspace.ai/duplex/docs/tools.md
- Every prompt, and where to paste the standing ones: https://www.matterspace.ai/duplex/docs/prompts.md
- Exact tools, operations, settings and answers: https://www.matterspace.ai/duplex/docs/reference.md
- Errors and what to do about them: https://www.matterspace.ai/duplex/docs/troubleshooting.md
- Every docs page, with what it covers: https://www.matterspace.ai/duplex/docs/llms.txt
```

### Did a tool really run? (ask your AI)

```text
For the result you just gave me, which executor produced it: your own tool, a Duplex registered tool, or another agent? If it was a Duplex tool, show me the receipt.

Where to find more in the MatterSpace Duplex docs:
- Standard tools and tool learning, this topic in full: https://www.matterspace.ai/duplex/docs/tools.md
- Every prompt, and where to paste the standing ones: https://www.matterspace.ai/duplex/docs/prompts.md
- Exact tools, operations, settings and answers: https://www.matterspace.ai/duplex/docs/reference.md
- Errors and what to do about them: https://www.matterspace.ai/duplex/docs/troubleshooting.md
- Every docs page, with what it covers: https://www.matterspace.ai/duplex/docs/llms.txt
```
