Skip to main content
Glama

repair_import_custom_values

Destructive

Admins only. Re-applies the custom values of an earlier import_leads run to the right leads. Runs before the fix of 11.11.2026 could attach custom values to the wrong lead of the same run (insert order). Reads the original rows of the run (import log), matches each row to a lead CREATED BY THAT RUN by e-mail, otherwise title + phone, otherwise a unique title, and sets exactly the row's custom values (fields the row left empty are cleared). Core lead columns are not touched. PREVIEW BY DEFAULT; commit=true writes. Later manual changes to those custom values are overwritten — re-apply them afterwards.

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": {
      "run_id": "<run_id>"
    },
    "name": "repair_import_custom_values"
  }
}

Input Schema

NameRequiredDescriptionDefault
commitNotrue writes. Default false = preview.
run_idYesThe import run (list_import_runs).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations (destructiveHint=true, readOnlyHint=false) by disclosing the preview-by-default/safe path, the exact matching algorithm (e-mail, then title+phone, then unique title), that empty fields in the row are cleared, that core lead columns are untouched, and that later manual changes are overwritten. This is precisely the extra behavioral context annotations cannot carry.

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?

Dense but front-loaded: access restriction and core action first, then the bug context, then the matching logic, then the preview/commit safety note, then the overwrite warning. Nearly every clause earns its place, though the bug-history clause is the least operationally necessary.

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

Completeness5/5

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

For a destructive, non-idempotent repair tool with no output schema, the description covers permissions, preconditions, matching behavior, the preview/commit safety mechanism, and side effects on manual edits. Nothing an agent needs to call it safely is missing.

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 both parameters are documented; the description still adds meaning by stressing that commit=true is what actually writes and by tying run_id to an earlier import_leads run (with list_import_runs named in the schema). Marginal added value, but consistent.

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: 'Re-applies the custom values of an earlier import_leads run to the right leads', and implicitly distinguishes itself from import_leads (it repairs a past run rather than performing one) and from set_custom_values (bulk repair from the import log rather than manual setting). An agent can identify the operation without opening the schema.

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 conditions: admin-only, applies to runs executed before the 11.11.2026 fix, preview by default with commit=true to write, and a warning to re-apply later manual edits afterwards. It does not explicitly name an alternative tool (e.g., set_custom_values) for the manual path, which keeps it just under a 5.

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.