# diagnose

Score how faithfully a reproduction matches an original (MAE / PSNR / exact-match % / stray px). Returns: A JSON string with the fidelity metrics.

Agent View of the PolicyLayer registry record for `diagnose`. HTML page: https://policylayer.com/tools/design-reprise-reprise/diagnose

## Facts

- Tool: `diagnose`
- Server: Reprise (`https://tepesama-reprise-mcp.hf.space/gradio_api/mcp/http`) — https://policylayer.com/tools/design-reprise-reprise.md
- Homepage: https://github.com/https://tepesama-reprise-mcp.hf.space/gradio_api/mcp/http
- Risk category: Read (Low risk)
- Registry record: grade B, identity unverified
- Server auth posture: open
- Server rate-limited: no
- Parameters: 2
- Recommended policy verdict: Allowed

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `original` | string | no | The original image as an http(s) URL or a base64 data URL. |
| `reproduction` | string | no | The reproduced image to compare, as an http(s) URL or a base64 data URL. |

Parameters from the server's own tool schema.

## Example call (MCP tools/call, JSON-RPC 2.0)

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

## Why diagnose is rated Low

This tool performs comparison and analysis of image fidelity metrics (MAE, PSNR, exact-match percentage, stray pixels) between an original and reproduction. It retrieves and computes metrics without modifying, creating, deleting, or executing external operations. It is a read-only diagnostic function that returns data about the quality of a match.

From the tool's own definition: "Tool name is 'diagnose' and description states it 'Score[s] how faithfully a reproduction matches an original' and 'Returns: A JSON string with the fidelity metrics' — purely a measurement/comparison operation with no side effects."

## Use case

AI agents call diagnose to retrieve information from Reprise without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.

## Recommended policy (PolicyLayer)

Verdict: **Allowed**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Reprise:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "diagnose": {}
  }
}
```

## Other tools on Reprise (2)

- `reproduce` — Execute — https://policylayer.com/tools/design-reprise-reprise/reproduce.md
- `autodetect` — Read — https://policylayer.com/tools/design-reprise-reprise/autodetect.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=design-reprise-reprise · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/design-reprise-reprise
