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

# Model Context Protocol (MCP)

> What MCP is, which parts of it Noorle implements, and how the tools you bind become MCP tools on a gateway

The **Model Context Protocol** is an open standard for how a model-driven client discovers and calls tools. Noorle uses it as the interface for every capability you bind to a gateway.

## The idea

Before a standard existed, every tool integration was bespoke: its own schema shape, its own error format, no discovery. MCP fixes the shape of that conversation — a client asks a server what it has, reads typed schemas back, and calls by name.

That is the whole value proposition, and it is why Noorle's gateway surface is an MCP server rather than a REST API of our own design: your tools work with any MCP client, and swapping clients does not mean rewriting integrations.

## What MCP defines

The specification has several primitives. **Noorle implements tools.**

| Primitive | Noorle gateway support |
| - | - |
| **Tools** — callable functions with typed input schemas | Implemented |
| **Resources** — read-only data a server exposes by URI | Not implemented. `resources/list` returns empty; `resources/read` returns method-not-found |
| **Prompts** — reusable prompt templates | Not implemented. `prompts/list` returns empty; `prompts/get` returns method-not-found |
| **Logging**, **completions** | Not implemented |

A gateway advertises the tools capability and nothing else. If you are building a client against a Noorle gateway, plan for tools only.

## A tool, concretely

Every capability you bind — built-in, plugin, or connector — becomes an MCP tool with a name, a description, and a JSON Schema for its input:

```json theme={"dark"}
{
  "name": "web_search",
  "description": "Search the web",
  "inputSchema": {
    "type": "object",
    "properties": {
      "query": { "type": "string" }
    },
    "required": ["query"]
  }
}
```

The name is `{namespace}_{tool}`, where the namespace comes from the capability row. See [Capabilities](https://noorle.com/docs/learn/concepts/capabilities.md#how-a-capability-becomes-a-tool-name) for how names are formed.

## Noorle's additions to a tool listing

Two things ride along on a Noorle `tools/list` response that a generic MCP server would not send.

**A risk hint.** Each tool carries the spec-native `readOnlyHint`, derived from the tool's risk tier. Read-tier tools are marked read-only.

**An autonomy outcome.** A `dev.noorle/autonomy` entry in `_meta` carries an `outcome` telling the caller what would happen if it called that tool right now. Four values:

| `outcome` | Meaning |
| - | - |
| `allow` | Would execute autonomously under the current policy |
| `deny` | Deterministic deny |
| `may_deny_on_args` | An argument-predicated rule is in play, so no static verdict exists |
| `ungated` | The execution-policy tree is not enforced at this invocation point |

It carries an outcome and no reason — the listing is reachable without authentication on a public gateway, and a reason would leak the account's policy.

Both are hints. The authoritative decision is made at dispatch, every time.

## Transport

Noorle serves MCP over **Streamable HTTP**. That is the only transport.

There is no separate SSE endpoint, no long-polling fallback, and no WebSocket. Responses are delivered as `text/event-stream` frames on the POST response, which is why a request must accept both `application/json` and `text/event-stream`.

See [MCP Gateways](https://noorle.com/docs/learn/concepts/mcp-gateways.md#transport) for the request/response details, protocol-version negotiation, and session posture.

## The other direction: MCP as a client

Noorle also *consumes* MCP. A **connector** can point at an MCP server — one from the public registry, or your own — and its tools are re-published through your gateway alongside everything else.

Outbound MCP connections use Streamable HTTP, and only Streamable HTTP. There is no stdio execution. A server from the public registry has to publish a Streamable HTTP remote to be usable as a connector.

See [Connectors](https://noorle.com/docs/learn/concepts/connectors.md).

## Tool presentation

A gateway with fifty tools is a worse gateway than one with eight, because tool choice degrades as the list grows. Noorle can present the same bound tools in four different ways — every tool listed directly, three discovery meta-tools, one natural-language dispatcher, or an automatic choice between the first two based on size.

See [Tool Presentation](https://noorle.com/docs/learn/concepts/tool-presentation.md).

## Takeaways

* MCP standardizes discovery and invocation; your tools are not locked to one client.
* Noorle gateways implement **tools**. Not resources, not prompts.
* Transport is Streamable HTTP only.
* A tool listing is per-caller: membership and annotations both depend on who is asking.

***

Next: [MCP Gateways](https://noorle.com/docs/learn/concepts/mcp-gateways.md) — the endpoint that publishes your tools.


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