Skip to main content

Elements MCP server tools reference

All 63 Elements MCP server tools: what each does, its required inputs, whether it reads or writes, and the plan, add-on and role it needs.

The Elements MCP (Model Context Protocol) server exposes 63 tools for working with Elements. This article lists every tool, what it does, the key inputs it needs, whether it only reads data or also writes to Elements, and what access it requires.

You don't need to call these tools by name: the skills described in Elements MCP server: supported skills pick the right tool for your request automatically. Use this list when you want to know exactly what your assistant can do. The set of available tools grows over time as Elements adds new skills.

No Elements MCP tool changes your Salesforce org. Every tool reads and changes only data stored in Elements: diagrams, MetaFields, saved views, proposed nodes, Spaces, stories and requirements and their links to metadata, and this connection's authorization. No tool writes to, deploys to, or deletes anything in a Salesforce org.

Prerequisites

Which tools your assistant can see

Every Elements MCP tool respects your existing Elements permissions: a tool never returns more than you could already see in the Elements app.

Which tools you see depends on the plan and licences of the Spaces you authorize. Elements checks role requirements, such as Space admin or Author, and access to a reference model, diagram or view when a tool is called; without the required access, the call is refused with access_denied. After a licensing change, start a new conversation so your assistant picks up the updated tool list.

Where supported, file delivery returns a finished result as part files whatever its size, and some tools always return their rows as part files (see Large results). Unfinished results and failures can remain inline.

Tool labels

Each tool below is labelled with the MCP annotation it sends:

  • Read-only: readOnlyHint: true.

  • Writes to Elements: readOnlyHint: false and destructiveHint: false.

  • Destructive in Elements: readOnlyHint: false and destructiveHint: true.

Six tools are labelled Destructive in Elements. Each has a safeguard:

  • import_diagram replaces the draft of a diagram with an edited copy. Your assistant first shows you what would be replaced and only goes ahead after you confirm. It changes the draft only; publishing stays with a person in Elements.

  • manage_diagram can remove activities, lines, notes and text boxes from one level of a diagram, along with the attachments and links on a removed activity. For a large removal, or one that would take away a sub-process beneath an activity, your assistant must first ask you to confirm. A removed sub-process goes to the Elements recycle bin, and Elements keeps a history entry of the level before the assistant's first change.

  • update_metafield: removing a picklist option, or narrowing which metadata a MetaField applies to, permanently deletes those values wherever they're used. Your assistant first shows you how many items would lose a value and only goes ahead after you confirm.

  • set_story_fields overwrites the listed fields on stories or requirements. Your assistant first shows you a preview and only goes ahead after you confirm.

  • remove_story_links removes links between stories or requirements and Salesforce metadata, including each link’s note, outcome, status and groups. Your assistant first shows you a preview and only goes ahead after you confirm.

  • revoke_access disconnects your assistant from Elements. It deletes no data; you reconnect by signing in again. Your assistant asks you to confirm first.

Spaces

Tool

What it does

Required inputs

Access requirements

get_space_context
Read-only

Shows the active Space and pages the Spaces authorized for this connection.

None. Optional: teamId, skip, pageSize.

—

set_active_space
Writes to Elements

Selects the Space for following calls.

teamId.

—

create_space
Writes to Elements

Creates a Space; consulting is the default type. Success returns teamId, name, type and nextStep. If MCP is enabled at creation, the Space is added to the connection; otherwise, enable MCP if needed and reconnect to use it. Without a consulting licence, creation returns access_denied.

name and a nonblank description (trimmed). Optional: prefix, type (free or consulting).

—

connect_salesforce_org
Writes to Elements

Starts connecting a Salesforce org to the Space. Returns a connection link and attempt identifier for you to complete the Salesforce login in a browser, or needs_selection with matching implementations.

orgType (production or sandbox). Optional: implementationId, newImplementation, manualSyncOnly.

Space admin rights and the mcp:spaces:create scope; the Space must not be suspended.

get_salesforce_connection_status
Read-only

Returns pending, connected, failed with a reason, or expired for a connection attempt.

attemptId.

The mcp:spaces:read scope. Only the user who started the attempt can check it, in the same Space, for one hour; the Space must not be suspended.

revoke_access
Destructive in Elements

Revokes this client connection after confirmation.

confirm: true.

At least one consented Space must have an active membership and not be suspended; otherwise revoke the connection from the 'Connected apps' tab in Elements. Confirmation required.

Metadata

Tool

What it does

Required inputs

Access requirements

list_reference_models
Read-only

Lists Salesforce reference models available in a Space, including whether each is a sandbox, production or unknown, and how recently it synced.

None. Optional: teamId, search.

—

get_dependencies
Read-only

Returns dependency counts and relationships for selected metadata nodes, with coverage and failures for each node. Available nodes include links to their pages in Elements. Counts can include relationships whose related node is unavailable.

refModelId, nodeIds or nodeId; direction and metadata selection options.

View access to the reference model where required.

get_metadata_component
Read-only

Returns metadata component details, fields or relationships, including links to available components and item failures.

refModelId and exactly one of nodeId or nodeIds. Optional: page.list for single-component paging.

View access to the reference model where required.

explain_metadata_components
Read-only

Explains metadata behavior in plain English. Uses AI. If generation fails, the server remembers the failure for about 32 minutes for that reference model, component and aspect, so trying again immediately returns the same failure. A saved result or a running generation takes priority. A rate_limited refusal starts no generation; your assistant can try again after retryAfterSeconds.

aspect and metadata node selection; refModelId when identifying a node.

Automation & Execution Intelligence add-on*

run_data_load_impact
Read-only

Analyzes automation and record-lock impact for a planned data load, including Workflow Rules and Process Builders. Immediate writes propagate through the fire chain; delayed writes are reported only, outside the transaction. Each direct automation carries timeTriggeredWrites: unique Object.Field strings.

refModelId and one or more target definitions.

View access to the reference model where required.

search_metadata
Read-only

Finds reference-model metadata by search terms. Inline results put exact API name matches first, ignoring letter case, including object-qualified terms such as Account.Name. With delivery: "file" it returns every match as part files.

refModelId, search terms.

View access to the reference model where required.

get_component_change_history
Read-only

Lists change history for a metadata component.

refModelId, nodeId.

View access to the reference model where required.

get_component_usage
Read-only

Returns usage and telemetry for an object.

refModelId, nodeId.

View access to the reference model where required.

get_metadata_source
Read-only

Returns source for selected metadata nodes.

refModelId, nodeIds.

View access to the reference model where required.

get_access
Read-only

Audits access granted to selected metadata nodes.

refModelId and nodeId or nodeIds.

View access to the reference model where required.

describe_metadata_schema
Read-only

Lists metadata types and the columns you can use in a query. parent_manage_package supports namespace-prefix eq / neq filters; tags and optimization_status are display-only.

refModelId. Optional: metadataList or allNodes.

View access to the reference model where required.

list_metadata_by_criteria
Read-only

Lists metadata matching criteria or a saved cleanup view. parent_manage_package works as a filter without being a requested column and takes a namespace prefix (case-insensitive): eq includes that namespace's components and neq excludes them. Only one parent filter per operator across parent_object and parent_manage_package is allowed, counting view filters.

refModelId; criteria or a view id.

View access to the reference model where required.

save_metadata_view
Writes to Elements

Saves a metadata criteria view.

refModelId, name, viewSpec.

Edit access to the reference model.

create_proposed_node
Writes to Elements

Adds a proposed metadata node to a reference model.

refModelId, metadataType, label, apiName, parentId identifying the parent container.

Edit access to the reference model.

list_managed_packages
Read-only

Lists installed managed packages, their namespaces, labels and component counts.

refModelId.

View access to the reference model where required.

plan_package_uninstall
Read-only

Plans a managed package removal and identifies dependencies. Each blocker counts the package components it references and gives each sampled component its node id. It never uninstalls anything.

refModelId, package selection.

View access to the reference model where required.

get_metafields
Read-only

Lists MetaField definitions and dependencies.

None. Optional: implementationId and filters.

—

create_metafield
Writes to Elements

Creates a MetaField definition.

implementation, title, type, appliesTo; list and multi-picklist types also require 1–200 options.

Space admin role.

update_metafield
Destructive in Elements

Updates a MetaField definition.

metafieldId and at least one definition field.

Space admin role.

set_metafield_values
Writes to Elements

Sets MetaField values on selected nodes. A call whose filter depends on a value it also writes is refused before any write.

refModelId and assignments: [{metafieldId, values: [...]}]; each value selects nodes with nodeIds or nodeFilter.

Edit access to the reference model.

set_metafield_dependency
Writes to Elements

Creates or replaces the dependency matrix between two MetaFields; values already on your items are never deleted. Can preview the change, including how many items would hold a newly forbidden value, before applying it.

controllerId, dependentId, relationMap. Optional: dryRun (default false).

Space admin role.

list_metadata_changes
Read-only

Lists metadata change records in a date range.

refModelId. Optional: fromDate, toDate, metadataTypes, status.

View access to the reference model where required.

* Advanced Metadata Management includes every add-on. On Core Metadata Management, this add-on is required in addition to Agentic Org Management, which the MCP server itself requires.

Org health

Tool

What it does

Required inputs

Access requirements

understand_org_health
Read-only

Returns a selected org-health dimension.

refModelId, area.

View access to the reference model.

get_org_health_detail
Read-only

Returns detail rows for an org-health chart or item.

refModelId, chartType; chart-specific detail inputs.

View access to the reference model.

Agent opportunities

Tool

What it does

Required inputs

Access requirements

scan_agentic_opportunities
Read-only

Ranks objects for agentic opportunities using usage signals.

refModelId.

View access to the reference model where required.

Diagrams

Tool

What it does

Required inputs

Access requirements

list_process_maps
Read-only

Lists process maps in the active Space, including creation and update dates and creator.

None. Optional: query for a name fragment, folderId, limit, skip.

—

get_process_map_outline
Read-only

Lists every level of a process map, including titles, nesting, activity counts, and publish and edit status. A map being copied from a template is included.

mapId.

View access to the named map where required.

get_diagram
Read-only

Reads one level of a process map or architecture diagram: activities, resources and RASCI (Responsible, Accountable, Support, Consulted, Informed), lines, notes and text boxes, with optional layout and attachments. Each activity resource includes its library type, or null when the library has none.

diagramId, or mapId plus levelNumber or title.

View access to the named map where required.

describe_diagram_schema
Read-only

Returns schemas for diagram reads and changes, including sizes, containers, connection points and attachments.

None.

—

manage_diagram
Destructive in Elements

Changes one level of a diagram: adds, updates, moves or removes activities, resources, lines, notes and text boxes, typed child levels and attachments by nodeId. Line ends accept fromPoint and toPoint with a side; architecture cards accept size and container settings. Ambiguous metadata names and invalid positions are refused. Your assistant previews the change first and asks you to confirm large removals or removing a child level.

diagramId and baseVersion. Optional: element changes, title or description, dryRun.

Diagram edit access, including level edit rights where applicable; manage role on the map to change the top level's title or description; edit or manage role on the reference model to attach its metadata.

create_map
Writes to Elements

Creates a new, empty map with one blank top-level diagram.

name. Optional: type, description, folderId.

Author role.

list_map_templates
Read-only

Lists the diagram templates you can start a map from.

None. Optional: templateSpaceId, category, type, search.

—

create_map_from_template
Writes to Elements

Starts a new map as a copy of a template; the copy runs in the background.

templateMapId, templateSpaceId.

Author role; view access and 'Can copy' on the template.

get_process_map
Read-only

Polls a generated process map and returns its status: running, complete (including empty), failed or unknown. Running and failed replies arrive inline; a stopped generation with a complete, unknown or empty outcome can arrive as a file. Each activity resource includes its library type, or null when the library has none. Your assistant stops polling once the status is final.

diagramId.

View access to the named map where required.

generate_process_map
Writes to Elements

Generates a process map from text or images, or from a Salesforce lifecycle object. For org objects, active record types are included by default; includeInactiveRecordTypes adds inactive ones. Your assistant checks for completion afterward. Uses AI.

Depends on source: text, images, or refModelId and objectApiName. Optional: includeInactiveRecordTypes.

Author role; edit access to the reference model for the org_object source.

upload_process_map_image
Writes to Elements

Uploads an image for process-map generation.

contentType and image data, or upload URL mode inputs.

Author role.

export_diagram
Read-only

Exports a process map for editing.

mapId.

Manage access to the diagram.

import_diagram
Destructive in Elements

Imports an edited process map, replacing the draft levels that match the imported map.

mapId and import source; confirm when applying.

Author role; edit access to that diagram.

Stories

Tool

What it does

Required inputs

Access requirements

list_stories_by_criteria
Read-only

Lists stories or requirements. User stories filtered by diagram include generation progress.

type (user_story or requirement). Optional: diagramId, filters, limit (default 50, max 200), skip, mode (page or manifest), format.

—

describe_story_schema
Read-only

Describes standard and custom story or requirement fields, allowed values, workflow statuses and releases.

type (user_story or requirement).

—

create_stories
Writes to Elements

Saves stories and requirements in bulk, with links, including selected backlog draft items using draftKey.

items, each with clientRef, type and summary. Optional: draftKey.

Requirements manager role.

set_story_fields
Destructive in Elements

Updates story and requirement fields per item or in bulk. Your assistant previews the change, then asks you to confirm.

type (user_story or requirement); updates or bulk; confirm: true to write.

Requirements manager role.

manage_story_links
Writes to Elements

Links stories and requirements to Salesforce metadata.

action (add); links, each with storyId and nodeIds.

Edit access to the reference model that holds each node.

remove_story_links
Destructive in Elements

Removes links between stories or requirements and metadata. Your assistant previews the change, then asks you to confirm.

links, each with storyId and nodeIds; confirm: true to remove.

Edit access to the reference model that holds each node.

generate_stories_from_diagram
Writes to Elements

Generates a draft story for each human resource on an eligible activity, or for each other resource if it has no human resource. An eligible activity has an incoming line, an outgoing line and at least one resource. Uses AI.

mapId. Optional: diagramId to generate on a child level (top level when omitted), activityMxKeys to select activities.

Requirements manager role; edit access to the level generated on.

Decision Engine

The Decision Engine tools plan a Salesforce automation or schema change before you make it. Each analysis runs in the background, and your assistant checks get_analysis_result before starting the next step. Elements keeps the analysis; any requirements and stories it produces stay drafts.

Tool

What it does

Required inputs

Access requirements

run_automation_inventory
Read-only

Inventories automation relevant to a proposed change, including object writes from synced Workflow Field Updates, which can include scheduled actions.

refModelId, request.

Edit access to the reference model.

run_automation_recommendation
Read-only

Recommends automation implementation options.

refModelId, missionId.

Edit access to the reference model.

run_dependency_scan
Read-only

Scans direct dependencies for a proposed change.

refModelId; missionId or standalone target.

Edit access to the reference model.

run_change_impact_analysis
Read-only

Analyzes the impact of a proposed change and reports work, investigations, coverage gaps and recorded failures.

refModelId, missionId, change description.

Edit access to the reference model.

run_architecture_risk_analysis
Read-only

Analyzes architecture risks in a proposed change.

refModelId and missionId or standalone target.

Edit access to the reference model.

run_backlog_draft
Read-only

Drafts requirements and stories for delivery.

refModelId, missionId.

Edit access to the reference model.

run_schema_inventory
Writes to Elements

Inventories schema related to a proposed change.

refModelId, request.

Edit access to the reference model.

run_schema_recommendation
Read-only

Recommends schema implementation options.

refModelId, missionId.

Edit access to the reference model.

get_analysis_result
Read-only

Retrieves a Decision Engine mission result.

refModelId, missionId.

Edit access to the reference model.

Playbook tools

These tools support the Remove Unused Apex playbook and other playbooks. See What is an MCP playbook?

Tool

What it does

Required inputs

Access requirements

has_event_monitoring
Read-only

Checks whether Apex event monitoring data is available.

refModelId.

View access to the reference model.

get_unused_apex_candidates
Read-only

Ranks potentially unused Apex using synced metadata and telemetry.

refModelId.

View access to the reference model.

run_code_search
Read-only

Searches indexed source for literal text.

refModelId, query.

View access to the reference model.

Large results

search_metadata answers one page inline; with delivery: "file" it returns every match as newline-delimited JSON (NDJSON) part files.

Eleven tools or modes always return rows as downloadable part files: get_dependencies, get_access, run_code_search, list_metadata_changes, list_metadata_by_criteria, get_metadata_source, list_managed_packages page mode, get_org_health_detail, get_component_change_history change logs, plan_package_uninstall blockers and permissions modes, and dependency scan results from get_analysis_result. They use newline-delimited JSON or comma-separated values where supported. Manifest mode can return counts without row files. Part-file links expire; call again for fresh links.

list_managed_packages, get_org_health_detail, get_component_change_history and list_metadata_changes don't accept delivery. The blockers and permissions modes of plan_package_uninstall refuse limit, skip and JSON format.

Replies have a 30,000-character response budget. An oversized resumable page may be shortened with a continuation hint; other oversized results are delivered as a file. File-only results stop at 2,000,000 rows or 2 GiB in total. A read that takes longer than 60 seconds for a batch can fail with a timeout. A file's availability is separate from the outcome of the underlying operation: a delivered file can hold a failed, unknown or empty result.

Your AI assistant downloads part files from the Elements result-file host, so your network, proxy or AI client must allow it. See Result-file downloads.

Frequently Asked Questions

Can any Elements MCP tool delete or change my Salesforce metadata?

No Elements MCP tool deletes or changes your Salesforce metadata. No tool writes to, deploys to or deletes anything in a Salesforce org. The tools labelled Writes to Elements or Destructive in Elements only create or change things inside Elements, such as Spaces, metadata views, MetaFields, proposed metadata nodes, maps and diagram drafts, and stories and requirements and their links to metadata.

Which Elements MCP tools use AI?

The Elements MCP tools that use a large language model are explain_metadata_components, the Decision Engine tools, generate_process_map and generate_stories_from_diagram. They run through the same licensed AI features Elements already offers in the web app.

Why can't my assistant see a tool listed here?

Your assistant can't see an Elements MCP tool when none of your authorized Spaces makes it available through its plan and licences. Role requirements are checked when the tool is called. Check the per-tool requirements in the tools reference on GitHub, see Elements MCP server troubleshooting for what each refusal message means, and start a new conversation after any licensing change.

Did this answer your question?