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

# Govern the Weather Capability

> Test Allow, Observe, Review, and Block with the weather examples.

Choose one capability:

* Agent example: `get_weather(city)`;
* MCP example: `get_forecast(latitude, longitude)`.

## 1. Confirm Discovery

Open the Agent or MCP provider and confirm the capability name and input fields.

CLI examples:

```bash theme={null}
gforge agents discovery <agent-id> -o yaml
gforge providers inventory <provider-id> -o yaml
```

## 2. Create a Gateway

In **Gateways**, select the Agent or MCP provider. Choose the capability and set one action.

Start with **Observe** so the capability still runs. Save the Gateway and send the same weather request again.

## 3. Test each action

| Action  | Expected result                                                       |
| ------- | --------------------------------------------------------------------- |
| Allow   | Capability runs normally                                              |
| Observe | Capability runs and the Trace marks the call as monitored             |
| Review  | Operator Task is created; capability waits for the decision           |
| Block   | Capability does not run; user receives the configured policy response |

For the LangChain example, send:

```text theme={null}
What is the weather in Ottawa?
```

For the Weather MCP in Inspector, call:

```text theme={null}
get_forecast(latitude=38.8977, longitude=-77.0365)
```

## 4. Verify in the Trace

Check:

* capability name and input;
* Gateway action;
* whether the capability executed;
* output when it ran;
* final user response.

For Block or rejected Review, there must be no capability output.

> **Screenshot placeholder**\
> Add `/images/guides/weather-governance-trace.png` showing the Gateway decision and execution state.


## Related topics

- [Gateway Rules](/concepts/governance.md)
- [LangChain Agent Example](/examples/langchain-agent.md)
- [Gateways](/governance/gateways.md)
- [Discovery](/concepts/discovery.md)
