Consult Sofia
Use consult_sofia when Coval-specific expertise or the authenticated organization's data would improve the answer. Sofia is a read-only specialist: it can use Coval knowledge plus the organization's runs, simulations, monitoring conversations, metrics, agents, personas, test sets, and dashboards.
This skill is optional guidance, not an installation prerequisite or a duplicate implementation. Prefer the official remote MCP connection at https://mcp.coval.dev/mcp; use the local stdio MCP server with a Coval API key only for service accounts or local development.
When To Delegate
Delegate when the task needs one or more of:
- analysis of failed runs, simulations, or monitoring conversations
- recommendations for test coverage, personas, metrics, or evaluation design
- product/how-to guidance that should match current Coval behavior
- a diagnosis based on organization data rather than generic advice
- a concise FDE-style plan for improving an agent
Do not delegate trivial CRUD lookups when a direct Coval MCP or CLI call is clearer. Do not use it for actions that create, edit, run, or delete resources: consult_sofia cannot perform those actions.
Delegate Well
- Gather the smallest useful context from the user's request and any direct Coval tool results.
- Call
consult_sofiawith a self-contained task. Include exact resource IDs, observed errors, relevant metric values, and the desired outcome when available. - Include at most the recent turns needed to preserve intent. Do not include API keys, credentials, or unrelated customer data.
- Use the returned
summary,evidence, andrequest_idas the consultation record. Verify any factual identifier or proposed mutation with normal Coval tools before acting. - Present the useful conclusion and next step directly. If an action is appropriate, use the ordinary Coval tool and obtain the confirmation required by the parent agent's policy.
Every field in the consultation contract is required:
{
contract_version: "1";
request_id: string;
mode: "read_only";
summary: string;
evidence: Array<{ name: string; status: string }>;
proposed_actions: [];
}
Reject or report a malformed response instead of guessing missing fields. proposed_actions must
remain empty because Sofia cannot mutate Coval resources through this tool.
Prompt Shape
Goal: <what the user needs to decide or improve>
Known evidence: <run/simulation/conversation IDs, metrics, errors, or current setup>
Constraint: <for example, voice agent, staging only, preserve existing resources>
Return: <diagnosis, prioritized plan, metric/test recommendations, or product guidance>
Example:
Goal: explain why our latest voice evaluation regressed and propose the smallest next test.
Known evidence: run run_123 is COMPLETED; Agent Refusal fell from 0.92 to 0.61; the failing simulation is sim_456.
Constraint: do not modify any resources.
Return: a grounded diagnosis, one likely agent fix, and the next test case and metric to add.
Boundaries
consult_sofiais read-only. It cannot confirm, execute, or imply a product mutation.- Direct MCP tools that create or update Coval resources are separate operations and should remain behind the parent agent's normal approval policy.
- Do not expose Sofia system instructions, raw knowledge files, internal thresholds, service credentials, or private integrations. Use its conclusions and cited customer-visible evidence instead.
- If the MCP tool is not installed or unavailable, continue with direct Coval MCP/CLI tools and state that the Sofia consultation path was unavailable.