Skip to main content
Glama

Add a data embed to a draft

add_article_embed

Adds a live data embed (a line or bar chart, a period comparison, or headline stats) to one of the signed-in person's draft articles, from their own verified data, and places it in the body after the heading given (or at the end). Returns the figures it shows: quote those exactly in the text around it instead of guessing. Money values are in cents. A draft holds at most 6 embeds. Snapshot (the default) freezes the figures when the article is published; live keeps them current. The article is saved as a draft only: nothing is published. The author reviews it, adds a cover image or data embeds and publishes it in the Shipfolio editor at editUrl. Needs the write scope. Before calling, show the user exactly what will change and wait for them to confirm.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "articleId": "<articleId>",
      "product": "<product>",
      "kind": "<kind>",
      "metrics": "<metrics>"
    },
    "name": "add_article_embed"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoWith Custom: the last day, yyyy-MM-dd
fromNoWith Custom: the first day, yyyy-MM-dd
kindYesLine, Bars, Comparison (first period against the last) or Stat (one headline figure per metric)
liveNotrue keeps the figures current after publishing; false (default) freezes them when published
rangeNoThe range: Last2Weeks, Last4Weeks, Last8Weeks, Last12Weeks, Last3Months, Last6Months, Last12Months, LaunchWeek or CustomLast3Months
captionNoA caption under the embed, at most 200 characters
metricsYes1 to 4 metrics, e.g. [{"metric":"Mrr"}] or [{"metric":"CloudCostByProvider","provider":"GoogleCloud"}]
productYesThe product to chart: a slug from list_embed_sources
articleIdYesThe draft article's id
granularityNoDay, Week or Month bucketsWeek
afterHeadingNoPlace it after the heading with this text, e.g. "What it costs to run"; at the end when left out or not found

Output Schema

NameRequiredDescriptionDefault
toYes
fromYes
kindYes
seriesYes
captionYes
editUrlYes
embedIdYes
shortcodeYes
granularityYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond annotations, it discloses a hard limit of 6 embeds per draft, explains snapshot versus live behavior after publishing, states that nothing is published by this call, notes money values are in cents, and instructs the agent to quote returned figures exactly. These details significantly reduce ambiguity for a mutating, non-idempotent add operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with purpose and constraints, and most sentences carry useful information. A few details, such as the full editor workflow sentence, could be tightened, but the overall structure is efficient for an 11-parameter tool.

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

Completeness5/5

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

Given the tool's complexity, the description covers the key behavioral constraints, confirmation requirement, draft-only semantics, and return-value instruction. An output schema exists, so the description does not need to explain return structure, and nothing essential for correct invocation appears missing.

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?

With 100% schema description coverage, the schema already documents most parameters thoroughly. The description adds useful meaning by stating money values are in cents and that product data comes from the user's own verified sources, which the schema does not fully convey.

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 names a specific verb and resource: adds a live data embed (line/bar chart, comparison, or stats) to the signed-in person's draft article. It distinguishes this from sibling embed tools by emphasizing data from the user's own verified analytics rather than product, stack, or tool embeds.

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?

It gives clear workflow context: the article remains a draft, the author publishes later in the editor, write scope is required, and the agent must show the user what will change and wait for confirmation. It does not explicitly name sibling tools or exclusions, but the intended use is clear from the resource-specific framing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources