Skip to main content
Glama
ZLeventer

hubspot-mcp

hs_update_contact

Update one or more properties on an existing contact in HubSpot CRM by specifying the contact ID and property values.

Instructions

Update one or more properties on an existing contact.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contactIdYesHubSpot contact ID
propertiesYesProperties to update, e.g. { jobtitle: 'VP Marketing' }

Implementation Reference

  • The actual handler function that executes the update contact logic. Makes a PATCH request to HubSpot CRM API /crm/v3/objects/contacts/{contactId} with the provided properties.
    export async function updateContact(args: z.infer<typeof UpdateContactSchema>) {
      return hubspot(`/crm/v3/objects/contacts/${args.contactId}`, "PATCH", {
        properties: args.properties,
      });
    }
  • Zod schema defining input validation for hs_update_contact: requires contactId (string) and properties (record of strings).
    export const UpdateContactSchema = z.object({
      contactId: z.string().describe("HubSpot contact ID"),
      properties: z.record(z.string()).describe("Properties to update, e.g. { jobtitle: 'VP Marketing' }"),
    });
  • src/index.ts:117-122 (registration)
    Tool registration on the MCP server with name 'hs_update_contact', description, schema, and handler binding.
    server.tool(
      "hs_update_contact",
      "Update one or more properties on an existing contact.",
      UpdateContactSchema.shape,
      async (args) => { try { return ok(await updateContact(args)); } catch (e) { return err(e); } },
    );
  • src/index.ts:13-14 (registration)
    Import of UpdateContactSchema and updateContact from tools/contacts module.
      UpdateContactSchema, updateContact,
    } from "./tools/contacts.js";
Behavior2/5

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

With no annotations, description must disclose behavior. It states 'Update' but does not explain what happens if contactId is invalid, whether partial updates are supported, or what the tool returns. Missing critical behavioral details for a mutation tool.

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?

Single sentence, no redundancy, front-loaded with core action. Every word contributes to purpose.

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

Completeness2/5

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

Lacks return value information (no output schema) and guidance on valid property names. With nested object parameters, more detail would improve completeness. Sibling hs_list_properties suggests property validation exists but is not mentioned.

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 covers both parameters with descriptions. The description adds no extra meaning beyond the schema. Baseline 3 for 100% schema coverage.

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?

The description clearly states 'Update one or more properties on an existing contact', specifying the verb (Update), resource (contact), and scope (one or more properties). It distinguishes from siblings like hs_create_contact and hs_get_contact.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

No explicit guidance on when to use this tool vs alternatives. It does not mention that it should be used for existing contacts only, nor does it point to hs_create_contact for new contacts. Implicit but insufficient.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ZLeventer/hubspot-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server