Skip to main content
Glama

update_creative

Modify the name and URL tags of an existing ad creative, as only these fields can be updated after creation.

Instructions

Update an existing ad creative. Only name and url_tags can be modified after creation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
creative_idYesCreative ID to update
nameNoNew creative name
url_tagsNoNew URL tags

Implementation Reference

  • Registration of the 'update_creative' MCP tool via server.tool(), including its schema (creative_id required, name and url_tags optional) and handler function.
    // ─── update_creative ───────────────────────────────────────
    server.tool(
      "update_creative",
      "Update an existing ad creative. Only name and url_tags can be modified after creation.",
      {
        creative_id: z.string().describe("Creative ID to update"),
        name: z.string().optional().describe("New creative name"),
        url_tags: z.string().optional().describe("New URL tags"),
      },
      async ({ creative_id, name, url_tags }) => {
        try {
          const params: Record<string, unknown> = {};
          if (name) params.name = name;
          if (url_tags) params.url_tags = url_tags;
          const { data, rateLimit } = await client.post(`/${creative_id}`, params);
          return { content: [{ type: "text" as const, text: JSON.stringify({ ...data as object, _rateLimit: rateLimit }, null, 2) }] };
        } catch (error) {
          return { content: [{ type: "text" as const, text: `Failed: ${error instanceof Error ? error.message : String(error)}` }], isError: true };
        }
      }
    );
  • Handler function for update_creative. Takes creative_id, name, url_tags; builds params and sends POST request to /{creative_id} via the AdsClient. Returns JSON result or error.
    async ({ creative_id, name, url_tags }) => {
      try {
        const params: Record<string, unknown> = {};
        if (name) params.name = name;
        if (url_tags) params.url_tags = url_tags;
        const { data, rateLimit } = await client.post(`/${creative_id}`, params);
        return { content: [{ type: "text" as const, text: JSON.stringify({ ...data as object, _rateLimit: rateLimit }, null, 2) }] };
      } catch (error) {
        return { content: [{ type: "text" as const, text: `Failed: ${error instanceof Error ? error.message : String(error)}` }], isError: true };
      }
    }
  • Input schema for update_creative using Zod: creative_id (string, required), name (string, optional), url_tags (string, optional). Description states only name and url_tags can be modified after creation.
    {
      creative_id: z.string().describe("Creative ID to update"),
      name: z.string().optional().describe("New creative name"),
      url_tags: z.string().optional().describe("New URL tags"),
    },
  • The AdsClient.post() helper method used by the update_creative handler to send the POST request.
    async post(
      path: string,
      params?: Record<string, unknown>
    ): Promise<ClientResponse> {
      return this.request("POST", path, params);
  • src/index.ts:53-53 (registration)
    Registration call in index.ts that wires up registerCreativeTools (which includes update_creative) during server initialization.
    registerCreativeTools(server, client);

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the burden of behavioral disclosure. It usefully states that only name and url_tags are modifiable, which is a key behavioral constraint. However, it does not mention permissions, error handling, immutability of other fields in practice, or what happens when attempting to modify unmodifiable fields, leaving some transparency gaps.

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 just two sentences and contains no fluff. The first sentence states the purpose, the second adds a critical constraint. Every word earns its place, making it highly efficient and front-loaded.

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?

For a simple 3-parameter tool with no output schema or nested objects, the description adequately covers the core operation and its limitations. It does not explain return values or error semantics, but given the low complexity and existing schema, this is not a significant gap. It fully supports correct tool selection among many siblings.

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 provides 100% description coverage for all three parameters. The description reinforces that only name and url_tags are updatable, which aligns with the schema but does not add significant new meaning beyond what the schema conveys. Baseline 3 is appropriate.

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 specifies the exact verb 'Update', the resource 'existing ad creative', and the critical constraint that 'only name and url_tags can be modified'. This clearly distinguishes it from create_creative and update_ad, which target different resources or operations.

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 phrase 'after creation' implies when this tool is appropriate (updating an existing creative) and the restriction 'only name and url_tags' tells the agent what can be changed, preventing misuse. However, it does not explicitly name alternatives like create_creative for initial creation or update_ad for ads, so it lacks an explicit when-not statement.

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