Guide · Amazon Bedrock · Amazon Nova
MCP Server Amazon Nova Pro — agentic tool use, 300k context, complex reasoning
Amazon Nova Pro is the highest-capability model in Amazon's Nova family, designed for complex multi-step reasoning and agentic workflows with a 300,000-token context window and full support for tool use via the Bedrock Converse API. Nova Pro uses the same ConverseToolConfig and ToolResultBlock structure as Claude on the Converse API, so existing agentic loop code requires only a model ID swap to run against Nova Pro — but three differences matter in production: Nova Pro's maximum output is 5120 tokens, compared to Claude Sonnet's 8192, which caps the length of single-turn responses and long-form tool results; Nova Pro has no explicit extended thinking parameter — unlike Claude 3.7 Sonnet which accepts a thinking configuration, Nova Pro's reasoning is implicit and cannot be budgeted or streamed as a separate block; and tool use in Nova Pro sometimes requires an extra turn to synthesize tool results into a final answer, even for tasks that Claude might complete in one shot. For cost-sensitive text-only workloads see Nova Micro; for low-cost multimodal workloads see Nova Lite.
TL;DR
Model ID: us.amazon.nova-pro-v1:0. Max output: 5120 tokens. Supports tool use via ConverseToolConfig (same schema as Claude on Converse). Multimodal: text, image, video (S3), documents. No explicit thinking parameter. Agentic loops follow the same ToolUseBlock→ToolResultBlock pattern as Claude.
Client setup and model IDs
Nova Pro uses the same BedrockRuntimeClient and ConverseCommand as other Bedrock models. Use the cross-region inference profile ID for production:
import {
BedrockRuntimeClient,
ConverseCommand,
ConverseStreamCommand,
type Message,
type ContentBlock,
type ToolResultBlock,
} from "@aws-sdk/client-bedrock-runtime";
const client = new BedrockRuntimeClient({ region: "us-east-1" });
const NOVA_PRO_US = "us.amazon.nova-pro-v1:0";
const NOVA_PRO_EU = "eu.amazon.nova-pro-v1:0";
const NOVA_PRO_AP = "ap.amazon.nova-pro-v1:0";
// InferenceConfiguration constraints for Nova Pro:
// maxTokens: 1–5120
// temperature: 0.0–1.0
// topP: 0.0–1.0
// topK: NOT supported (raises ValidationException)
Nova Pro, Nova Lite, and Nova Micro all share the same InferenceConfiguration constraints: 5120 max tokens, no topK support. This is an important difference from Claude Sonnet (8192 max tokens, topK accepted silently). Factor the 5120 ceiling into tool response design — if a tool handler returns very long JSON or prose responses, they will be truncated.
Tool use with ConverseToolConfig
Nova Pro's tool use follows the standard Bedrock Converse API pattern. Define tools in toolConfig.tools with toolSpec containing a name, description, and JSON Schema. The model selects tools and returns ToolUseBlock content; your code executes the tool and returns ToolResultBlock content in the next message turn.
import type {
ConverseResponse,
Tool,
ToolResultContentBlock,
} from "@aws-sdk/client-bedrock-runtime";
// Define available tools
const tools: Tool[] = [
{
toolSpec: {
name: "get_weather",
description: "Get current weather for a city.",
inputSchema: {
json: {
type: "object",
properties: {
city: { type: "string", description: "City name" },
unit: { type: "string", enum: ["celsius", "fahrenheit"] },
},
required: ["city"],
},
},
},
},
{
toolSpec: {
name: "search_knowledge_base",
description: "Search internal documentation for an answer.",
inputSchema: {
json: {
type: "object",
properties: {
query: { type: "string" },
maxResults: { type: "number", minimum: 1, maximum: 10 },
},
required: ["query"],
},
},
},
},
];
// Dispatcher — replace with real implementations
async function executeTools(toolUses: Array<{ id: string; name: string; input: unknown }>) {
return Promise.all(toolUses.map(async ({ id, name, input }) => {
let result: unknown;
if (name === "get_weather") {
const { city, unit = "celsius" } = input as { city: string; unit?: string };
result = { temperature: 22, unit, description: `Sunny in ${city}` };
} else if (name === "search_knowledge_base") {
const { query } = input as { query: string };
result = { hits: [`Result 1 for "${query}"`, `Result 2 for "${query}"`] };
} else {
result = { error: `Unknown tool: ${name}` };
}
return { id, result };
}));
}
Agentic loop implementation
Nova Pro may require multiple tool call turns to complete a task. The agentic loop runs until stopReason is "end_turn" rather than "tool_use". Cap the loop at a maximum number of iterations to prevent runaway tool chains:
const MAX_TOOL_ITERATIONS = 10;
async function runAgentLoop(
userQuery: string,
systemPrompt?: string
): Promise {
const messages: Message[] = [
{ role: "user", content: [{ text: userQuery }] },
];
for (let iteration = 0; iteration < MAX_TOOL_ITERATIONS; iteration++) {
const response = await client.send(new ConverseCommand({
modelId: "us.amazon.nova-pro-v1:0",
messages,
system: systemPrompt ? [{ text: systemPrompt }] : undefined,
inferenceConfig: { maxTokens: 2048, temperature: 0.3 },
toolConfig: { tools, toolChoice: { auto: {} } },
}));
// Add the assistant's turn to history
const assistantMessage = response.output?.message;
if (assistantMessage) messages.push(assistantMessage);
if (response.stopReason === "end_turn") {
// Extract final text response
const finalText = assistantMessage?.content
?.find((b) => b.text !== undefined)?.text ?? "";
return finalText;
}
if (response.stopReason !== "tool_use") {
throw new Error(`Unexpected stopReason: ${response.stopReason}`);
}
// Execute all requested tool calls
const toolUseBlocks = (assistantMessage?.content ?? [])
.filter((b) => b.toolUse !== undefined)
.map((b) => ({
id: b.toolUse!.toolUseId!,
name: b.toolUse!.name!,
input: b.toolUse!.input ?? {},
}));
const toolResults = await executeTools(toolUseBlocks);
// Build the user turn with tool results
const toolResultContent: ContentBlock[] = toolResults.map(({ id, result }) => ({
toolResult: {
toolUseId: id,
content: [{ json: result }],
status: "success",
} as ToolResultBlock,
}));
messages.push({ role: "user", content: toolResultContent });
}
throw new Error(`Agent loop exceeded ${MAX_TOOL_ITERATIONS} iterations`);
}
The key detail is building the toolResult content block correctly: toolUseId must match the toolUseId from the assistant's toolUse block. The content inside the result accepts either { text: string } or { json: unknown } — use json when returning structured data, as this avoids JSON-in-string serialization and allows Nova Pro to work directly with the data structure.
MCP server as a Nova Pro agentic tool handler
An MCP tool handler wraps the agentic loop so that the calling LLM orchestrator submits a natural language task and receives a finished result, with all intermediate tool calls happening inside the MCP server:
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { z } from "zod";
const server = new McpServer({ name: "nova-pro-agent", version: "1.0.0" });
server.tool(
"research_and_summarize",
{
topic: z.string().describe("Research topic to investigate"),
depth: z.enum(["brief", "detailed"]).default("detailed"),
},
async ({ topic, depth }) => {
const systemPrompt = depth === "brief"
? "Research the topic using the available tools and provide a 2-3 sentence summary."
: "Research the topic thoroughly using multiple tool calls. Provide a comprehensive, structured summary with key findings.";
try {
const result = await runAgentLoop(
`Research this topic and provide a ${depth} summary: ${topic}`,
systemPrompt
);
return { content: [{ type: "text", text: result }] };
} catch (err) {
const message = err instanceof Error ? err.message : String(err);
return {
content: [{ type: "text", text: `Research failed: ${message}` }],
isError: true,
};
}
}
);
Streaming with Nova Pro
Nova Pro supports streaming via ConverseStreamCommand. For pure text responses, streaming provides first-token latency improvement. For tool use, streaming tool input arrives as incremental JSON that must be accumulated:
async function streamNovaProResponse(
messages: Message[],
onChunk: (text: string) => void
): Promise<{ stopReason: string; fullText: string }> {
const response = await client.send(new ConverseStreamCommand({
modelId: "us.amazon.nova-pro-v1:0",
messages,
inferenceConfig: { maxTokens: 2048, temperature: 0.5 },
toolConfig: { tools, toolChoice: { auto: {} } },
}));
if (!response.stream) throw new Error("No stream returned");
let fullText = "";
let stopReason = "";
const toolInputAccumulators = new Map();
for await (const event of response.stream) {
if (event.contentBlockDelta?.delta?.text) {
const chunk = event.contentBlockDelta.delta.text;
fullText += chunk;
onChunk(chunk);
}
// Accumulate tool use input JSON deltas
if (event.contentBlockDelta?.delta?.toolUse?.input !== undefined) {
const idx = event.contentBlockDelta.contentBlockIndex ?? 0;
const current = toolInputAccumulators.get(idx) ?? "";
toolInputAccumulators.set(idx, current + event.contentBlockDelta.delta.toolUse.input);
}
if (event.messageStop) {
stopReason = event.messageStop.stopReason ?? "";
}
}
return { stopReason, fullText };
}
Nova Pro versus Claude Sonnet: when to choose each
Both Nova Pro and Claude Sonnet 3.5 are strong multi-turn reasoning models accessible via the Bedrock Converse API. The decision factors are:
- Cost: Nova Pro is typically cheaper on input tokens; Claude Sonnet 3.5 may be cheaper on output tokens for long responses. Benchmark against your actual workload token distribution.
- Max output: Claude Sonnet supports 8192 output tokens; Nova Pro caps at 5120. For tools that generate long-form documents or large JSON payloads, Claude Sonnet avoids truncation.
- Extended thinking: Claude 3.7 Sonnet supports explicit reasoning via the
thinkingparameter, with separate reasoning blocks streamed to the caller. Nova Pro has no equivalent — reasoning is implicit and not externally observable. - Ecosystem: Claude models have more third-party integrations, examples, and community knowledge. Nova Pro is newer and has less community tooling.
- Throughput: Nova Pro has separate throughput quotas from Claude — if one is throttled, the other may have headroom.
- Data residency: Nova Pro's cross-region inference profiles cover US, EU, and AP zones. For strict data residency requirements, verify which zones are available for your region.
For teams already on Claude who want cost reduction without code changes, Nova Pro is a strong candidate. The Converse API's model abstraction means swapping model IDs in a single constant switches the backend without changing tool definitions, message structure, or error handling patterns.
Production gotchas
5120 token ceiling truncates long tool results
If an MCP tool designed for Claude Sonnet returns JSON payloads or long prose, those same payloads may be truncated by Nova Pro's 5120-token limit. The stopReason === "max_tokens" check on the outer response detects this — but if truncation happens inside a tool use turn (the model's response describing what tool to call next), it may not surface clearly. Always test Nova Pro with your largest realistic tool result payloads before switching from Claude Sonnet in production.
toolResult content blocks must reference valid toolUseIds
Every toolResult block in a user turn must reference a toolUseId that the model included in the previous assistant turn. Missing or misspelled IDs return ValidationException: Tool result references non-existent tool use ID. When iterating over tool use blocks from the assistant response, preserve the exact toolUseId values — do not normalize, truncate, or regenerate them.
Nova Pro may call multiple tools in a single turn
Nova Pro, like Claude on the Converse API, can emit multiple toolUse content blocks in a single assistant turn. Your agentic loop must handle all of them in parallel before submitting the next user turn. Submitting only one tool result when two tool calls were made returns a validation error. The filter((b) => b.toolUse !== undefined) pattern in the loop above handles this correctly by collecting all tool use blocks before dispatching.
Monitor your Nova Pro MCP agents with AliveMCP
AliveMCP provides uptime, latency, and error-rate monitoring for MCP servers built on Amazon Nova Pro. When an agentic tool handler starts failing or exceeding latency thresholds, AliveMCP alerts you before the issue reaches your users.
Start free monitoring