---
outline: deep
---

# DF0049: Connector Call Requires Port and Tool

## Message

> The devframe_connect_call-tool tool requires { port: number, tool: string }.

## Cause

The `devframe connect` gateway tool `devframe_connect_call-tool` was invoked without a numeric `port` or a string `tool` name — the two fields that identify which instance to dial and which of its tools to call. The error crosses the MCP boundary as structured JSON, so the calling agent can self-correct.

## Example

```ts
// devframe_connect_call-tool({ tool: 'devframe_state_read' }) → DF0049 (missing port)
```

## Fix

Call `devframe_connect_list-instances` first — its result carries each instance's `port` and tool names — then retry with both fields.

## Source

- [`packages/devframe/src/cli/connect.ts`](https://github.com/devframes/devframe/blob/main/packages/devframe/src/cli/connect.ts) — `call()` throws this when the gateway arguments fail validation.
