Skip to main content
Glama
semwalajay83-sem

salesforce-metadata-mcp

Create Streaming API PushTopic

sf_create_push_topic
Idempotent

Create a Streaming API PushTopic to publish real-time record changes. Specify an SOQL query and operations, then clients subscribe via CometD to receive notifications.

Instructions

Creates a Streaming API PushTopic for real-time record change notifications via the SObject API. Clients subscribe to /topic/TopicName using the CometD protocol. Specify the SOQL query that filters which records trigger events, and configure which operations (create, update, delete, undelete) and fields trigger notifications.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesSOQL query for the PushTopic
topicNameYesPushTopic name (max 25 chars)
apiVersionNoAPI version number (e.g. 62)
notifyForFieldsNoWhich fields trigger notificationsReferenced
notifyForOperationCreateNoNotify on record create
notifyForOperationDeleteNoNotify on record delete
notifyForOperationUpdateNoNotify on record update
notifyForOperationUndeleteNoNotify on record undelete
Behavior4/5

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

Annotations already indicate this is a non-readonly, idempotent, non-destructive operation. The description adds useful behavioral details: clients subscribe via CometD, and notifications are filtered by SOQL and operations. This goes beyond annotations without contradicting them.

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?

Three sentences, front-loaded with the main action, and every sentence adds value. No fluff or repetition of schema details.

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?

With 8 parameters, 2 required, and no output schema, the description adequately covers the core behavior and configuration. It mentions the subscription path and configurable operations. The only gap is no mention of the response/return value, but for a create operation it is less critical.

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?

Input schema provides 100% parameter descriptions, so baseline is 3. The description adds conceptual meaning by explaining that the SOQL query filters records and the operations/fields control which notifications trigger, which helps understand the overall mechanism beyond individual parameter names.

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 explicitly states the verb ('Creates') and specific resource ('Streaming API PushTopic') with a clear purpose ('real-time record change notifications'). It is distinct from sibling tools, all of which create different Salesforce artifacts.

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 context for when to use this tool (when real-time notifications on record changes are needed) and describes the mechanism (CometD subscription). It does not name alternative tools, but the use case is specific enough to guide selection.

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/semwalajay83-sem/salesforce-metadata-mcp'

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