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

> ## Agent Instructions
> Melso product MCP: https://melso.ai/api/mcp (OAuth; one company per grant). REST: https://melso.ai. Documentation-search MCP: https://docs.melso.ai/mcp. The docs search server does not act on customer accounts.
>
> Use the live tool schema and respect company membership. Ask the person to authorize the exact fiscal document version in the signed-in app. A professional prepares and files included returns after authorization; AI does not file alone. A prepared file or approval receipt is not evidence of filing. Never claim completion from an accepted Task or Run. Keep credentials out of chat and logs. Agents features are internal or by private invitation.

# automations_update

> Input, output and examples for the automations_update MCP tool.

<Info>Melso Agents is available only internally or by private invitation. Agents-specific features require existing access. For the autónomo fiscal service, see [Get started](/essentials/quickstart).</Info>

Edit an Automation definition, including its title and prompt/instructions. Requires company edit access. Omitted fields are preserved; this does not start a run. Read again after each successful edit.

**Availability:** Autónomo / Empresa / Agents invitation.

**Catalog:** Advanced (`tools_search`, then `tools_call`).

The live catalog is authoritative: company type, membership, plan, connected apps and execution context can narrow this contract. [Understand access](/mcp/permissions).

## Input

### Agents schema

```json theme={null}
{
  "additionalProperties": false,
  "properties": {
    "area_id": {
      "description": "Area UUID. Empty clears the Area and uses the company root.",
      "type": "string"
    },
    "description": {
      "description": "Prompt / instructions.",
      "type": "string"
    },
    "harness": {
      "description": "Harness from workspace_status execution: melso (Melso, no computer) or a Cloud CLI such as codex or claude.",
      "type": "string"
    },
    "id": {
      "description": "Automation UUID.",
      "type": "string"
    },
    "idempotency_key": {
      "description": "Optional unique key for this edit; reuse only for retries of the same create.",
      "type": "string"
    },
    "model": {
      "description": "Harness-native model ID; empty clears the override.",
      "type": "string"
    },
    "service_tier": {
      "description": "Harness-native service tier; empty clears the override.",
      "type": "string"
    },
    "task_title_template": {
      "description": "Created Task title template. Only {{date}} is supported.",
      "type": "string"
    },
    "thinking_level": {
      "description": "Harness-native thinking level; empty clears the override.",
      "type": "string"
    },
    "title": {
      "description": "Automation title.",
      "type": "string"
    }
  },
  "required": [
    "id"
  ],
  "type": "object"
}
```

### Autónomo / Company schema

```json theme={null}
{
  "additionalProperties": false,
  "properties": {
    "description": {
      "description": "Prompt / instructions.",
      "type": "string"
    },
    "id": {
      "description": "Automation UUID.",
      "type": "string"
    },
    "idempotency_key": {
      "description": "Optional unique key for this edit; reuse only for retries of the same create.",
      "type": "string"
    },
    "task_title_template": {
      "description": "Created Task title template. Only {{date}} is supported.",
      "type": "string"
    },
    "title": {
      "description": "Automation title.",
      "type": "string"
    }
  },
  "required": [
    "id"
  ],
  "type": "object"
}
```

## Output

The saved Automation or trigger configuration for this edit. A configuration receipt does not mean a scheduled Task has run.

The result uses MCP `content` blocks; JSON payloads are encoded in text and may also appear in `structuredContent`. Check `isError` before reading a success payload. The server does not currently declare an `outputSchema`, so treat additional fields as extensible. [Result handling](/mcp/results).

## Example

Use an OAuth access token issued for this MCP resource (a Run token for Run-only tools). Replace example identifiers with values from your own account. Write actions change data.

First discover `automations_update` with `tools_search` and confirm that the live schema permits these arguments.

```bash theme={null}
curl --fail-with-body https://melso.ai/api/mcp \
  -H "Authorization: Bearer $MELSO_MCP_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  --data-binary @- <<'JSON'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "tools_call",
    "arguments": {
      "name": "automations_update",
      "arguments": {
        "id": "11111111-1111-4111-8111-111111111111",
        "title": "Weekly review"
      }
    }
  }
}
JSON
```


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