Skip to main content
Glama

save_filter

DestructiveIdempotent

Save a filter under a name (or change one of yours: pass id). Required: entity, name, filter. shared=true makes it visible to everyone in the tenant (e.g. as a recipient list).

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": {
      "entity": "<entity>",
      "name": "<name>",
      "filter": "<filter>"
    },
    "name": "save_filter"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoID of one of your saved filters to change; omit to create a new one
nameYesName of the filter
entityYescontacts (people) or accounts (organisations)
filterYesFilter definition as in search_crm: { all: [conditions], any: [conditions] }
sharedNoMake the filter visible to everyone in the tenant

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / entity / description
      Added value: +"contacts (people) or accounts (organisations)"
    • addedInput schema / properties / filter / description
      Added value: +"Filter definition as in search_crm: { all: [conditions], any: [conditions] }"
    • addedInput schema / properties / id / description
      Added value: +"ID of one of your saved filters to change; omit to create a new one"
    • addedInput schema / properties / name / description
      Added value: +"Name of the filter"
    • addedInput schema / properties / shared / description
      Added value: +"Make the filter visible to everyone in the tenant"
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is carried structurally. The description's one behavioral addition — tenant-wide visibility via shared=true — largely duplicates the schema's own wording, and it never spells out what is destroyed on overwrite (destructiveHint) or what is returned. Useful but thin beyond the annotations.

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?

Three compact, front-loaded sentences with the create/update distinction leading. The "Required: entity, name, filter" clause duplicates the schema's required array and is the one line that doesn't earn its place.

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 mutation with a nested filter object and no output schema, the definition leaves the return value unstated (does it return the saved filter's id?) and doesn't warn about overwrite/name collisions despite destructiveHint=true. Adequate to call correctly, but an agent still has gaps about results and consequences.

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?

Schema description coverage is 100%, so the schema already documents id, name, entity, filter and shared. The description restates the required trio and the id-omission semantics that the schema already explains, and only the "(e.g. as a recipient list)" aside adds color. Baseline 3 applies where the schema does the heavy lifting.

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?

States a specific verb and resource ("Save a filter under a name") and immediately covers the upsert case ("or change one of yours: pass id"), so creation vs. modification is unambiguous. It doesn't contrast itself with any sibling such as delete_saved_filter or a search tool, which keeps it 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 Guidelines4/5

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

Gives concrete routing within the tool: omit id to create, pass id to modify, and set shared=true when you want a tenant-wide list. It offers no explicit when-not guidance (e.g. when to prefer a different tool, or cautions about reusing a name), so it is clear context rather than full exclusion 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.