Skip to main content
Glama
FirstReply MCP Server

FirstReply MCP Server

Official
by FirstReply

Filter Create

filter_create

Save a named conversation filter with optional combined criteria like status, priority, assignee, channel, contact, search text, and date ranges to create a reusable channel view.

Instructions

Save a conversation filter (a named view in the channel). All criteria are optional and combine.

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": {
      "organizationId": "<organizationId>",
      "name": "<name>"
    },
    "name": "filter_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesName of the filter.
colorNoColor index shown in the app.
searchNoSearch text. Words are AND-ed and prefix matched. Use "quoted phrases", -word to exclude, and the operators from:<sender name or email>, subject:<text>, is:<open|closed|unread|read|assigned|unassigned|ai>, has:<attachment|draft>, before:<YYYY-MM-DD>, after:<YYYY-MM-DD>.
statusNoStatus; "open" is unread + read.
priorityNoExact priority.
contactIdNoContact id.
memberIdsNoAssigned member ids.
channelIdsNoChannel ids.
createdAfterNoCreated at or after. ISO 8601 date or date-time, e.g. 2026-09-01 or 2026-09-01T12:00:00Z.
updatedAfterNoUpdated at or after. ISO 8601 date or date-time, e.g. 2026-09-01 or 2026-09-01T12:00:00Z.
createdBeforeNoCreated at or before. ISO 8601 date or date-time, e.g. 2026-09-01 or 2026-09-01T12:00:00Z.
updatedBeforeNoUpdated at or before. ISO 8601 date or date-time, e.g. 2026-09-01 or 2026-09-01T12:00:00Z.
organizationIdYesThe organization id. Use organization_list to find it.
classificationIdsNoClassification ids.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.3.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / channelIds
      Added value: +{
      +  "description": "Channel ids.",
      +  "items": {
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • removedInput schema / properties / inboxIds
      Removed value: -{
      -  "description": "Inbox ids.",
      -  "items": {
      -    "minLength": 1,
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
  2. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and idempotentHint=false, so the safety profile is covered. The description adds that the filter is a named view and that criteria combine, but leaves notable gaps the annotations cannot cover — what happens on a duplicate name, whether the created filter's id is returned, and whether repeated calls create duplicates.

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?

Two short sentences, front-loaded with the action and immediately glossing the domain term 'filter'. Nothing is wasted, though the description is arguably too lean for a 14-parameter creation tool.

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

Completeness3/5

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

For a non-idempotent creation tool with 14 parameters and no output schema, the definition should say what a successful call yields (typically a filter id for later filter_get/filter_update). The annotations cover safety and the schema covers inputs, but the post-call picture is left incomplete.

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?

With 100% schema description coverage (including the rich search operator syntax, enum status, and ISO date formats), the schema carries the parameter burden and baseline 3 applies. The phrase 'All criteria are optional and combine' adds real semantics by telling the agent only name and organizationId are required and the rest narrow the view, but 'combine' is ambiguous about AND versus OR.

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

Purpose4/5

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

The description pairs a specific verb and resource ('Save a conversation filter') with a clarifying gloss ('a named view in the channel'), so an agent knows this persists a reusable filter rather than running a search. It does not explicitly differentiate itself from the sibling filter_update, so it stops short of a 5.

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?

Usage is only implied: 'Save' signals persistence/creation, and 'All criteria are optional and combine' hints at the intended call pattern, but there is no statement of when to create a new filter versus updating an existing one via filter_update, nor any prerequisite guidance.

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

Deploy Server

Other Tools