---
title: "Apply Voice Test Recommendation"
description: "Apply a test run recommendation's quick action to the agent (e.g. patch_instructions appends the suggested fix to the agent's instructions)."
---

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

# Apply Voice Test Recommendation

Use the Speak AI MCP server tool `apply_voice_test_recommendation` to apply a test
run recommendation's quick action to the agent (e.g. patch_instructions appends the
suggested fix to the agent's instructions).

## What does it do?

Apply a test run recommendation's quick action to the agent (e.g. patch_instructions
appends the suggested fix to the agent's instructions). Requires the OWNER or ADMIN
role.

## Parameters

`apply_voice_test_recommendation` takes 3 parameters, all of them required.

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `agentId` | string | Yes | ID of the voice agent (from `list_voice_agents`) |
| `runId` | string | Yes | ID of the run (from `get_voice_test_run`) |
| `recId` | string | Yes | ID of the recommendation within that run's recommendations list |

## Behaviour

The Speak AI MCP server publishes these behaviour hints for
`apply_voice_test_recommendation`.

- Can change data in your workspace.
- Can delete or overwrite data. Use with care.
- Repeating an identical call can have an extra effect.
- Stays inside Speak AI. Does not reach other systems.

## Related

- [Voice agents](/mcp/tools/voice-agents/) lists the rest of the Voice agents
  category.
- [Tool reference](/mcp/tools/) lists every Speak AI MCP server tool.
- [MCP server](/mcp/) covers setup, supported clients, and what agents can do once
  connected.

Source: https://docs.speakai.co/mcp/tools/voice-agents/apply_voice_test_recommendation/index.mdx
