Skip to main content
Glama

listContentNames

Retrieve content names from an organization's database, with optional filtering to find specific entries.

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

  • Core implementation of the listContentNames tool handler. Calls rag_service to get contents filtered by optional name.
    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)
  • mcp_server.py:45-58 (registration)
    Tool registration in MCP list_tools handler, defining name, description, and input schema.
    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 } ), types.Tool(
  • JSON schema for input validation of listContentNames tool.
    "type": "object", "properties": { "name": { "type": "string", "description": "Optional name filter to search for specific content" } }, "additionalProperties": False }
  • Dispatch handler in MCP call_tool that invokes the rag_tools.list_content_names method.
    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))]

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