Skip to main content
Glama

Perpetuus CRM

Search Chat Contacts

crm_search_chat_contacts
Read-onlyIdempotent

Searches contacts in the tenant’s chat account by text query. Use this to resolve an existing chat identity before starting a thread; use crm_search_contacts for CRM contacts. Requires chat:read. Scoped non-admin users can be denied global contact search by the backend.

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": {
      "q": "<q>"
    },
    "name": "crm_search_chat_contacts"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesContact text query for the chat contact directory.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds information the annotations cannot carry: the required chat:read permission and the backend denial behavior for scoped non-admin users. It stops short of describing result shape or limits, which keeps it from a 5.

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

Conciseness5/5

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

Three short sentences, front-loaded with purpose, then routing, then preconditions. Every sentence carries distinct information and there is no filler.

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?

For a one-parameter, non-destructive search with no output schema, the definition covers purpose, alternative tool, auth requirement, and a failure mode. The only meaningful omission is what a match looks like or whether results are capped, which an agent would otherwise infer.

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

Parameters3/5

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

There is a single parameter and schema description coverage is 100%, so the schema already defines q fully with length bounds. The description only restates that search is by text query, adding no syntax, matching behavior, or result-limit detail. Baseline 3 applies.

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?

States a specific verb and resource with scope: 'Searches contacts in the tenant's chat account by text query.' It also contrasts with crm_search_contacts, so an agent can distinguish the two search tools without opening either schema.

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

Usage Guidelines5/5

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

Gives an explicit use case ('resolve an existing chat identity before starting a thread') and names the alternative plus the condition that selects it ('use crm_search_contacts for CRM contacts'). It additionally warns that scoped non-admin users may be denied, which is real routing guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.