Skip to main content
Glama
zackscriven

ghl-mcp-server-v2

by zackscriven

ghl_affiliate_update

Idempotent

Replace an existing affiliate for a location by sending the complete affiliate record; omitted fields are cleared, so include all details to avoid unintended data loss.

Instructions

Update Affiliate Replace an affiliate for a location. Fields omitted from the body are cleared, so send the complete affiliate. Endpoint: PUT /affiliate-manager/{locationId}/affiliates/{affiliateId} (Version header: v3; source: v3/affiliate-manager-v3.json) Requires a Sub-Account (location) token. OAuth scopes: affiliate-manager.write

Input Schema

NameRequiredDescriptionDefault
bodyYesRequest body (schema carried verbatim from the official OpenAPI spec).
locationIdYesLocation Id
affiliateIdYesAffiliate Id

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.1.0

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the most consequential behavior: omitted body fields are cleared, so a partial payload silently wipes data. It also adds the endpoint, API version header, spec source, token type, and required OAuth scope (affiliate-manager.write), all of which the agent needs before calling a mutation.

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?

Front-loaded with purpose and the critical clearing warning, followed by compact structured lines for endpoint, auth, and scope. No filler; every line is actionable.

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?

A nested-body mutation tool with no output schema is well covered on the input and auth side. The one gap is that it says nothing about what the call returns or how to confirm the replacement succeeded, leaving that entirely to inference.

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% and every body field is documented, so the baseline is 3. The description adds a genuine semantic layer the schema lacks: the body must be complete because absent fields are cleared, which changes how an agent must construct the payload.

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?

States a specific verb and resource (update/replace an affiliate scoped to a location) and makes the replace semantics explicit via 'Replace an affiliate'. It does not name the closely related siblings (ghl_affiliate_update_status, ghl_affiliate_update_referral_id, ghl_affiliate_update_suspension), so an agent must infer which update variant to pick.

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?

Gives a real prerequisite (requires a Sub-Account/location token) and a usage-critical instruction to send the complete affiliate, but offers no explicit when-to-use guidance versus the many sibling affiliate update tools. Usage is implied by the replace semantics rather than spelled out.

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

Deploy Server

Other Tools