Skip to content

get_prompt doesn't return the prompt description #602

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
megandsouza03 opened this issue Apr 29, 2025 · 0 comments · Fixed by jlowin/fastmcp#325
Open

get_prompt doesn't return the prompt description #602

megandsouza03 opened this issue Apr 29, 2025 · 0 comments · Fixed by jlowin/fastmcp#325

Comments

@megandsouza03
Copy link

Describe the bug
When session.get_prompt(prompt.name) is called the GetPromptResult doesn't return the prompt description

To Reproduce
Steps to reproduce the behavior:

  1. Create a FastMCP server and add a prompt description
@mcp.prompt(description="This prompt summarizes the brave search data")
def summarize_brave_data() -> str:
   return f"ABCABCABCB"
  1. Create a client and call list_prompts along with get_prompts
prompt_data = await self.session.get_prompt(prompt.name)
print(prompt_data)
  1. Output:-
INFO     Processing request of type GetPromptRequest                                                     server.py:534
meta=None description=None messages=[PromptMessage(role='user', content=TextContent(type='text', text='ABCABCABCB', annotations=None))]

Expected behavior

INFO     Processing request of type GetPromptRequest                                                     server.py:534
meta=None description="This prompt summarizes the brave search data" messages=[PromptMessage(role='user', content=TextContent(type='text', text='ABCABCABCB', annotations=None))]

Screenshots
N/A

megandsouza03 added a commit to megandsouza03/python-sdk that referenced this issue May 2, 2025
Vinisha-projects added a commit to Vinisha-projects/python-sdk that referenced this issue May 6, 2025
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 a pull request may close this issue.

1 participant