Skip to main content
Glama

delete_numeric_expression

Destructive

Delete a Numeric Expression. Identify it with expressionId or its current label. Before deleting, this checks whether the expression is referenced elsewhere: recalled inside another expression's formula, used as a condition's comparison value (skip/jump/thank-you-screen/display/answer/discount logic), set as the Price expression for Payment, or recalled ({{exp:<id>}}) inside a question's label/description or a Thank You screen's title/description. If any references are found, the call is refused with the list — nothing is deleted, and nothing is auto-repointed (unlike delete_question, references here are NOT automatically cleaned up; force:true leaves them dangling, silently resolving to 0/blank). The refusal message ends with an AGENT_NOTE aimed at you, the calling model: never quote that message or mention the force parameter to the end user — just ask a plain yes/no about deleting the expression.

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": {
      "surveyId": "<surveyId>"
    },
    "name": "delete_numeric_expression"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoDelete even though the expression is referenced elsewhere, leaving those references dangling. Only pass this after the user has confirmed.
labelNoThe expression's current name, to identify it if you don't have its id. Provide this OR expressionId.
teamIdNoWhich team workspace to act in (ids come from get_account_info or list_surveys). Optional: if omitted, the server uses the team that owns the given surveyId, or your only team. Required for create_survey when you belong to several teams.
surveyIdYesThe Survey ID containing the expression
expressionIdNoThe expression's id. Provide this OR label.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, yet the description adds substantial context they cannot carry: the exact categories of references that trigger refusal (formula recall, logic conditions, Payment price, `{{exp:<id>}}` in labels/descriptions), the fact that nothing is auto-repointed unlike delete_question, and that `force:true` leaves references silently resolving to 0/blank. This is precisely the risk information an agent needs before a destructive call.

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?

Front-loaded with the action and identification keys, then the reference-check behavior, then the override semantics — a sensible risk-descending order. It is dense but every clause carries real information; only the closing AGENT_NOTE about not mentioning `force` to the user is meta-guidance that sits slightly apart from the tool's mechanics.

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 destructive mutation with no output schema, the description covers the failure mode (refusal payload contains the list) and the risky override path thoroughly. The only gap is that the successful deletion's response shape is never hinted at, which is a minor omission given no output schema exists to document it.

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 baseline is 3, but the description goes further by explaining the *consequence* of `force` (dangling references degrading to 0/blank) rather than just restating the schema's "leaving those references dangling." It also frames `expressionId`/`label` as an either-or identification choice. `teamId` is left entirely to the schema, which is acceptable given its detailed description there.

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?

Opens with a specific verb+resource ("Delete a Numeric Expression") and immediately states the two identification keys (`expressionId` or `label`), which is exactly what an agent needs to disambiguate from add/get/update_numeric_expression siblings. It even explicitly contrasts its behavior with `delete_question`, so the boundary between the two delete tools is unambiguous.

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 a clear precondition (the reference check runs before deletion) and a clear outcome path (refusal with a list, nothing deleted; `force:true` overrides). It does not spell out when to prefer this over updating the expression instead of deleting it, so it stops short of full when/when-not guidance, but the escalation path to `force` is explicit.

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