Skip to main content
Glama

Set an object's filter

set_filter
Idempotent

Sets the filter of one source object: only records that match move. anyOf is a list of up to 5 groups joined by OR; each group is up to 6 conditions { field, op, value } joined by AND. value is a text or number, a list for any_of and none_of, omitted for is_empty and not_empty, and with value2 for between; dates are YYYY-MM-DD. An empty anyOf removes the filter. Use the fields and ops from list_filter_fields. A filter never lowers the price. Returns { saved, object, filter, matching, filtersUrl, next }.

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": {
      "id": "<id>",
      "object": "<object>",
      "anyOf": "<anyOf>"
    },
    "name": "set_filter"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe migration id start_migration returned, like MIG-8F3C1D92.
anyOfYesGroups joined by OR; conditions inside a group joined by AND. [] removes the filter.
objectYesAn object id from list_objects, like "contacts".

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 non-read-only, non-destructive, idempotent, open-world behavior. The description adds value beyond them by disclosing that an empty `anyOf` resets the filter, that a filter 'never lowers the price', and by listing the returned keys (saved, object, filter, matching, filtersUrl, next) in the absence of an output schema.

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?

Front-loads the core action and immediately follows with the structural rules, constraint limits, removal behavior, prerequisite, and return shape. No sentence is filler, even though the density is high.

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 three-parameter mutation tool with full annotation coverage and no output schema, the description covers structure, value typing, prerequisites, reset behavior and return shape. It omits only minor lifecycle detail, such as whether the object must be in a not-yet-run migration state for the filter to take effect.

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 100%, so the baseline is 3, but the description adds genuine semantics: value shape per operator (list for any_of/none_of, omitted for is_empty/not_empty, value2 for between), YYYY-MM-DD date format, and the OR/AND nesting of groups and conditions.

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 ('Sets the filter of one source object') plus the immediate effect ('only records that match move'), which separates it cleanly from siblings such as set_fields, set_objects and set_options.

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?

Gives clear operating context: use fields and ops from list_filter_fields, and an empty `anyOf` removes the filter. It stops short of explicit when-not-to-use guidance versus alternatives, but the prerequisites and removal semantics leave little ambiguity about when to reach for this tool.

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.

Resources