You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/protocols_io_mcp/tools/protocol.py
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ class Material(BaseModel):
24
24
unit: Annotated[str, Field(description="Unit of measurement for the material, e.g., 'mL', 'g', 'μL'")]
25
25
26
26
classProtocolStepInput(BaseModel):
27
-
description: Annotated[str, Field(description="Description of the step")]
27
+
description: Annotated[str, Field(description="Description of the step (plain text only)")]
28
28
materials: Annotated[list[Material], Field(description="Materials required for this step. Empty if no materials are needed")] =Field(default_factory=list)
29
29
reference_protocol_ids: Annotated[list[int], Field(description="Protocol IDs referenced by this step. Empty if no references exist. Strongly recommend using at least one reference to ensure credibility")] =Field(default_factory=list)
30
30
@@ -215,8 +215,8 @@ async def get_protocol_steps(
215
215
216
216
@mcp.tool()
217
217
asyncdefcreate_protocol(
218
-
title: Annotated[str, Field(description="Title of the new protocol")],
219
-
description: Annotated[str, Field(description="Description of the new protocol")],
218
+
title: Annotated[str, Field(description="Title of the new protocol (plain text only)")],
219
+
description: Annotated[str, Field(description="Description of the new protocol (plain text only)")],
220
220
) ->Protocol|ErrorMessage:
221
221
"""
222
222
Create a new protocol with the given title and description.
@@ -240,7 +240,7 @@ async def create_protocol(
240
240
@mcp.tool()
241
241
asyncdefupdate_protocol_title(
242
242
protocol_id: Annotated[int, Field(description="Unique identifier for the protocol")],
243
-
title: Annotated[str, Field(description="New title for the protocol")]
243
+
title: Annotated[str, Field(description="New title for the protocol (plain text only)")]
244
244
) ->Protocol|ErrorMessage:
245
245
"""
246
246
Update the title of an existing protocol by its protocol ID.
0 commit comments