Skip to main content
Glama
Core Content Services MCP Server

Core Content Services MCP Server

Official
by ibm-ecm

document_search

Searches documents by indexed content and metadata filters to return matches for a specified document class and property conditions.

Instructions

PREREQUISITES IN ORDER: To use this tool, you MUST call two other tools first in a specific sequence.

  1. determine_class tool to get the class_name for search_class. The search class must be a document class or a document subclass.

  2. get_searchable_property_descriptions to get a list of valid property_name for search_properties

Description: This tool will execute a request to search for documents based on content and the metadata criteria.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "search_parameters": "<search_parameters>"
    },
    "name": "document_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_resultsNo
search_termNoThe words for CBR search. This will be used to search for documents based on their CBR indexed content and metadata If empty string or None, then only search by metadata.
search_parametersYesComplete set of parameters for executing a repository search.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.0.5
    • addedInput schema / properties / search_term / description
      Added value: +"The words for CBR search. This will be used to search for documents based on their CBR indexed content and metadata\nIf empty string or None, then only search by metadata."
  2. Addedv1.0.4

TDQS

A4.1/5.0
Behavior3/5

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

No annotations are provided, so the description must carry the burden of behavioral disclosure. It mentions content and metadata search and prerequisites, but does not disclose return format, pagination, permissions, or side effects. An output schema exists but is not shown; description could still add value here.

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 structured with a prerequisites section and a summary sentence. While the prerequisites are necessary, they are verbose. No redundant information, but the main description is brief.

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 complexity (nested parameters, output schema exists, sibling tools), the description covers purpose, prerequisites, and basic behavior. It lacks details on edge cases and output interpretation, but the input schema provides some of that. Annotations would further improve completeness.

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?

The description specifies that search_term is for CBR content search and can be empty for metadata-only, adding meaning beyond the schema. It also clarifies that search_class and search_properties require prior tool calls. With 67% schema coverage, this adds useful context.

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 the tool searches for documents based on content and metadata criteria, distinguishing it from sibling tools like lookup_documents_by_name and repository_object_search. The prerequisites section further clarifies the scope.

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

Usage Guidelines4/5

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

The description explicitly lists prerequisite steps (determine_class, get_searchable_property_descriptions) and notes that the search class must be a document class or subclass, providing clear usage guidance. However, it does not explain when to use this tool versus alternatives like repository_object_search.

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