Skip to main content
Glama

Create Match Run

create_match_run

Create a run that MATCHES a workspace's records against the stored provider files (HG Insights, BrightQuery): every company or person in its input paired with the provider records it may be, each pair scored. It does nothing until dispatched. IT WRITES NOTHING TO ANY CRM AND SPENDS NO CREDITS. Its result is a source that Enrichment and Create read later; matching itself changes no record. ITS INPUT IS ONE OF TWO: a dataset the workspace uploaded (dataset_id), or a CRM connection's accounts or contacts (crm_connection_id). Name exactly one. A workspace with no CRM uses a dataset. ITS SETTINGS ARE A MATCHING RULE (rule_id): which provider files, the accept and reject thresholds, and how results are delivered. The rule's object type says whether it matches companies (account) or people (contact), and a dataset must hold the same. Matching rules are the workspace's, not a connection's, and are made by a person in the app. PUT IT IN A PLAN WITH A SCHEDULE to match again each month: create_match_run, then dispatch_run. A plan holding only match steps needs no CRM connection.

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": {
      "rule_id": "<rule_id>"
    },
    "name": "create_match_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoWhat to call the run. Defaults to the rule's name.
rule_idYesThe Matching rule this run uses.
dataset_idNoA dataset of the workspace's to match. Name this or crm_connection_id, not both.
connection_idNoIgnored: a match run is the workspace's. Accepted so a plan's steps all take one.
crm_connection_idNoA CRM connection whose accounts or contacts to match. Name this or dataset_id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the supplied annotations: it states the run does nothing until dispatched, writes nothing to any CRM, spends no credits, and that its result is a source consumed later by Enrichment and Create. That resolves the main ambiguity left by readOnlyHint=false / destructiveHint=false — whether creating and running a match mutates data or costs credits.

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-loads the action and the no-writes/no-credits guarantees before the input/settings detail, and every sentence carries operational information. It is longer than necessary with all-caps emphasis and some repetition ("matching itself changes no record" restates the earlier guarantee), which trims it below a 5.

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 multi-param mutation tool with no output schema, it covers what the call produces (a source read by Enrichment and Create), what is required (rule_id, plus one input source), and how it composes into a plan with dispatch_run. An agent has enough to invoke it correctly without further context.

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%, but the description adds real constraints the schema only hints at: exactly one of dataset_id/crm_connection_id, and that rule_id's object type (account vs contact) must match the dataset's contents. It does not restate the connection_id 'ignored' semantics in prose, but that is already fully documented in the schema.

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 ("Create a run that MATCHES a workspace's records against the stored provider files") and immediately describes the output shape (company/person paired with provider records, each pair scored). It also distinguishes itself from the create_*_run siblings by naming the two provider sources and the matching rule that governs behavior.

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?

Explicit conditional guidance: input is either a dataset_id or a crm_connection_id, "Name exactly one," and "A workspace with no CRM uses a dataset." It also routes the agent forward ("create_match_run, then dispatch_run") and notes a plan of only match steps needs no CRM connection, so when-to-use and prerequisites are both covered.

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.