# blob-eventgrid Recipe - Python Eval

## MCP Template Validation

| Criteria | Expected | Status |
|----------|----------|--------|
| Template discovery | `functions_template_get(language: "python")` returns list | ✅ PASS |
| Filter by resource | `resource == "blob"` finds matches | ✅ PASS |
| Template scaffolded | `blob-eventgrid-trigger-python-azd` | ✅ PASS |
| Has trigger code | `@app.blob_trigger` decorator in output | ✅ PASS |
| Has IaC | `projectFiles[]` includes Bicep | ✅ PASS |
| Has RBAC | Appropriate role assignment | ✅ PASS |

## Agent Behavior Validation

```text
1. Agent calls: functions_template_get(language: "python")
2. Agent scans templateList.triggers[] descriptions and resource field
3. Agent selects: template where resource == "blob" → blob-eventgrid-trigger-python-azd
4. Agent calls: functions_template_get(language: "python", template: "blob-eventgrid-trigger-python-azd")
5. Agent writes: functionFiles[] + projectFiles[]
```

## Notes

- Template names may vary - use `resource` field or `description` to match
- Never hardcode template names - always discover via list call first

## Test Date

2026-04-22

## Verdict

**PASS** - MCP template provides complete blob-eventgrid trigger with IaC, RBAC, and UAMI binding.
