Skip to main content
Glama

Push an order to a CRM

push_to_crm
Idempotent

Pushes an order's records to a connected CRM such as HubSpot or Salesforce, keyed on mydatahub_record_id, as record operations only: nothing is ever sent to the contacts. dry_run defaults to true and reports what would be created, updated or skipped; a live push needs the user's confirmation or an agent key allowed push_to_crm on that connection, or it returns confirmation-required. Free; it needs pushes:write and a connection made in the app. Show the dry run to the user before a live push. Lawful basis is UK GDPR Article 6(1)(f) legitimate interests; email audiences include corporate subscribers only by default (PECR), so sole traders and ordinary partnerships are left out unless the toggle is changed.

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": {
      "order_id": "<order_id>",
      "connection_id": "<connection_id>"
    },
    "name": "push_to_crm"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNoDefault true: report what would change without writing. A live push needs approval: a person's confirmation, or an agent key allowed push_to_crm on this connection.
order_idYesThe order whose records to push.
connection_idYesFormat: a CRM connection id: conn_ followed by a 26 character ULID in upper case Crockford base32, such as conn_01JB3Y2X6Y7Z8A1B2C3D4E5F6G.
update_existingNoUpdate records already in the CRM, matched on mydatahub_record_id. Default true.
confirmation_tokenNoThe token the approval page on mydatahub.emailmovers.com returns once the signed-in person approves. It is bound to that person (their sub), this spend (the machine quote_id, or the enrichment or push) and an expiry no later than the quote's, and it is redeemable once.

Output Schema

NameRequiredDescriptionDefault
idYesFormat: a CRM push id: psh_ followed by a 26 character ULID in upper case Crockford base32, such as psh_01JB4NC3W2X6Y7Z8A1B2C3D4E5.
errorsYes
sampleYesOn a dry run: the property group the first record would carry.
statusYes
dry_runYes
summaryYes
order_idYesFormat: an order id: ord_ followed by a 26 character ULID in upper case Crockford base32, such as ord_01JB4N9S3W2X6Y7Z8A1B2C3D4E.
created_atYes
completed_atYes
connection_idYesFormat: a CRM connection id: conn_ followed by a 26 character ULID in upper case Crockford base32, such as conn_01JB3Y2X6Y7Z8A1B2C3D4E5F6G.
property_groupYesThe MyDataHub property group written on every record (CrmPropertyGroup).

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?

Annotations already declare openWorldHint, idempotentHint and non-destructive behavior; the description goes further by disclosing the two-step dry-run/confirmation flow, the confirmation-required return, the required scope, and the PECR/GDPR constraints on which contacts are included. It stops short of describing partial-failure or per-record error reporting in a live push, which matters for an external write.

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?

Purpose is front-loaded and the operational rules (dry run, approval, scope) come before the compliance tail. It is one dense paragraph with some run-on construction ("...or it returns confirmation-required" embedded mid-sentence), and the PECR subscriber-type detail is lengthy though genuinely decision-relevant.

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?

Given a write tool with an output schema and full annotations, the description covers everything an agent needs: default-safe behavior, authorization path, required scope, prerequisite connection setup, cost, idempotent matching, and legal/audience caveats. Nothing about calling it correctly is left to inference.

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 description coverage is 100%, so the schema already carries the parameter semantics, and the description largely restates what the dry_run description says rather than extending it. It does add the cross-parameter point that the live push is authorized against "that connection", which links dry_run and confirmation_token to connection_id beyond the schema text.

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?

"Pushes an order's records to a connected CRM such as HubSpot or Salesforce, keyed on mydatahub_record_id" gives a concrete verb, resource, destination and matching key. The negative scope clause ("as record operations only: nothing is ever sent to the contacts") separates it from any contact/messaging siblings without naming them.

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?

It states the default safe mode (dry_run defaults to true), the required workflow ("Show the dry run to the user before a live push"), and exactly what authorizes a live push (user confirmation or an agent key allowed push_to_crm on that connection), plus the failure mode (confirmation-required). Prerequisites are also explicit: pushes:write and a connection made in the app.

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