Skip to content

Commit 670252b

Browse files
committed
Clarify MCP resource trigger documentation by refining descriptions and terminology for consistency
1 parent 5122dcb commit 670252b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

articles/azure-functions/functions-bindings-mcp-resource-trigger.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ app.mcpResource("getWeatherWidget", {
168168
});
169169
```
170170

171-
The following is the `getWeatherWidget` handler:
171+
The following code is the `getWeatherWidget` handler:
172172

173173
```typescript
174174
export async function getWeatherWidget(
@@ -352,7 +352,7 @@ The following MCP resource trigger properties are supported on `mcp_resource_tri
352352
| **description** | A description of the MCP resource exposed by the function endpoint. |
353353
| **mime_type** | The MIME type of the content returned by the resource. For example, `text/html;profile=mcp-app` for MCP App UI resources, `text/plain` for plain text. |
354354
| **size** | The expected size of the resource content in bytes, if known. |
355-
| **metadata** | A JSON-serialized string of additional metadata for the resource. |
355+
| **metadata** | A JSON-serialized string of extra metadata for the resource. |
356356
357357
> [!NOTE]
358358
> Decorators are only available in the Python v2 programming model.
@@ -372,7 +372,7 @@ Define the trigger's binding options in your code. The trigger supports the foll
372372
| **description** | A description of the MCP resource that the function endpoint exposes. |
373373
| **mimeType** | The MIME type of the content returned by the resource. For example, `text/html;profile=mcp-app`. |
374374
| **size** | The expected size of the resource content in bytes, if known. |
375-
| **metadata** | A JSON-serialized string of additional metadata for the resource. |
375+
| **metadata** | A JSON-serialized string of extra metadata for the resource. |
376376
| **handler** | The method that contains the actual function code. |
377377
378378
::: zone-end
@@ -440,7 +440,7 @@ Use the `McpMetadata` attribute to provide extra metadata for resources. MCP cli
440440
441441
::: zone pivot="programming-language-python"
442442
443-
Use the `metadata` parameter on the `mcp_resource_trigger` decorator to provide extra metadata for resources. This metadata is a JSON-serialized string included in the `meta` field of each resource when clients call `resources/list`. It can affect how the resource content is displayed or processed.
443+
To provide extra metadata for resources, use the `metadata` parameter on the `mcp_resource_trigger` decorator. This metadata is a JSON-serialized string included in the `meta` field of each resource when clients call `resources/list`. It can affect how the resource content is displayed or processed.
444444
445445
::: zone-end
446446

0 commit comments

Comments
 (0)