# POST /fieldagent

Operation ID: `mcp.mcpFieldagent`

POST /fieldagent

## Public method

`fieldAgent`

Signature: `mcp.fieldAgent(request)`

Return type: `Promise<JsonRpcSuccess<JsonValue>>`

## Authentication

Classification: **AUTHENTICATED**

Schemes: `bearerAuth`

## Prerequisites

None documented.

## HTTP

`POST /fieldagent`

## Path parameters

None.

## Query parameters

None.

## Body parameters

| Name | Type | Required | Format | Allowed values | Default | Nullable | Description |
|---|---|---:|---|---|---|---:|---|
| `body` | [`McpFieldagentRequest`](../models/McpFieldagentRequest.md) | Yes |  |  |  | No |  |

Request model: [`McpFieldagentRequest`](../models/McpFieldagentRequest.md)

## Request example

```json
{
  "id": "string",
  "jsonrpc": "2.0",
  "method": "initialize",
  "params": {
    "arguments": {},
    "name": "string"
  }
}
```

## Success responses

| Status | Shape | Content type | Description |
|---|---|---|---|
| `200` | [`McpFieldagentResponse`](../models/McpFieldagentResponse.md) | application/json | Successful Response |

## Success response examples

### 200

```json
{
  "id": "string",
  "jsonrpc": "2.0",
  "result": {}
}
```

## Common errors

| Status | Shape | Content type | Description |
|---|---|---|---|
| `401` | [`StandardErrorResponse`](../models/StandardErrorResponse.md) | application/json | Authorization required — missing or invalid Bearer JWT |

## Error examples

### 401 — Missing or invalid access token

```json
{
  "error": "Authorization required"
}
```

## NodeJS / TypeScript implementation

```ts
import { HCSDK } from "@healthcloudai/hc-sdk";
```

```ts
const request = {
  "id": "string",
  "jsonrpc": "2.0",
  "method": "initialize",
  "params": {
    "arguments": {},
    "name": "string"
  }
};

const result = await mcp.fieldAgent(request);
```

## cURL

```bash
curl -X POST \
  -H 'Authorization: Bearer <ACCESS_TOKEN>' \
  -H 'Content-Type: application/json' \
  -d '{"id":"string","jsonrpc":"2.0","method":"initialize","params":{"arguments":{},"name":"string"}}' \
  'https://dev-api-mcp.health.cloud/fieldagent'
```

## Notes

None.

## Prepared Test Console scenario

No canonical scenario is currently associated.

## Real response

No approved real integration response is currently published. Unapproved candidates are never rendered as examples.
