Hero bio (pydantic-ai + sampling)
hero_bioGenerate a short in-universe hero bio from a codename by synthesizing known facts into a character-appropriate narrative.
Instructions
A pydantic-ai agent writes a short in-universe bio from the hero's facts; the LLM comes from the client via MCP sampling.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"codename": "<codename>"
},
"name": "hero_bio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| codename | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |