Skip to main content
Glama
samarthanalytics-sj

Samarth GTM MCP Server

Official

workspace_resolve_conflict

Resolve merge conflicts in a GTM workspace by providing the resolved entity body and its type; the API automatically wraps it in the correct envelope.

Instructions

Resolve a merge conflict for a workspace entity. You supply the resolved entity body plus its type; the GTM API wraps it in an Entity envelope ({ "tag": {...} } / { "trigger": {...} } / …), which this tool builds for you. NOTE: This is a complex operation — review the GTM UI conflict resolution first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmYesMust be true to confirm this write operation.
accountIdYesThe GTM account ID.
entityJsonYesJSON string of the RAW entity body (e.g. the tag object itself), NOT the Entity envelope — it is wrapped under entityType for you. If you pass an already-wrapped { "<entityType>": {...} } object it is used as-is.
entityTypeYesWhich Entity slot the resolved body fills. The resolve_conflict API takes an Entity envelope, so a resolved tag is sent as { "tag": {...} }, a trigger as { "trigger": {...} }, etc.
containerIdYesThe GTM container ID.
fingerprintYesThe workspace fingerprint at the time of conflict resolution.
workspaceIdYesThe GTM workspace ID.
changeStatusNoHow the resolved entity changed relative to the base version (added/deleted/modified/none). Optional.
Behavior3/5

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

No annotations provided, so the description must fully disclose behavior. It explains the wrapping of the entity body in an envelope and the confirm parameter, but does not detail success/failure outcomes, side effects, or destructive nature.

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?

The description is extremely concise yet informative: three sentences covering purpose, wrapping mechanism, and a cautionary note. No fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity (8 parameters, 7 required, no output schema), the description provides key behavioral context but lacks information on error handling, return values, and post-conditions.

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 description coverage is 100%, but the description adds value by clarifying the entityJson parameter expects raw entity body (not envelope) and the confirm parameter must be true. This goes beyond the schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool resolves a merge conflict for a workspace entity, using a specific verb and resource. It distinguishes from other workspace tools like workspace_get_status and workspace_sync by focusing on conflict resolution, but does not explicitly compare to siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description advises reviewing the GTM UI first, implying complex usage and a prerequisite. However, it lacks explicit guidance on when not to use the tool or alternatives for conflict resolution.

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/samarthanalytics-sj/samarth-analytics-mcp'

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