Agent tool call with content safety and approval

Agent tool call with content safety and approval Agent tool call with content safety and approval A user question reaches a Foundry agent; the model proposes a tool call; content safety screens it; a high-impact call waits for approval Azure opt [tool needed] ask a question 1. The request carries an Entra ID token.1 validated request 2. API Management → Foundry Agent Service (validated request)2 screen prompt 3. Foundry Agent Service → AI Content Safety (screen prompt)3 allowed reason + choose tool 4. Foundry Agent Service → Azure OpenAI (reason + choose tool)4 tool call proposal screen tool arguments 5. Foundry Agent Service → AI Content Safety (screen tool arguments)5 High-impact calls wait for humanapproval before they run. invoke tool (managed identity) 6. Foundry Agent Service → Azure Functions (invoke tool (managed identity))6 result trace + token usage 7. Foundry Agent Service → Log Analytics (trace + token usage)7 answer response User (Users) User API Management (API Management Services) API Management auth, throttling Foundry Agent Service (Foundry Agent Service) Foundry Agent Service AI Content Safety (Content Safety) AI Content Safety Azure OpenAI (Azure OpenAI) Azure OpenAI Azure Functions (Function Apps) Azure Functions tool: update record Log Analytics (Log Analytics Workspaces) Log Analytics

Flow

  1. 1The request carries an Entra ID token.
  2. 2API Management → Foundry Agent Service (validated request)
  3. 3Foundry Agent Service → AI Content Safety (screen prompt)
  4. 4Foundry Agent Service → Azure OpenAI (reason + choose tool)
  5. 5Foundry Agent Service → AI Content Safety (screen tool arguments)
  6. 6Foundry Agent Service → Azure Functions (invoke tool (managed identity))
  7. 7Foundry Agent Service → Log Analytics (trace + token usage)

Cost estimate eastus · price list as of 2026-10-02 · indicative — some usage is assumed

$806per month
$9,669per year
5/7components priced
1not priced (see below)

Public pay-as-you-go list prices from the Azure Retail Prices API (USD). Excludes taxes, support plans, Reservations, Savings Plans, Spot and enterprise or EA discounts, and data transfer unless a node sets egressGbPerMonth. Free grants are included where the meter has a free tier. Monthly = 730 hours. Not a quote: confirm with the Azure Pricing Calculator.

Usage basis. Cost tab covers the participants only; the sequence has no volumes.

By category

Integration$687 · 85%
AI and agents$108 · 13%
Security and operations$11.50 · 1%
Compute$0.00 · 0%

By component click a row to highlight it on the diagram

ComponentServiceStatus$ / monthLine items
API ManagementAPI Management Servicesestimated$687
1 line
  • Standard unit-hours: 730 1 Hour × $0.9407 = $686.711
Azure OpenAIAzure OpenAIestimated$70.00
2 lines
  • gpt-4o-0806: input tokens (standard, global): 20,000 1K × $0.0025 = $50.00
  • gpt-4o-0806: output tokens (standard, global): 2,000 1K × $0.01 = $20.00

Model matched in the Retail Prices API: gpt-4o-0806. Pay-as-you-go standard global deployment; provisioned throughput (PTU) is not modelled.

AI Content SafetyContent Safetyestimated$37.50
1 line
  • Text records (1,000 characters each): 100 1K × $0.375 = $37.50
Log AnalyticsLog Analytics Workspacesestimated$11.50
1 line
  • Data ingestion (GB): 10 1 GB × $0.00 (tiered) = $11.50

Pay-as-you-go ingestion with the monthly free allowance in the tier; commitment tiers are not modelled.

Not priced

  • Foundry Agent Service — not-estimated: No cost model for Foundry Agent Service yet. Supply `usage.monthlyUsd` on the node to include it.
  • Azure Functions — estimated: Consumption plan; the monthly free grant is included in the tiered meters.

Assumptions 14 defaulted — replace them with your own numbers in each node's usage

ComponentAssumptionValueSource
API Managementtierstandardassumed
API Managementunits1assumed
AI Content SafetytextRecordsPerMonth100000assumed
AI Content SafetyimagesPerMonth0assumed
Azure OpenAImodelgpt-4o-0806from spec
Azure OpenAIdeploymentglobalassumed
Azure OpenAImodestandardassumed
Azure OpenAIinputTokensPerMonth20000000from spec
Azure OpenAIoutputTokensPerMonth2000000from spec
Azure OpenAIcachedInputTokensPerMonth0assumed
Azure Functionsplanconsumptionassumed
Azure FunctionsrequestsPerMonth1000000assumed
Azure FunctionsavgDurationMs200assumed
Azure FunctionsmemoryMb512assumed
Log AnalyticsingestGbPerMonth10assumed
Log AnalyticsretentionDays31assumed
Log AnalyticsretainedGb10assumed

Sensitivity & what-if

$806at 1× traffic
$1,067at 3× traffic
$1,992at 10× traffic

No what-if options apply to these services.

Price list provenance

Retrieved 2026-10-02T10:01:47.868Z from the public Azure Retail Prices API. Latest price effective dates per service:

API Management 2024-12-01 · Foundry Tools 2026-10-01 · Functions 2024-12-01 · Log Analytics 2018-02-01

Only public pay-as-you-go list prices are used. This is not a quote — confirm in the Azure Pricing Calculator.