Skip to main content
Glama

Create a Salesforce record

sf_create_record

Create a Salesforce sObject record and get its new record Id. Check createable fields with describe first for required field mapping.

Instructions

Create a single sObject record (POST /sobjects/{SObject}). Returns the new record Id. Use sf_describe_object first to check which fields are createable and required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fieldsYesField name -> value map, e.g. { "Name": "Acme", "Industry": "Technology" }. Use sf_describe_object to discover field names and types.
sobjectYesAPI name of the sObject, e.g. "Account", "Contact", or "My_Object__c".
toolingNoCreate via the Tooling API instead (for metadata records). Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden. It discloses the operation (POST), the effect (creating a record), and the return value (new record Id). It also warns about field requirements without over-explaining, which is strong for a create 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?

Two tightly written sentences: the first is action-oriented and states the return value, and the second provides a prerequisite. Every clause earns its place with no padding.

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?

Given the absence of annotations and an output schema, the description appropriately covers the core invocation details: what is created, how it is called, what is returned, and what to do first. It leaves out error behavior and bulk alternatives, but these are secondary for this tool.

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?

The schema already documents all three parameters with 100% coverage, so the baseline is 3. The description adds a useful pointer to sf_describe_object but does not add parameter-level meaning beyond what the schema provides.

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 states a specific verb ('Create'), a precise resource ('single sObject record'), and the HTTP endpoint. It establishes the scope as single-record creation, which clearly differentiates it from sibling bulk operations and update/delete tools.

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?

The description gives clear, actionable context: use sf_describe_object first to check createable and required fields. It does not explicitly exclude alternatives like sf_bulk_create_records, but the word 'single' communicates the intended use case clearly enough.

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