Skip to content

I don't see we can get available_tools automatically? #493

@dotku

Description

@dotku

Describe the bug
From AI suggested solution, mcp has available_tools, but I don't see it.

To Reproduce
Steps to reproduce the behavior:

from fastmcp import FastMCP

mcp = FastMCP("Test")
print(hasattr(mcp, 'available_tools')) 

Expected behavior
expect True, but got False

Additional context

I am trying to apply the tools call by something like this

ai_result = await ai_client.chat.completions.create(
                    model=MODEL,
                    messages=messages,
                    temperature=0.2,
                    tools=tools,  # Let the MCP/server determine available tools
                    timeout=TIMEOUT
                )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions