Skip to main content
Glama

Build a client report

build_report_link
Read-onlyIdempotent

Link to the analytics report laid out as a document — cover, executive summary and one section per page — ready to save as PDF from the browser. Pick the sections you want; sections with no data are skipped, so asking for more than exists never leaves a blank page. Sentiment only appears on Inferno, where brand listening lives. The same filters as the Analytics screen apply and are printed on the cover: one account and one network (platform). Saved niche and account analyses (list_research; Trends in the app) can be appended with researchIds, up to 5; they are never included unless listed. The top-conversations table is never in the report: it names end customers.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "build_report_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoWindow: 7, 30, 90, 180 or 365 (default 30).
metricsNoLines drawn on the trend chart, as on the Analytics screen. Omit for the default (the first two metrics with data). Metrics with no data in the period are left out.
languageNoLanguage of the PDF, independent of the app's (e.g. ru for an agency's Russian client). Omit for the workspace's saved one, else the app's. The workspace's report brand (an agency's logo, name and colour, set in the report dialog) is applied automatically.
platformNoOne network only (e.g. instagram, tiktok, facebook). Must have a connected account in this workspace, otherwise the report ignores it. Omit for all networks.
sectionsNoSection ids, in any order. Available: kpis, trend, engagementEvolution, followers, audience, demographics, cadence, platforms, channels, gbp, stories, linkedin, topPosts, inboxKpis, inboxVolume, inboxResponse, inboxAuto, inboxAutomation, inboxDelivery, inboxAccounts, inboxPlatforms, inboxWhen, sentiment. Omit for the full report; pass an empty list for a report with only the competition analyses.
accountIdNoOne account only. Omit for all of them.
researchIdsNoIds of saved competition analyses to append, one section each (max 5). The research tools (research_account, research_niche, analyze_reel) return it as researchId; otherwise ask the human which analyses they want. One without results yet is shown with a note.
workspaceIdNoWorkspace to work on (an id from list_workspaces). Not needed when this connection is tied to one workspace, or when you pass an account: the account's workspace is used.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / language
      Added value: +{
      +  "description": "Language of the PDF, independent of the app's (e.g. ru for an agency's Russian client). Omit for the workspace's saved one, else the app's. The workspace's report brand (an agency's logo, name and colour, set in the report dialog) is applied automatically.",
      +  "enum": [
      +    "en",
      +    "es",
      +    "pt",
      +    "fr",
      +    "de",
      +    "it",
      +    "ru",
      +    "nl",
      +    "pl"
      +  ],
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, non-destructive, closed-world) it discloses what gets skipped (sections with no data), what is deliberately excluded (top-conversations, for privacy), the max of 5 appended analyses, and the fallback note when an analysis has no results. Those are the non-obvious traits an agent needs to predict output.

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 deliverable is front-loaded and most sentences carry distinct information, but the middle section is dense with parenthetical asides and the sentiment/Inferno remark sits awkwardly between the section-selection and filter material.

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 no output schema, the description does its job by describing the returned artifact. It omits link lifetime or sharing/permission scope, which matters for something handed to a client, so it falls just short of fully complete.

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 already 100%, so the baseline is 3; the description still adds the cross-parameter constraint that only one account and one network apply (and are printed on the cover) and clarifies that researchIds are never appended unless explicitly listed. It also clarifies sentiment is conditional on the Inferno workspace, which is not expressible in the schema.

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 first sentence names the concrete deliverable: a link to an analytics report laid out as cover, executive summary and one section per page, exportable to PDF. That is a specific verb-plus-resource statement an agent can act on without opening the schema.

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 explains the selection model (pick sections, ask for more than exists, empty list = competition analyses only) and points to list_research / research tools as the source of researchIds. It never frames when to choose this over an alternative report path, but no obvious sibling alternative is evident.

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