> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Probe a tool's endpoint and report whether it works

> A broken tool fails silently during a conversation. Non-safe methods are probed with OPTIONS so the probe cannot cause a side effect.

A broken tool fails silently during a conversation. Non-safe methods are probed with OPTIONS so the probe cannot cause a side effect.

### Path parameters

**id** `string (uuid)` *required*

The tool id.

### Request body

No request body.

### Response

`object`

**object** `string` *required*

Allowed values: `'function.test_result'`.

**function\_id** `string,null (uuid)` *required*

**endpoint** `string` *required*

The tool's stored endpoint URL.

**method** `string` *required*

The tool's configured HTTP method (upper-cased; `GET` when unset).

**probe\_method** `string` *required*

The method actually sent: `method` if it is GET/HEAD/OPTIONS, otherwise `OPTIONS`.

**ok** `boolean` *required*

True only for a 2xx status.

**verdict** `string` *required*

Allowed values: `'working'`, `'redirects'`, `'auth_failed'`, `'not_found'`, `'method_not_allowed'`, `'rate_limited'`, `'server_error'`, `'unexpected_status'`, `'timed_out'`, `'unreachable'`.

**status** `integer`

The HTTP status returned. Absent when the endpoint timed out or was unreachable.

**hint** `string`

What to fix. Present for every verdict except `working` and `unexpected_status`.

**note** `string`

Present only when `probe_method` differs from `method`: explains that reachability and auth were checked but the operation itself was not.

**duration\_ms** `integer` *required*

**response\_preview** `string,null`

The first 2000 characters of the response body. Absent when the endpoint timed out or was unreachable; null when the body was empty or unreadable. Maximum length: `2000`.

### Status codes

| Code | Meaning |
| - | - |
| `200` | The probe result. Non-safe methods (anything but GET/HEAD/OPTIONS) are probed with OPTIONS so the probe never causes a side effect; redirects are reported, not followed. |
| `401` | Missing, invalid, or expired API key. |
| `403` | The key lacks a required scope. |
| `404` | Not found, or not in the organization that owns the key. |
| `429` | Rate limit exceeded. |

### Access

| | |
| - | - |
| Required scope | `agents:read` |
| Rate limit | 10 requests per minute |

### Using this contract

Read the [source OpenAPI document](https://docs.stateset.com/spec/responsecx.json) for declared schemas and alternatives.
This page also includes documented corrections from the [spec overlays](https://github.com/stateset/docs/tree/main/spec/overlays).
Example IDs and values are illustrative; replace them with records from your workspace.

```bash cURL theme={null}
curl --silent --show-error --fail-with-body --request POST \
  --url 'https://response.stateset.com/api/v1/functions/{id}/test' \
  --header "Authorization: Bearer $RESPONSECX_API_KEY"
```

```json 200 theme={null}
{
  "object": "function.test_result",
  "function_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "endpoint": "https://example.com/webhooks/stateset",
  "method": "string",
  "probe_method": "string",
  "ok": true,
  "verdict": "working",
  "status": 1,
  "hint": "string",
  "note": "Two-person tent, green — replacement for damaged pole set.",
  "duration_ms": 8,
  "response_preview": "string"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.