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

# Send an MCP request

The endpoint accepts one JSON-RPC message in each POST. Send
`Accept: application/json, text/event-stream` and `Content-Type: application/json`.
Send `MCP-Protocol-Version` and `Mcp-Method` matching the body. For `tools/call`,
`prompts/get` and `resources/read`, also send `Mcp-Name` matching
`params.name` or `params.uri`. Non-ASCII names use the Streamable HTTP Base64
sentinel. For a tool argument annotated with `x-mcp-header`, also send its
`Mcp-Param-*` header whenever the body contains a non-null value. [Streamable HTTP specification](https://modelcontextprotocol.io/specification/2026-07-28/basic/transports/streamable-http)

```json theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "search",
    "arguments": { "q": "quarterly results" },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}
```

## Read the response

Each successful result carries the server identity in
`_meta["io.modelcontextprotocol/serverInfo"]`. Use a protocol error's code
and detail to decide how to correct the request.

| Condition | Response |
| - | - |
| Missing, malformed or mismatched mirrored HTTP headers | HTTP 400, `-32020` |
| Missing protocol metadata | HTTP 400, `-32602` |
| Unsupported protocol version | HTTP 400, `-32022` with `supported` and `requested` |
| Required client capability was undeclared | HTTP 400, `-32021` with `requiredCapabilities` |
| Unknown method | HTTP 404, `-32601` |
| Unknown resource | HTTP 200, `-32602` with its `uri` |
| Accepted cancellation notification | HTTP 202 with an empty body |

A completed tool result has `resultType: "complete"`. A refused call is a
completed result with `isError: true`. Its text is `<code>: <message>`, and
`_meta["com.bijection/error"]` carries the flat refusal `{ code, reason?,
message, guard? }` for a host code such as `Disallowed`, `Forbidden`,
`Absent` or `Invalid`, with its public reason, or `{ kind: "app", code,
message, data? }` for one of the function's declared `refuses`, with the
payload it declares. Nothing the refused call wrote commits.
[Refusals](https://docs.bijection.com/mcp/native-tools.md#refusals)

A lost HTTP reply leaves the result unknown. To retry a mutation tool
safely, send the same request with the same
`params._meta["com.bijection/once"]`: the host answers it with the first
call's result. [Retries answer once](https://docs.bijection.com/mcp/native-tools.md#retries-answer-once)

Catalog list methods return an opaque `nextCursor` when there are more
results. Pass it back to the same method as `params.cursor`. Start again
without a cursor if the catalog changed. For a result with
`resultType: "input_required"`, retry the same method and arguments with a
fresh JSON-RPC ID, the answers under `params.inputResponses`, and the exact
`params.requestState` when the server supplied it.


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