Skip to content

Conversation

markhuot
Copy link

The summary is only the first line of the docblock. In many cases you need more than a single line to describe your tool adequately to the LLM. Using the description will return the first line plus all other lines until the parameter definitions.

Alternatively we could make manual tools support the #[McpTool(...)] annotation?

The summary is only the first line of the docblock. In many cases you need more than a single line to describe your tool adequately to the LLM. Using the description will return the first line plus all other lines until the parameter definitions
@Copilot Copilot AI review requested due to automatic review settings August 22, 2025 14:10
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR changes how tool descriptions are extracted from docblocks by using the full description instead of just the summary. This allows tools to have more comprehensive descriptions for LLMs, as the summary is limited to the first line while the description includes all content until parameter definitions.

  • Replace getSummary() with getDescription() when extracting tool descriptions from docblocks

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant