Skip to content

Commit d1ba41f

Browse files
committed
Update tool example
1 parent f48befc commit d1ba41f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ The following sets of tools are available (all are on by default):
808808

809809
- **update_project_item** - Update project item
810810
- `field_id`: The unique identifier of the project field to be updated. (number, required)
811-
- `field_value`: The new value for the field: For text, number, and date fields, provide the new value directly. For single select and iteration fields, provide the ID of the option or iteration. To clear the field, set this to null. Example: {"id": 123456, "value": "Done"} (object, required)
811+
- `field_value`: The new value for the field: For text, number, and date fields, provide the new value directly. For single select and iteration fields, provide the ID of the option or iteration. To clear the field, set this to null. Example: {"field_value": "Done"} (object, required)
812812
- `item_id`: The unique identifier of the project item. This is not the issue or pull request ID. (number, required)
813813
- `owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
814814
- `owner_type`: Owner type (string, required)

pkg/github/__toolsnaps__/update_project_item.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"type": "number"
1212
},
1313
"field_value": {
14-
"description": "The new value for the field: For text, number, and date fields, provide the new value directly. For single select and iteration fields, provide the ID of the option or iteration. To clear the field, set this to null. Example: {\"id\": 123456, \"value\": \"Done\"}",
14+
"description": "The new value for the field: For text, number, and date fields, provide the new value directly. For single select and iteration fields, provide the ID of the option or iteration. To clear the field, set this to null. Example: {\"field_value\": \"Done\"}",
1515
"properties": {},
1616
"type": "object"
1717
},

pkg/github/projects.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ func UpdateProjectItem(getClient GetClientFn, t translations.TranslationHelperFu
697697
),
698698
mcp.WithObject("field_value",
699699
mcp.Required(),
700-
mcp.Description("The new value for the field: For text, number, and date fields, provide the new value directly. For single select and iteration fields, provide the ID of the option or iteration. To clear the field, set this to null. Example: {\"id\": 123456, \"value\": \"Done\"}"),
700+
mcp.Description("The new value for the field: For text, number, and date fields, provide the new value directly. For single select and iteration fields, provide the ID of the option or iteration. To clear the field, set this to null. Example: {\"field_value\": \"Done\"}"),
701701
),
702702
), func(ctx context.Context, req mcp.CallToolRequest) (*mcp.CallToolResult, error) {
703703
owner, err := RequiredParam[string](req, "owner")

0 commit comments

Comments
 (0)