Skip to main content
Glama
growsurf

GrowSurf MCP Server

Official

Prepare Program Resource File

growsurf_prepare_program_resource_file

Prepare a local file as a GrowSurf FILE program resource: validate the filename, MIME type, and base64 bytes, then return the upload ticket and result needed for creation or replacement.

Instructions

Prepare a local file for a FILE Program Resource. Accepts a safe file name, matching supported MIME type, and padded base64 bytes, up to 10 MB. GrowSurf requests a one-time ticket and uploads only to the secure HTTPS destination selected by GrowSurf. Returns the original uploadTicket and uploadResult required for file resource creation or replacement. Altered upload results are not valid. The tool does not accept upload URLs or credentials and never retries an ambiguous upload. Requires GROWSURF_UPLOAD_ALLOWED_ORIGINS on the server; without it, only LINK and TEXT resources are available. Targets campaignId if supplied, otherwise GROWSURF_CAMPAIGN_ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileNameYesA safe base name with an allowed extension: jpg/jpeg/png/gif/webp/pdf/csv/zip/doc/docx/xls/xlsx/ppt/pptx.
mimeTypeYesThe supported MIME type matching fileName's extension.
campaignIdNoTarget program (campaign) id for this call. Defaults to GROWSURF_CAMPAIGN_ID when omitted. Program IDs also identify newly created programs without restarting the server.
fileBase64YesCanonical padded base64 file bytes only. Do not include a data-URL prefix or whitespace.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
uploadResultNoThe minimal signed upload confirmation. Pass it unchanged to create/update.
uploadTicketNoThe one-time GrowSurf ticket. Pass it unchanged to create/update.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.19.9
    • changedInput schema / properties / campaignId / description
      Previous value: -"Target program (campaign) id for this call. Defaults to GROWSURF_CAMPAIGN_ID when omitted. Pass the `id` returned by growsurf_create_campaign to configure or operate a program you just created, without restarting the server."New value: +"Target program (campaign) id for this call. Defaults to GROWSURF_CAMPAIGN_ID when omitted. Program IDs also identify newly created programs without restarting the server."
  2. Addedv0.14.0

TDQS

A4.1/5.0
Behavior5/5

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

The annotations only say not-readOnly, openWorld, non-idempotent, non-destructive; the description adds ticket semantics, that GrowSurf itself selects the secure HTTPS destination, the no-credentials/no-URL constraint, the never-retry-an-ambiguous-upload policy, and the altered-results caveat. These are exactly the operational traits annotations cannot convey.

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?

Front-loads the purpose, then layers constraints, security, and return contract in compact sentences with no filler. Dense but every clause carries information; only the env-var and default-campaign notes could be tighter.

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?

With an output schema present there is no need to document the return shape, yet the description still names uploadTicket/uploadResult, and it covers size limits, MIME/extension pairing, security boundaries, retry behavior, and the server-side enablement prerequisite. An agent has everything needed to invoke this correctly rather than guess.

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?

Schema description coverage is 100%, so the schema already documents fileName, mimeType, campaignId, and fileBase64 in detail. The description mostly restates those (safe name, matching MIME, padded base64) and only adds the 10 MB ceiling and campaign-target default behavior; baseline 3 is appropriate.

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 ('Prepare a local file for a FILE Program Resource') and explains that the output is the uploadTicket/uploadResult needed for file resource creation or replacement, which implicitly distinguishes it from growsurf_create_program_resource and on-the-wire upload tools. It is clear, though it never names the sibling it hands off to.

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?

Gives real context for when this applies: only for FILE resources, gated on GROWSURF_UPLOAD_ALLOWED_ORIGINS (otherwise only LINK/TEXT), with an explicit 'does not accept upload URLs or credentials' exclusion. It stops short of stating the sequencing against growsurf_create_program_resource / growsurf_update_program_resource.

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