Skip to main content
Glama
@hyperstar/mcp

@hyperstar/mcp

Official

Create File Upload

create_file_upload

Prepare actor-bound campaign or reply attachments and contract, draft, or final uploads, returning direct PUT instructions; browser handoffs require the initiating human user.

Instructions

Prepare an actor-bound campaign/reply email attachment or campaign contract/draft/final upload. Return direct PUT instructions; browser handoffs require the initiating human user.

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": {
      "target": "<target>",
      "file": "<file>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "create_file_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYes
targetYes
idempotency_keyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.2
    • changedInput schema / properties / target / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "campaign_id": {
      -        "exclusiveMinimum": 0,
      -        "maximum": 9007199254740991,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "email_attachment",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "campaign_id"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "campaign_creator_id": {
      -        "exclusiveMinimum": 0,
      -        "maximum": 9007199254740991,
      -        "type": "integer"
      -      },
      -      "campaign_id": {
      -        "exclusiveMinimum": 0,
      -        "maximum": 9007199254740991,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "contract",
      -        "type": "string"
      -      },
      -      "replace_file_id": {
      -        "exclusiveMinimum": 0,
      -        "maximum": 9007199254740991,
      -        "type": "integer"
      -      },
      -      "replacement_confirmation": {
      -        "const": "user_authorized",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "campaign_id",
      -      "campaign_creator_id"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "campaign_creator_id": {
      -        "exclusiveMinimum": 0,
      -        "maximum": 9007199254740991,
      -        "type": "integer"
      -      },
      -      "campaign_id": {
      -        "exclusiveMinimum": 0,
      -        "maximum": 9007199254740991,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "draft",
      -        "type": "string"
      -      },
      -      "replace_file_id": {
      -        "exclusiveMinimum": 0,
      -        "maximum": 9007199254740991,
      -        "type": "integer"
      -      },
      -      "replacement_confirmation": {
      -        "const": "user_authorized",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "campaign_id",
      -      "campaign_creator_id"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "campaign_creator_id": {
      -        "exclusiveMinimum": 0,
      -        "maximum": 9007199254740991,
      -        "type": "integer"
      -      },
      -      "campaign_id": {
      -        "exclusiveMinimum": 0,
      -        "maximum": 9007199254740991,
      -        "type": "integer"
      -      },
      -      "kind": {
      -        "const": "final",
      -        "type": "string"
      -      },
      -      "replace_file_id": {
      -        "exclusiveMinimum": 0,
      -        "maximum": 9007199254740991,
      -        "type": "integer"
      -      },
      -      "replacement_confirmation": {
      -        "const": "user_authorized",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "campaign_id",
      -      "campaign_creator_id"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "campaign_id": {
      +        "exclusiveMinimum": 0,
      +        "maximum": 9007199254740991,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "email_attachment",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "campaign_id"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "kind": {
      +        "const": "reply_attachment",
      +        "type": "string"
      +      },
      +      "platform": {
      +        "enum": [
      +          "tiktok",
      +          "instagram",
      +          "youtube",
      +          "buyer"
      +        ],
      +        "type": "string"
      +      },
      +      "thread_id": {
      +        "exclusiveMinimum": 0,
      +        "maximum": 9007199254740991,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "platform",
      +      "thread_id"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "campaign_creator_id": {
      +        "exclusiveMinimum": 0,
      +        "maximum": 9007199254740991,
      +        "type": "integer"
      +      },
      +      "campaign_id": {
      +        "exclusiveMinimum": 0,
      +        "maximum": 9007199254740991,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "contract",
      +        "type": "string"
      +      },
      +      "replace_file_id": {
      +        "exclusiveMinimum": 0,
      +        "maximum": 9007199254740991,
      +        "type": "integer"
      +      },
      +      "replacement_confirmation": {
      +        "const": "user_authorized",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "campaign_id",
      +      "campaign_creator_id"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "campaign_creator_id": {
      +        "exclusiveMinimum": 0,
      +        "maximum": 9007199254740991,
      +        "type": "integer"
      +      },
      +      "campaign_id": {
      +        "exclusiveMinimum": 0,
      +        "maximum": 9007199254740991,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "draft",
      +        "type": "string"
      +      },
      +      "replace_file_id": {
      +        "exclusiveMinimum": 0,
      +        "maximum": 9007199254740991,
      +        "type": "integer"
      +      },
      +      "replacement_confirmation": {
      +        "const": "user_authorized",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "campaign_id",
      +      "campaign_creator_id"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "campaign_creator_id": {
      +        "exclusiveMinimum": 0,
      +        "maximum": 9007199254740991,
      +        "type": "integer"
      +      },
      +      "campaign_id": {
      +        "exclusiveMinimum": 0,
      +        "maximum": 9007199254740991,
      +        "type": "integer"
      +      },
      +      "kind": {
      +        "const": "final",
      +        "type": "string"
      +      },
      +      "replace_file_id": {
      +        "exclusiveMinimum": 0,
      +        "maximum": 9007199254740991,
      +        "type": "integer"
      +      },
      +      "replacement_confirmation": {
      +        "const": "user_authorized",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "campaign_id",
      +      "campaign_creator_id"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. First observedv0.3.0

TDQS

B3.3/5.0
Behavior3/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=true), it usefully discloses that the tool does not move bytes itself but returns direct PUT instructions, and that uploads are actor-bound with a human-in-the-loop requirement for browser handoffs. It omits other material behavior: upload URL expiry, what happens to a replaced file when replace_file_id is used, and how idempotency is enforced on retry.

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?

Two tightly written sentences with the primary purpose front-loaded and the return behavior second. Nothing is padded, though the compressed phrasing ('actor-bound ... contract/draft/final upload') sacrifices some readability for brevity.

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 moderately complex tool with a deeply nested oneOf schema and no output schema, the description covers the essential mental model: it prepares an upload, returns PUT instructions, and has an actor-binding constraint. The gaps are secondary detail (replacement authorization semantics, key uniqueness lifetime) rather than blockers for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across three required parameters plus a five-branch nested target, so the description carries the full burden. It loosely sketches the target kinds but says nothing about the file object (name, content type, size), the idempotency_key, or replace_file_id with its required 'user_authorized' confirmation constant, which is exactly the kind of semantic the schema cannot convey.

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?

The description names a specific verb ('Prepare') and enumerates the resource variants: campaign/reply email attachment and campaign contract/draft/final upload. That maps closely onto the five target kinds in the schema and separates it from sibling completion tools like complete_file_upload and cancel_file_upload, though it never names those siblings explicitly.

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?

It implies this is the setup step that yields PUT instructions rather than performing the transfer, which hints at a prepare-then-complete flow, and it states a real precondition for browser handoffs (the initiating human user must be present). It never says when to use this versus complete_file_upload/cancel_file_upload, or what to do if the upload is abandoned.

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