Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
don't add schema description when it is same as parameter description.
  • Loading branch information
logan-querypie committed Mar 27, 2025
commit b9078ae9da1580e3c91ccc52b68f1e7f5bd50137
2 changes: 1 addition & 1 deletion mcp/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ func buildSchemaDescription(paramDesc string, paramSchema *base.Schema) string {
description := paramDesc

if paramSchema.Description != "" {
if description != "" {
if description != "" && description != paramSchema.Description {
description = fmt.Sprintf("%s. %s", description, paramSchema.Description)
} else {
description = paramSchema.Description
Expand Down