From 874425a113ba217f659b5e67cddd2e56adbd6320 Mon Sep 17 00:00:00 2001
From: "marvin-context-protocol[bot]"
<225465937+marvin-context-protocol[bot]@users.noreply.github.com>
Date: Sun, 5 Jul 2026 19:16:03 -0400
Subject: [PATCH] chore: Update SDK documentation (#4427)
---
docs/python-sdk/fastmcp-utilities-types.mdx | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/docs/python-sdk/fastmcp-utilities-types.mdx b/docs/python-sdk/fastmcp-utilities-types.mdx
index e1379ae4b..7f1b03022 100644
--- a/docs/python-sdk/fastmcp-utilities-types.mdx
+++ b/docs/python-sdk/fastmcp-utilities-types.mdx
@@ -85,14 +85,13 @@ replace_type(type_, type_map: dict[type, type])
Given a (possibly generic, nested, or otherwise complex) type, replaces all
-instances of old_type with new_type.
+instances of keys in type_map with their corresponding values.
This is useful for transforming types when creating tools.
**Args:**
-- `type_`: The type to replace instances of old_type with new_type.
-- `old_type`: The type to replace.
-- `new_type`: The type to replace old_type with.
+- `type_`: The type to transform.
+- `type_map`: A mapping of types to replace (keys are replaced by values).
Examples:
```python
@@ -166,4 +165,4 @@ Helper class for returning file data from tools.
to_resource_content(self, mime_type: str | None = None, annotations: Annotations | None = None) -> mcp.types.EmbeddedResource
```
-### `ContextSamplingFallbackProtocol`
+### `ContextSamplingFallbackProtocol`