Skip to main content
Glama

listContentNames

Retrieve all content names stored in the Content Server's database, with an option to filter results by specific content names for precise searches.

Instructions

List all content names from the organization's database optionally filtered by name

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoOptional name filter to search for specific content

Implementation Reference

  • The handler function that implements the logic for listing content names, optionally filtered by name, using the RAG service.
    def list_content_names(self, name: str | None = None) -> list[dict[str, Any]]: """ List all content names from the organization's database optionally filtered by name. Args: name: Optional name filter to search for specific content Returns: List of content objects """ return self.rag_service.get_all_contents(name, self.user_id_from_environment)
  • JSON schema defining the input parameters for the listContentNames tool (optional 'name' string).
    inputSchema={ "type": "object", "properties": { "name": { "type": "string", "description": "Optional name filter to search for specific content" } }, "additionalProperties": False }
  • mcp_server.py:44-57 (registration)
    Tool registration in the list_tools handler, specifying name, description, and input schema.
    types.Tool( name="listContentNames", description="List all content names from the organization's database optionally filtered by name", inputSchema={ "type": "object", "properties": { "name": { "type": "string", "description": "Optional name filter to search for specific content" } }, "additionalProperties": False } ),
  • mcp_server.py:145-148 (registration)
    Dispatch logic in the call_tool handler that invokes the list_content_names method when listContentNames is called.
    if name == "listContentNames": result = rag_tools.list_content_names(arguments.get("name")) logger.debug(f"Tool {name} executed successfully") return [types.TextContent(type="text", text=str(result))]

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yogeshkulkarni553/rag-mcp-py'

If you have feedback or need assistance with the MCP directory API, please join our Discord server