Guide · Amazon Bedrock · Amazon Nova

MCP Server Amazon Nova Micro — text-only 128k context, routing and classification

Amazon Nova Micro is the fastest and cheapest model in Amazon's Nova family: text-only, 128k context window, and optimized for high-throughput workloads where latency and cost matter more than multimodal capability. Three constraints catch MCP server authors off-guard when switching to Nova Micro: its maximum output length is 5120 tokens — not the 8192 that Claude Sonnet provides, so tools that generate long documents will truncate silently if you don't set maxTokens explicitly and check the stopReason; Nova Micro has no image or document input support — passing content blocks of type image or document returns an immediate ValidationException, even though the Converse API itself accepts them for other models; and Nova Micro has no native JSON output mode — structured output requires wrapping the request in a tool call with a JSON Schema input specification, the same pattern used with Claude via ConverseToolConfig. Within those constraints, Nova Micro is an excellent fit for the classification and routing layers that sit above your primary MCP tools: intent detection, entity extraction, ticket triage, and any repeated text transformation that runs hundreds of times per minute. For multimodal workloads see Nova Lite; for complex reasoning and agentic tool use see Nova Pro.

TL;DR

Use model ID us.amazon.nova-micro-v1:0 (cross-region) for production. Max output is 5120 tokens — set maxTokens and check stopReason === "max_tokens". No vision or document inputs. Use ConverseToolConfig with a JSON Schema to get structured output. Cross-region IDs give you significantly higher throughput quotas than single-region IDs.

Model IDs and cross-region inference

Nova models are accessed through Amazon Bedrock using the same ConverseCommand interface as Claude. The key difference is in the model ID format. Nova models have both single-region and cross-region inference profile IDs:

// Single-region — lower throughput quota, avoid in production
const NOVA_MICRO_SINGLE = "amazon.nova-micro-v1:0";

// Cross-region inference profile — higher throughput, recommended
const NOVA_MICRO_US = "us.amazon.nova-micro-v1:0";   // US regions
const NOVA_MICRO_EU = "eu.amazon.nova-micro-v1:0";   // EU regions
const NOVA_MICRO_AP = "ap.amazon.nova-micro-v1:0";   // AP regions

Cross-region inference profile IDs (the ones prefixed with a geographic shortcode) route traffic across multiple AWS regions within that geography to achieve higher aggregate throughput. For MCP servers that handle bursty workloads, the cross-region IDs are strongly preferred — the single-region quotas are shared with all other Bedrock customers in that region and throttle more aggressively.

To use cross-region IDs, the Bedrock client must be configured for a region in the same geographic zone. us.amazon.nova-micro-v1:0 works from any us-east-1 or us-west-2 client. eu.amazon.nova-micro-v1:0 works from eu-west-1, eu-central-1, and similar EU regions:

import {
  BedrockRuntimeClient,
  ConverseCommand,
  ConverseStreamCommand,
} from "@aws-sdk/client-bedrock-runtime";

const client = new BedrockRuntimeClient({ region: "us-east-1" });

// Works — same geographic zone as us.amazon.nova-micro-v1:0
const response = await client.send(new ConverseCommand({
  modelId: "us.amazon.nova-micro-v1:0",
  messages: [{ role: "user", content: [{ text: "Classify this text." }] }],
}));

InferenceConfiguration for Nova Micro

Nova Micro accepts a subset of the InferenceConfiguration parameters that Claude supports. The supported fields and their valid ranges are:

Nova Micro does not support topK. Passing topK in the request returns a ValidationException. Claude on the Converse API also ignores topK silently, but Nova surfaces it as an error — be careful if you share inference configuration objects across models.

const response = await client.send(new ConverseCommand({
  modelId: "us.amazon.nova-micro-v1:0",
  messages: [{ role: "user", content: [{ text: prompt }] }],
  inferenceConfig: {
    maxTokens: 512,     // keep short for classification tasks
    temperature: 0,     // deterministic output for routing
    topP: 1,
    // topK: 50,        // DO NOT include — ValidationException on Nova
  },
}));

Setting temperature: 0 gives the most deterministic output, which is valuable for classification and routing tools where consistency matters. At temperature 0, Nova Micro still occasionally produces slightly different outputs on identical prompts due to floating-point non-determinism at scale — it is not perfectly reproducible across API calls, only highly consistent.

Checking stopReason to detect truncation

Always read response.stopReason after a ConverseCommand call. The two relevant values are "end_turn" (normal completion) and "max_tokens" (output was cut at the token limit). Silent truncation is the most common source of malformed JSON or incomplete tool results in MCP tools:

import type { ConverseResponse } from "@aws-sdk/client-bedrock-runtime";

function extractTextSafe(response: ConverseResponse): string {
  if (response.stopReason === "max_tokens") {
    throw new Error(
      `Nova Micro truncated output at maxTokens limit. ` +
      `Increase maxTokens or reduce prompt length.`
    );
  }
  const content = response.output?.message?.content ?? [];
  const textBlock = content.find((b) => b.text !== undefined);
  return textBlock?.text ?? "";
}

Text-only constraint: no image or document inputs

Nova Micro is text-only. The Converse API's ContentBlock union type includes image, document, and video variants, but passing any of them to Nova Micro raises a ValidationException immediately:

// This will throw ValidationException — Nova Micro cannot process images
const badRequest = await client.send(new ConverseCommand({
  modelId: "us.amazon.nova-micro-v1:0",
  messages: [{
    role: "user",
    content: [
      { image: { format: "png", source: { bytes: imageBytes } } },
      { text: "What is in this image?" },
    ],
  }],
}));
// → ValidationException: Input modality not supported by this model

If your MCP server routes requests across multiple models based on content type, check the input modality before invoking Nova Micro. For requests that include images or documents, route to Nova Lite or Nova Pro instead:

type ContentBlock =
  | { text: string }
  | { image: unknown }
  | { document: unknown }
  | { video: unknown };

function requiresMultimodal(blocks: ContentBlock[]): boolean {
  return blocks.some((b) => "image" in b || "document" in b || "video" in b);
}

async function invokeNovaRouted(
  messages: Array<{ role: "user" | "assistant"; content: ContentBlock[] }>,
) {
  const hasMedia = messages.some((m) => requiresMultimodal(m.content));
  const modelId = hasMedia
    ? "us.amazon.nova-lite-v1:0"    // multimodal
    : "us.amazon.nova-micro-v1:0";  // text-only, faster + cheaper
  return client.send(new ConverseCommand({ modelId, messages, inferenceConfig: { maxTokens: 1024 } }));
}

Structured output via ConverseToolConfig

Nova Micro has no native JSON mode. To get reliable structured output, use the Converse tool use pattern: define a tool with a JSON Schema that matches the shape you want, force the model to use that tool via toolChoice, then extract the tool input from the response. This is the same pattern that works with Claude on the Converse API.

import {
  BedrockRuntimeClient,
  ConverseCommand,
} from "@aws-sdk/client-bedrock-runtime";

const client = new BedrockRuntimeClient({ region: "us-east-1" });

interface TicketClassification {
  category: "BILLING" | "TECHNICAL" | "GENERAL" | "SECURITY";
  priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
  summary: string;
}

async function classifyTicket(ticketText: string): Promise {
  const response = await client.send(new ConverseCommand({
    modelId: "us.amazon.nova-micro-v1:0",
    messages: [{
      role: "user",
      content: [{ text: `Classify this support ticket:\n\n${ticketText}` }],
    }],
    inferenceConfig: { maxTokens: 256, temperature: 0 },
    toolConfig: {
      tools: [{
        toolSpec: {
          name: "classify_ticket",
          description: "Classify a support ticket by category and priority.",
          inputSchema: {
            json: {
              type: "object",
              properties: {
                category: {
                  type: "string",
                  enum: ["BILLING", "TECHNICAL", "GENERAL", "SECURITY"],
                  description: "The primary category of the ticket.",
                },
                priority: {
                  type: "string",
                  enum: ["LOW", "MEDIUM", "HIGH", "CRITICAL"],
                  description: "Urgency level based on business impact.",
                },
                summary: {
                  type: "string",
                  maxLength: 120,
                  description: "One-sentence summary of the issue.",
                },
              },
              required: ["category", "priority", "summary"],
            },
          },
        },
      }],
      toolChoice: { tool: { name: "classify_ticket" } },
    },
  }));

  if (response.stopReason !== "tool_use") {
    throw new Error(`Unexpected stopReason: ${response.stopReason}`);
  }

  const toolUse = response.output?.message?.content?.find(
    (b) => b.toolUse !== undefined
  )?.toolUse;

  if (!toolUse?.input) throw new Error("No tool input in response");
  return toolUse.input as TicketClassification;
}

The toolChoice: { tool: { name: "classify_ticket" } } forces Nova Micro to call the named tool rather than respond with text. This is more reliable than a toolChoice: { auto: {} } approach for classification — the model always produces the tool call rather than sometimes answering in prose. The stopReason check is mandatory: if it returns "end_turn" without a tool call, the model generated a text response instead, which should be treated as an error in a structured output context.

Using Nova Micro as a routing layer in MCP orchestration

A common pattern in complex MCP servers is to use a cheap, fast model as a routing layer that determines which specialized tool to invoke, and then run the actual tool with a heavier model. Nova Micro's cost and latency profile make it ideal for this role.

import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { z } from "zod";

const server = new McpServer({ name: "orchestrator", version: "1.0.0" });

const TOOLS = ["search_docs", "run_analysis", "send_notification", "generate_report"] as const;
type ToolName = typeof TOOLS[number];

async function routeIntent(userQuery: string): Promise {
  const response = await client.send(new ConverseCommand({
    modelId: "us.amazon.nova-micro-v1:0",
    messages: [{
      role: "user",
      content: [{ text: `Which tool should handle this request? Query: ${userQuery}` }],
    }],
    inferenceConfig: { maxTokens: 64, temperature: 0 },
    toolConfig: {
      tools: [{
        toolSpec: {
          name: "select_tool",
          description: "Select the appropriate tool for the user request.",
          inputSchema: {
            json: {
              type: "object",
              properties: {
                tool: { type: "string", enum: [...TOOLS] },
                reason: { type: "string", maxLength: 80 },
              },
              required: ["tool", "reason"],
            },
          },
        },
      }],
      toolChoice: { tool: { name: "select_tool" } },
    },
  }));

  const toolUse = response.output?.message?.content?.find(
    (b) => b.toolUse !== undefined
  )?.toolUse;
  return (toolUse?.input as { tool: ToolName }).tool;
}

server.tool(
  "orchestrate",
  { query: z.string() },
  async ({ query }) => {
    const targetTool = await routeIntent(query);
    // ... dispatch to targetTool handler
    return { content: [{ type: "text", text: `Routed to: ${targetTool}` }] };
  }
);

This pattern keeps routing cost negligible — a 64-token output for routing costs a fraction of a cent — while letting the downstream tool use the most appropriate model. The Nova Micro routing call typically completes in under 200ms, adding minimal latency to the overall tool chain.

Streaming with ConverseStreamCommand

Nova Micro supports streaming via ConverseStreamCommand. The event stream structure is identical to Claude's: messageStart, contentBlockStart, contentBlockDelta, contentBlockStop, messageStop. When using tool use in streaming mode, the tool input JSON arrives in contentBlockDelta events with toolUse.input as an incremental JSON string that must be concatenated before parsing:

import { ConverseStreamCommand } from "@aws-sdk/client-bedrock-runtime";

async function streamClassify(text: string): Promise {
  const response = await client.send(new ConverseStreamCommand({
    modelId: "us.amazon.nova-micro-v1:0",
    messages: [{ role: "user", content: [{ text }] }],
    inferenceConfig: { maxTokens: 512, temperature: 0.3 },
  }));

  if (!response.stream) throw new Error("No stream returned");

  let output = "";
  for await (const event of response.stream) {
    if (event.contentBlockDelta?.delta?.text) {
      output += event.contentBlockDelta.delta.text;
      process.stdout.write(event.contentBlockDelta.delta.text);
    }
    if (event.messageStop) {
      const stopReason = event.messageStop.stopReason;
      if (stopReason === "max_tokens") {
        console.warn("Output truncated at maxTokens limit");
      }
    }
  }
  return output;
}

For pure text generation (not tool use), streaming is straightforward. For streaming tool use with Nova Micro, the same approach as Claude applies: accumulate toolUse.input deltas across all contentBlockDelta events for the tool block, then JSON-parse the concatenated string after contentBlockStop.

Production gotchas

5120 token output ceiling is lower than Claude Sonnet

Claude Sonnet and Haiku support up to 8192 output tokens; Nova Micro is capped at 5120. If you are migrating a tool from Claude to Nova Micro to reduce cost, any handler that could previously generate up to ~8000 tokens will silently truncate. Audit your MCP tool handlers for large output cases and add a stopReason === "max_tokens" check with an error or retry path before switching models.

topK is not supported and raises a ValidationException

Unlike some other Bedrock models, Nova Micro rejects topK in InferenceConfiguration with a hard error. If you have shared configuration objects or factory functions that add topK for other models (e.g., Llama), those factories need a model-aware branch that omits topK for Nova models. The error message is ValidationException: 1 validation error detected: Value ... at 'inferenceConfig.topK' failed to satisfy constraint.

System prompts count against the 128k context budget

Nova Micro's 128k context window includes the system prompt. Long system prompts with extensive instructions, few-shot examples, or document context can consume a significant fraction of the available context. If a tool handler passes large system prompts plus long user messages to Nova Micro, monitor total token counts (available in response.usage) to avoid hitting the context limit, which returns a ValidationException rather than a graceful truncation.

Nova throughput quotas are separate from Claude quotas

Nova models and Claude models have independent throughput quotas in Bedrock. If your account is fully using its Claude quota, switching to Nova Micro gives you a fresh quota. Conversely, if you deploy both Claude and Nova Micro tools and Nova Micro sees a sudden traffic spike, it can throttle independently of Claude. Use the cross-region model IDs (prefix us./eu./ap.) to maximize available throughput per model family.

Monitor your Nova Micro MCP tools with AliveMCP

AliveMCP monitors MCP server endpoints for uptime, latency, and error rates. When a Nova Micro routing tool starts returning errors or latency spikes above your threshold, AliveMCP alerts you before the issue cascades to downstream tools.

Start free monitoring