Skip to main content
Glama

Update prospect

update_prospect
Idempotent

Update an existing prospect by id. The email is required even when only other fields change (it is the prospect's natural key). Send the full desired state: an omitted first_name, last_name or timezone is set to null and an omitted custom_fields becomes an empty object; company_name is the one field kept when omitted (pass company_name: null to clear it). Returns 404 for an id that does not belong to this workspace.

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>",
      "email": "<email>"
    },
    "name": "update_prospect"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesProspect id (uuid) as returned by create_prospect.
emailYesEmail address of the prospect (required, may be unchanged).
timezoneNoIANA time zone of the prospect, e.g. Europe/Warsaw. Used for send windows.
last_nameNoLast name.
first_nameNoFirst name.
company_nameNoCompany name as the operator knows it. Takes precedence over the email domain when grouping prospects into companies; omit to group by domain.
custom_fieldsNoCustom fields as a flat map of name -> value (strings, numbers or booleans; nested objects are rejected). Used by {{snippets}} in email templates.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare it is a non-destructive, idempotent write; the description adds the critical PUT-style semantics: omitted first_name/last_name/timezone become null, omitted custom_fields becomes an empty object, company_name is preserved unless explicitly nulled. It also discloses the 404 workspace-ownership failure mode, which is behavior an agent cannot infer from the 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-loaded with the action and id/key rule, then the replacement semantics, then the error case. Dense but every sentence carries operational information; 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?

Covers mutation semantics, required fields, nested custom_fields constraints indirectly via schema, and the 404 case. It does not state what a successful call returns, which is a minor gap given there is no output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Despite 100% schema coverage, the description adds semantics the schema does not: email is the natural key and must be resent, omission has field-specific side effects (null vs kept vs empty object), and passing company_name: null explicitly clears it. This directly prevents accidental data loss on partial updates.

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 ('Update an existing prospect by id') plus the natural-key constraint. An agent can distinguish it from create_prospect/get_prospect/delete_prospect without opening any 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?

Clear context that this targets an existing prospect and requires the email even for partial field changes, which is the main usage pitfall. It stops short of explicitly naming create_prospect as the alternative for new prospects or stating exclusions.

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.