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

# Get Prompts • AI Agent SDK

> get_prompts: List prompt templates advertised by the MCP server.

# get\_prompts

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**MCP**](../classes/MCP) class in the [**mcp**](../modules/mcp) module.

List prompt templates advertised by the MCP server.

Returns an empty list for transports that do not surface prompts or for
servers that expose none.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def get_prompts() -> List[dict]
```

### Returns

<ResponseField name="Returns" type="List[dict]">
  Serialised prompt descriptors with argument hints.
</ResponseField>

## Uses

* `_res.prompts_to_dicts`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/mcp/mcp.py#L930">
  `praisonaiagents/mcp/mcp.py` at line 930
</Card>
