Skip to main content
Glama
ibm-ecm

Core Content Services MCP Server

Official
by ibm-ecm

get_searchable_property_descriptions

Get searchable property descriptions for a class. Provide the class symbolic name to retrieve only properties marked as searchable.

Instructions

Retrieves only the searchable properties of a class.

:param class_symbolic_name: The symbolic name of the class to retrieve searchable properties for

:returns: A list of CachePropertyDescription objects for properties that are searchable

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
class_symbolic_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The handler function for the 'get_searchable_property_descriptions' tool. It fetches class metadata via get_class_metadata_tool and filters the property_descriptions to return only those where is_searchable is True.
    async def get_searchable_property_descriptions(
        class_symbolic_name: str,
    ) -> Union[List[CachePropertyDescription], ToolError]:
        """
        Retrieves only the searchable properties of a class.
    
        :param class_symbolic_name: The symbolic name of the class to retrieve searchable properties for
    
        :returns: A list of CachePropertyDescription objects for properties that are searchable
        """
        class_metadata = await get_class_metadata_tool(
            graphql_client=graphql_client,
            class_symbolic_name=class_symbolic_name,
            metadata_cache=metadata_cache,
        )
    
        # If there was an error retrieving the class metadata, return it
        if isinstance(class_metadata, ToolError):
            return class_metadata
    
        # Filter the properties to include only searchable ones
        searchable_properties = [
            prop for prop in class_metadata.property_descriptions if prop.is_searchable
        ]
    
        # Return only the list of searchable property descriptions
        return searchable_properties
  • The tool is registered via the @mcp.tool decorator with name='get_searchable_property_descriptions' inside the register_search_tools function, which is called during server setup.
    def register_search_tools(
        mcp: FastMCP,
        graphql_client: GraphQLClient,
        metadata_cache: MetadataCache,
    ) -> None:
        @mcp.tool(
            name="get_searchable_property_descriptions",
        )
  • The CachePropertyDescription Pydantic model that defines the schema for the return type. It includes fields like symbolic_name, display_name, descriptive_text, data_type, cardinality, is_searchable, is_system_owned, is_hidden, and valid_search_operators.
    class CachePropertyDescription(BaseModel):
        """Describes detailed attributes or metadata about a property."""
    
        symbolic_name: str = Field(
            description="Symbolic name that is used to reference this property"
        )
        display_name: str = Field(description="A user displayable name for this property")
        descriptive_text: str = Field(
            description="Describes additional details about this property"
        )
        data_type: TypeID = Field(description="The type of data this property can hold")
        cardinality: Cardinality = Field(
            description="Whether this property holds a single value or multiple values."
        )
        is_searchable: bool = Field(
            description="Indicates whether searches can include conditions involving this property"
        )
        is_system_owned: bool = Field(
            default=False, description="Indicates whether this property is system-owned"
        )
        is_hidden: bool = Field(
            default=False, description="Indicates whether this property is hidden"
        )
        valid_search_operators: List[SearchOperator] = Field(
            description="The valid operators that can be used with this property in a search condition"
        )

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv1.0.4
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / class_symbolic_name / title
      Removed value: -"Class Symbolic Name"
    • removedInput schema / title
      Removed value: -"get_searchable_property_descriptionsArguments"
    • removedOutput schema / $defs
      Removed value: -{
      -  "CachePropertyDescription": {
      -    "description": "Describes detailed attributes or metadata about a property.",
      -    "properties": {
      -      "cardinality": {
      -        "$ref": "#/$defs/Cardinality",
      -        "description": "Whether this property holds a single value or multiple values."
      -      },
      -      "data_type": {
      -        "$ref": "#/$defs/TypeID",
      -        "description": "The type of data this property can hold"
      -      },
      -      "descriptive_text": {
      -        "description": "Describes additional details about this property",
      -        "title": "Descriptive Text",
      -        "type": "string"
      -      },
      -      "display_name": {
      -        "description": "A user displayable name for this property",
      -        "title": "Display Name",
      -        "type": "string"
      -      },
      -      "is_hidden": {
      -        "default": false,
      -        "description": "Indicates whether this property is hidden",
      -        "title": "Is Hidden",
      -        "type": "boolean"
      -      },
      -      "is_searchable": {
      -        "description": "Indicates whether searches can include conditions involving this property",
      -        "title": "Is Searchable",
      -        "type": "boolean"
      -      },
      -      "is_system_owned": {
      -        "default": false,
      -        "description": "Indicates whether this property is system-owned",
      -        "title": "Is System Owned",
      -        "type": "boolean"
      -      },
      -      "symbolic_name": {
      -        "description": "Symbolic name that is used to reference this property",
      -        "title": "Symbolic Name",
      -        "type": "string"
      -      },
      -      "valid_search_operators": {
      -        "description": "The valid operators that can be used with this property in a search condition",
      -        "items": {
      -          "$ref": "#/$defs/SearchOperator"
      -        },
      -        "title": "Valid Search Operators",
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "symbolic_name",
      -      "display_name",
      -      "descriptive_text",
      -      "data_type",
      -      "cardinality",
      -      "is_searchable",
      -      "valid_search_operators"
      -    ],
      -    "title": "CachePropertyDescription",
      -    "type": "object"
      -  },
      -  "Cardinality": {
      -    "description": "Indicates whether a data variable has a single value or multiple values",
      -    "enum": [
      -      "SINGLE",
      -      "LIST",
      -      "ENUM"
      -    ],
      -    "title": "Cardinality",
      -    "type": "string"
      -  },
      -  "SearchOperator": {
      -    "description": "Enum defining all valid search operators for repository searches.\n\nThese operators determine how property values are compared during searches.",
      -    "enum": [
      -      "=",
      -      ">",
      -      "<",
      -      ">=",
      -      "<=",
      -      "!=",
      -      "CONTAINS",
      -      "STARTS",
      -      "ENDS"
      -    ],
      -    "title": "SearchOperator",
      -    "type": "string"
      -  },
      -  "ToolError": {
      -    "description": "Represents an error response from a tool execution.\n\nThis class helps the LLM understand error messages and provides suggestions\nfor potential resolutions.",
      -    "properties": {
      -      "isError": {
      -        "const": true,
      -        "default": true,
      -        "description": "Indicates that an error occurred during tool execution if value is True",
      -        "title": "Iserror",
      -        "type": "boolean"
      -      },
      -      "message": {
      -        "description": "Detailed error message",
      -        "title": "Message",
      -        "type": "string"
      -      },
      -      "suggestions": {
      -        "description": "List of suggestions for resolving the error",
      -        "items": {
      -          "type": "string"
      -        },
      -        "title": "Suggestions",
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "message"
      -    ],
      -    "title": "ToolError",
      -    "type": "object"
      -  },
      -  "TypeID": {
      -    "description": "Indicates the type of a data variable",
      -    "enum": [
      -      "BOOLEAN",
      -      "DATE",
      -      "DOUBLE",
      -      "GUID",
      -      "LONG",
      -      "STRING",
      -      "OBJECT",
      -      "BINARY"
      -    ],
      -    "title": "TypeID",
      -    "type": "string"
      -  }
      -}
    • changedOutput schema / properties / result / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "$ref": "#/$defs/CachePropertyDescription"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "$ref": "#/$defs/ToolError"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "description": "Describes detailed attributes or metadata about a property.",
      +      "properties": {
      +        "cardinality": {
      +          "description": "Whether this property holds a single value or multiple values.",
      +          "enum": [
      +            "SINGLE",
      +            "LIST",
      +            "ENUM"
      +          ],
      +          "type": "string"
      +        },
      +        "data_type": {
      +          "description": "The type of data this property can hold",
      +          "enum": [
      +            "BOOLEAN",
      +            "DATE",
      +            "DOUBLE",
      +            "GUID",
      +            "LONG",
      +            "STRING",
      +            "OBJECT",
      +            "BINARY"
      +          ],
      +          "type": "string"
      +        },
      +        "descriptive_text": {
      +          "description": "Describes additional details about this property",
      +          "type": "string"
      +        },
      +        "display_name": {
      +          "description": "A user displayable name for this property",
      +          "type": "string"
      +        },
      +        "is_hidden": {
      +          "default": false,
      +          "description": "Indicates whether this property is hidden",
      +          "type": "boolean"
      +        },
      +        "is_searchable": {
      +          "description": "Indicates whether searches can include conditions involving this property",
      +          "type": "boolean"
      +        },
      +        "is_system_owned": {
      +          "default": false,
      +          "description": "Indicates whether this property is system-owned",
      +          "type": "boolean"
      +        },
      +        "symbolic_name": {
      +          "description": "Symbolic name that is used to reference this property",
      +          "type": "string"
      +        },
      +        "valid_search_operators": {
      +          "description": "The valid operators that can be used with this property in a search condition",
      +          "items": {
      +            "description": "Enum defining all valid search operators for repository searches.\n\nThese operators determine how property values are compared during searches.",
      +            "enum": [
      +              "=",
      +              ">",
      +              "<",
      +              ">=",
      +              "<=",
      +              "!=",
      +              "CONTAINS",
      +              "STARTS",
      +              "ENDS"
      +            ],
      +            "type": "string"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "symbolic_name",
      +        "display_name",
      +        "descriptive_text",
      +        "data_type",
      +        "cardinality",
      +        "is_searchable",
      +        "valid_search_operators"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "description": "Represents an error response from a tool execution.\n\nThis class helps the LLM understand error messages and provides suggestions\nfor potential resolutions.",
      +    "properties": {
      +      "isError": {
      +        "const": true,
      +        "default": true,
      +        "description": "Indicates that an error occurred during tool execution if value is True",
      +        "type": "boolean"
      +      },
      +      "message": {
      +        "description": "Detailed error message",
      +        "type": "string"
      +      },
      +      "suggestions": {
      +        "description": "List of suggestions for resolving the error",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "message"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / properties / result / title
      Removed value: -"Result"
    • removedOutput schema / title
      Removed value: -"get_searchable_property_descriptionsOutput"
    • addedOutput schema / x-fastmcp-wrap-result
      Added value: +true
  2. First observedv1.0.0

TDQS

A3.7/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description bears full burden. It mentions the return type (CachePropertyDescription objects) but does not disclose read-only behavior, authentication needs, error conditions, or side effects. The verb 'retrieves' weakly implies non-destructiveness but is insufficient.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise with a single sentence plus a structured parameter and return description. It is front-loaded and avoids unnecessary words, though the docstring format adds slight verbosity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the existence of an output schema, the description adequately covers the return type. It compensates for 0% schema coverage by explaining the parameter. However, it lacks information about errors, permissions, or behavior for invalid classes.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description provides a clear parameter explanation: 'The symbolic name of the class to retrieve searchable properties for'. This adds meaning beyond the bare schema definition.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it retrieves only the searchable properties of a class. The verb 'retrieves' and target 'searchable properties' are specific. It distinguishes from the sibling tool 'get_class_property_descriptions' by limiting to searchable ones.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for retrieving searchable properties but does not explicitly state when to use this tool versus alternatives like 'get_class_property_descriptions'. No exclusions or prerequisites are given.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.