> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.getraya.app/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.getraya.app/_mcp/server.

# Example prompts

> **Warning**
>
> **Experimental, in beta.** Raya's MCP server is new and may change. For feedback, suggestions or problems, email [support@litwizlabs.ai](mailto:support@litwizlabs.ai).

Ask in plain language and replace the names with your own. Your assistant chooses the tools.

## Look around

* "List my Raya agents and flag any whose prompt is over its size limit."
* "Show me the last 20 calls for the *Loan Follow-up* agent that lasted under 30 seconds."
* "Summarize what went wrong across yesterday's failed calls for *Kisan Helpline*."

## Find out why a call went wrong

* "Replay call `<call id>` and tell me exactly where the agent went wrong and which part of the prompt caused it."
* "Customers say the *Admissions* agent keeps repeating the same question. Review its recent calls and find out why."
* "The agent skips question 6 and sometimes asks two questions at once. Find out why in the last 10 calls."

## Improve a prompt

* "The intro of *Loan Follow-up* is too long. Draft a shorter one, test it against the current intro on three scenarios, and give me the text to paste."
* "Make the agent switch to Marathi when the caller does. Test it with a caller who starts in Hindi and switches midway."
* "Our agent forgets to confirm the appointment time before ending. Fix it and prove the fix on five runs."
* "The Tamil lines sound like a textbook. Make them colloquial and test that the agent still follows the flow."

## Build a new agent

* "Help me write the prompt for a new outbound agent that confirms tomorrow's delivery slot. Test it on the *Delivery test* agent I just created."
* "Here's our call script and FAQ. Turn it into an agent prompt and knowledge base chunks, and test it."

## Shrink a prompt with the knowledge base

* "The *Scheme Helpline* prompt is over its limit. Move the FAQs into the knowledge base, give me the chunks to upload, and the trimmed prompt."
* "Here's our new policy document. Split it into knowledge base chunks for the *Support* agent."

## Ask how Raya works

* "How do I stop people calling back on our number?"
* "What's the best setup for an agent that speaks Hindi, Marathi and English?"
* "What does an extra concurrent call cost?"

Your assistant answers these from Raya's own answers to common questions, not from guesswork.

## Check cost first

* "Before running anything, estimate what testing four scenarios three times each would cost."

## Ready-made workflows

Raya gives your assistant five packaged workflows (MCP prompts). In Claude Code they're slash commands: type `/mcp__raya__` to see them.

| Command                           | Use it to                                                             | You give it                                           |
| --------------------------------- | --------------------------------------------------------------------- | ----------------------------------------------------- |
| `/mcp__raya__replay_call`         | Replay a real call and pinpoint the failure                           | A call id, and what went wrong if you know            |
| `/mcp__raya__diagnose_agent`      | Review an agent's recent calls and prompt, and reproduce the problems | The agent, and a reported issue if any                |
| `/mcp__raya__test_prompt_change`  | Test a change against the current prompt and get the winning text     | The agent and the change you want                     |
| `/mcp__raya__plan_knowledge_base` | Move material out of the prompt and split documents into chunks       | The agent, and a document if you have one             |
| `/mcp__raya__build_agent_prompt`  | Write and test the prompt for a new agent                             | A brief, a test agent, and any script or FAQ you have |

## What a session looks like

An example conversation, shortened:

> **You:** The *Loan Follow-up* agent asks for the customer's name even when we pass it in. Fix it.
>
> **Assistant:** I read the agent and its last 15 calls. In 6 of them the agent asked for the name although `contact_name` was set. The *Outbound Opening* section never says to use it. I'll test a fix on 3 scenarios (name given, name missing, caller corrects the name), each 3 times on the current prompt and 3 times on the draft. Estimated cost: about 4.8 credits (3.5 to 6.6). Go ahead?
>
> **You:** Yes, but skip the third scenario.
>
> **Assistant:** Re-estimated: about 3.2 credits. Running... Current prompt 1/6 passed, draft 6/6. Credits used: 2.9, all from simulation credits (7.1 left). The changed section and the full prompt are below, and I saved the plan, results and report in `raya-sims/loan-follow-up/2026-11-03-name-fix/`. Paste the new instructions into the agent in the dashboard.