Skip to main content
Glama

context_fields_purge

The destructive counterpart to a plain delete. A plain workspaces_context_fields_destroy removes only the definition and leaves each lead's stored value in place (it then shows on the lead page as an unregistered field). This starts a background task that also removes the key from every lead's context, then deletes the field.

Irreversible. Segment membership is not recomputed — re-run the affected segments' filters if the field fed one.

Returns {task_sqid}; poll jobs_get for progress.

Method: POST /api/v1/workspaces/{workspace_sqid}/context-fields/{sqid}/purge/

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": {
      "sqid": "<sqid>"
    },
    "name": "context_fields_purge"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqidYes

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?

With no annotations at all, the description carries the full burden and does most of it: it discloses irreversibility, asynchronous background execution, the specific data destroyed (key on every lead), and the non-obvious side effect that segment membership is not recomputed. It omits permission/auth requirements and rate limits, so it falls short of 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?

Four short, front-loaded paragraphs: the behavioral distinction first, then irreversibility, then side effects, then return/polling and method. Every sentence conveys decision-relevant information with 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?

Despite no annotations and no output schema, the description covers the destructive semantics, the async job model, the return shape (`{task_sqid}`), and how to poll — everything needed to call and follow up. It could be slightly more complete by clarifying the `sqid` scope and required permissions.

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 one parameter (`sqid`) with 0% schema description coverage, so the description would need to compensate. The POST path template hints that `sqid` identifies the context field within a workspace, but the description never states what `sqid` refers to or how the workspace is resolved (implicitly from auth), leaving a real ambiguity for a destructive call.

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 exactly what the tool does — removes the context field key from every lead's stored context and then deletes the definition — and explicitly contrasts it with the sibling `workspaces_context_fields_destroy`, which only deletes the definition. An agent can distinguish the two 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?

Names the plain-delete alternative, explains its shortcoming (values remain and surface as an unregistered field), and thereby gives a clear condition for choosing purge instead. It also gives a follow-up path (`jobs_get`) rather than leaving the caller to guess.

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.