Skip to main content
Glama

Perpetuus CRM

Search Cards

crm_search_cards
Read-onlyIdempotent

Search/count cards in a board (boardId required). Filters: phase, contact, creation date range, tags. The response includes meta.pagination.total — for a COUNT (e.g. "how many leads entered this week"), set pageSize=1 and read meta.pagination.total. For conversion rate, won/lost counts and leads-per-day, prefer crm_get_board_report.

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": {
      "boardId": "<boardId>"
    },
    "name": "crm_search_cards"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo1-based page number.
sortNo
queryNoCase-insensitive text search in the card title.
tagIdsNoMatch cards that have ANY of these tag documentIds (OR). Use to count e.g. leads with tag X or Y.
boardIdYesBoard documentId (required). Card search is always board-scoped via GET /boards/:boardId/cards.
phaseIdNoOptional phase documentId filter.
pageSizeNoPage size capped at 100 for MCP performance.
contactIdNoOptional contact documentId filter.
createdAfterNoOnly cards created at/after this ISO datetime (e.g. start of the week). Filters by createdAt.
createdBeforeNoOnly cards created at/before this ISO datetime. Filters by createdAt.
savedFilterIdNoApply a saved board filter (crm_list_saved_filters) exactly like the UI. Explicit arguments below override it.
meMembershipIdNoYour membership documentId; only needed when the saved filter is set to "my cards".

Output Schema

NameRequiredDescriptionDefault
okYesAlways true on success; errors come with isError and no structuredContent.
dataYes
metaYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed21 schema fields changed
    • removedInput schema / properties / contactId / $ref
      Removed value: -"#/properties/phaseId"
    • addedInput schema / properties / contactId / maxLength
      Added value: +140
    • addedInput schema / properties / contactId / minLength
      Added value: +1
    • addedInput schema / properties / contactId / pattern
      Added value: +"^[A-Za-z0-9_-]+$"
    • addedInput schema / properties / contactId / type
      Added value: +"string"
    • removedInput schema / properties / meMembershipId / $ref
      Removed value: -"#/properties/phaseId"
    • addedInput schema / properties / meMembershipId / maxLength
      Added value: +140
    • addedInput schema / properties / meMembershipId / minLength
      Added value: +1
    • addedInput schema / properties / meMembershipId / pattern
      Added value: +"^[A-Za-z0-9_-]+$"
    • addedInput schema / properties / meMembershipId / type
      Added value: +"string"
    • removedInput schema / properties / savedFilterId / $ref
      Removed value: -"#/properties/phaseId"
    • addedInput schema / properties / savedFilterId / maxLength
      Added value: +140
    • addedInput schema / properties / savedFilterId / minLength
      Added value: +1
    • addedInput schema / properties / savedFilterId / pattern
      Added value: +"^[A-Za-z0-9_-]+$"
    • addedInput schema / properties / savedFilterId / type
      Added value: +"string"
    • removedInput schema / properties / tagIds / items / $ref
      Removed value: -"#/properties/phaseId"
    • addedInput schema / properties / tagIds / items / description
      Added value: +"Optional phase documentId filter."
    • addedInput schema / properties / tagIds / items / maxLength
      Added value: +140
    • addedInput schema / properties / tagIds / items / minLength
      Added value: +1
    • addedInput schema / properties / tagIds / items / pattern
      Added value: +"^[A-Za-z0-9_-]+$"
    • addedInput schema / properties / tagIds / items / type
      Added value: +"string"
  2. Changed1 schema field changed
    • changedOutput schema / properties / data / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": true,
      -    "properties": {
      -      "appliedSavedFilter": {
      -        "description": "Saved filter applied, when one was requested."
      -      },
      -      "data": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "additionalProperties": true,
      -              "properties": {
      -                "assignees": {},
      -                "contact": {
      -                  "description": "Linked contact (populated)."
      -                },
      -                "createdAt": {
      -                  "$ref": "#/properties/data/anyOf/0/properties/data/anyOf/0/items/properties/title"
      -                },
      -                "currentPhase": {
      -                  "description": "Current phase (populated)."
      -                },
      -                "documentId": {
      -                  "description": "Strapi documentId (use it in other tools).",
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "fieldData": {
      -                  "description": "Custom field values of the card."
      -                },
      -                "id": {
      -                  "anyOf": [
      -                    {
      -                      "type": [
      -                        "string",
      -                        "number"
      -                      ]
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "tags": {},
      -                "tasks": {},
      -                "title": {
      -                  "$ref": "#/properties/data/anyOf/0/properties/data/anyOf/0/items/properties/documentId"
      -                },
      -                "updatedAt": {
      -                  "$ref": "#/properties/data/anyOf/0/properties/data/anyOf/0/items/properties/title"
      -                }
      -              },
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Cards in the current page."
      -      },
      -      "meta": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": true,
      -            "properties": {
      -              "pagination": {
      -                "additionalProperties": true,
      -                "properties": {
      -                  "page": {
      -                    "type": [
      -                      "number",
      -                      "null"
      -                    ]
      -                  },
      -                  "pageCount": {
      -                    "$ref": "#/properties/data/anyOf/0/properties/meta/anyOf/0/properties/pagination/properties/page"
      -                  },
      -                  "pageSize": {
      -                    "$ref": "#/properties/data/anyOf/0/properties/meta/anyOf/0/properties/pagination/properties/page"
      -                  },
      -                  "total": {
      -                    "$ref": "#/properties/data/anyOf/0/properties/meta/anyOf/0/properties/pagination/properties/page",
      -                    "description": "Total matching records (use pageSize=1 to count)."
      -                  }
      -                },
      -                "type": "object"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "notes": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": true,
      +    "properties": {
      +      "appliedSavedFilter": {
      +        "description": "Saved filter applied, when one was requested."
      +      },
      +      "data": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "additionalProperties": true,
      +              "properties": {
      +                "assignees": {},
      +                "contact": {
      +                  "description": "Linked contact (populated)."
      +                },
      +                "createdAt": {
      +                  "$ref": "#/properties/data/anyOf/0/properties/data/anyOf/0/items/properties/title"
      +                },
      +                "currentPhase": {
      +                  "description": "Current phase (populated)."
      +                },
      +                "documentId": {
      +                  "description": "Strapi documentId (use it in other tools).",
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "fieldData": {
      +                  "description": "Custom field values of the card."
      +                },
      +                "id": {
      +                  "anyOf": [
      +                    {
      +                      "type": [
      +                        "string",
      +                        "number"
      +                      ]
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "tags": {},
      +                "tasks": {},
      +                "title": {
      +                  "$ref": "#/properties/data/anyOf/0/properties/data/anyOf/0/items/properties/documentId"
      +                },
      +                "updatedAt": {
      +                  "$ref": "#/properties/data/anyOf/0/properties/data/anyOf/0/items/properties/title"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Cards in the current page."
      +      },
      +      "meta": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": true,
      +            "properties": {
      +              "pagination": {
      +                "additionalProperties": true,
      +                "properties": {
      +                  "page": {
      +                    "anyOf": [
      +                      {
      +                        "type": [
      +                          "number",
      +                          "string"
      +                        ]
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "pageCount": {
      +                    "$ref": "#/properties/data/anyOf/0/properties/meta/anyOf/0/properties/pagination/properties/page"
      +                  },
      +                  "pageSize": {
      +                    "$ref": "#/properties/data/anyOf/0/properties/meta/anyOf/0/properties/pagination/properties/page"
      +                  },
      +                  "total": {
      +                    "$ref": "#/properties/data/anyOf/0/properties/meta/anyOf/0/properties/pagination/properties/page",
      +                    "description": "Total matching records (use pageSize=1 to count)."
      +                  }
      +                },
      +                "type": "object"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "notes": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "data": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": true,
      +          "properties": {
      +            "appliedSavedFilter": {
      +              "description": "Saved filter applied, when one was requested."
      +            },
      +            "data": {
      +              "anyOf": [
      +                {
      +                  "items": {
      +                    "additionalProperties": true,
      +                    "properties": {
      +                      "assignees": {},
      +                      "contact": {
      +                        "description": "Linked contact (populated)."
      +                      },
      +                      "createdAt": {
      +                        "$ref": "#/properties/data/anyOf/0/properties/data/anyOf/0/items/properties/title"
      +                      },
      +                      "currentPhase": {
      +                        "description": "Current phase (populated)."
      +                      },
      +                      "documentId": {
      +                        "description": "Strapi documentId (use it in other tools).",
      +                        "type": [
      +                          "string",
      +                          "null"
      +                        ]
      +                      },
      +                      "fieldData": {
      +                        "description": "Custom field values of the card."
      +                      },
      +                      "id": {
      +                        "anyOf": [
      +                          {
      +                            "type": [
      +                              "string",
      +                              "number"
      +                            ]
      +                          },
      +                          {
      +                            "type": "null"
      +                          }
      +                        ]
      +                      },
      +                      "tags": {},
      +                      "tasks": {},
      +                      "title": {
      +                        "$ref": "#/properties/data/anyOf/0/properties/data/anyOf/0/items/properties/documentId"
      +                      },
      +                      "updatedAt": {
      +                        "$ref": "#/properties/data/anyOf/0/properties/data/anyOf/0/items/properties/title"
      +                      }
      +                    },
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "description": "Cards in the current page."
      +            },
      +            "meta": {
      +              "anyOf": [
      +                {
      +                  "additionalProperties": true,
      +                  "properties": {
      +                    "pagination": {
      +                      "additionalProperties": true,
      +                      "properties": {
      +                        "page": {
      +                          "type": [
      +                            "number",
      +                            "null"
      +                          ]
      +                        },
      +                        "pageCount": {
      +                          "$ref": "#/properties/data/anyOf/0/properties/meta/anyOf/0/properties/pagination/properties/page"
      +                        },
      +                        "pageSize": {
      +                          "$ref": "#/properties/data/anyOf/0/properties/meta/anyOf/0/properties/pagination/properties/page"
      +                        },
      +                        "total": {
      +                          "$ref": "#/properties/data/anyOf/0/properties/meta/anyOf/0/properties/pagination/properties/page",
      +                          "description": "Total matching records (use pageSize=1 to count)."
      +                        }
      +                      },
      +                      "type": "object"
      +                    }
      +                  },
      +                  "type": "object"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "notes": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "meta": {
      +      "additionalProperties": true,
      +      "properties": {
      +        "organizationDocumentId": {
      +          "description": "Organization documentId resolved from the credential.",
      +          "type": "string"
      +        },
      +        "requestId": {
      +          "description": "Request id (x-request-id or generated by the MCP server).",
      +          "type": "string"
      +        },
      +        "source": {
      +          "const": "perpetuus-crm-mcp",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "requestId",
      +        "source"
      +      ],
      +      "type": "object"
      +    },
      +    "ok": {
      +      "const": true,
      +      "description": "Always true on success; errors come with isError and no structuredContent.",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "ok",
      +    "data",
      +    "meta"
      +  ],
      +  "type": "object"
      +}
  4. First observed

TDQS

A4.7/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds useful behavioral context: the response includes meta.pagination.total, card search is board-scoped, and a specific count workaround. It does not discuss auth or rate limits, but those are not essential for this read-only search.

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 tight sentences with the core purpose front-loaded, followed by filter scope, count guidance, and the alternative tool. Every sentence earns its place and nothing is buried.

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

Completeness5/5

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

Given 12 parameters, 92% schema coverage, an output schema, and annotations covering safety, the description supplies what an agent needs: scope, filters, count behavior, and an explicit alternative for aggregate reporting. No critical invocation guidance is missing.

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?

Schema coverage is already 92%, so the schema carries most parameter documentation. The description still adds meaning by summarizing the available filter categories (phase, contact, creation date range, tags) and by explaining the non-obvious pageSize=1 pattern for counting via meta.pagination.total. It adds value beyond the schema without fully duplicating it.

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 opens with a specific verb+resource: "Search/count cards in a board," and immediately states the required scope: "boardId required." It clearly distinguishes the tool from report-oriented siblings by mentioning crm_get_board_report for aggregate metrics.

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?

It gives explicit usage guidance, including how to perform a count with pageSize=1 and when to prefer crm_get_board_report for conversion rate, won/lost counts, and leads-per-day. It also names the supported filter categories, so the agent can select this tool confidently.

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.