Skip to main content
Glama

Get a document upload link

hip_get_upload_target

Get a short-lived upload URL for a file the person already has (a PDF, Word file or image). Use this for an existing file; use hip_add_text_document for text you wrote with the person, or hip_set_letter for a letter in a handwriting-style font. Needs a job_handle from hip_create_job. Returns upload_url and required_headers: PUT the file's exact bytes there, then list it in hip_update_job's files. Send file_size, the file's exact size in bytes: the URL is signed for that size. File type and size limits are the same as the website.

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": {
      "job_handle": "<job_handle>",
      "filename": "<filename>",
      "file_size": "<file_size>"
    },
    "name": "hip_get_upload_target"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameYesthe document's file name with its extension, e.g. lease.pdf. The extension decides how it is read: PDF, Word (.doc or .docx), text, RTF, ODT, or an image (JPG, PNG, TIFF, BMP, GIF or WebP). Use the same filename in hip_update_job's files.
file_sizeYesthe file's exact size in bytes; the PUT must send exactly this many
job_handleYesthe job_handle that hip_create_job returned (job_ followed by 32 hex characters). Only the API key that created the job can use it.
content_typeNooptional: the file's MIME type, e.g. application/pdf. The upload URL is signed for it, so the PUT must send this exact Content-Type header (the result's required_headers). Left out, or not a plain type/subtype: application/octet-stream.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / content_type / description
      Added value: +"optional: the file's MIME type, e.g. application/pdf. The upload URL is signed for it, so the PUT must send this exact Content-Type header (the result's required_headers). Left out, or not a plain type/subtype: application/octet-stream."
    • addedInput schema / properties / content_type / examples
      Added value: +[
      +  "application/pdf"
      +]
    • addedInput schema / properties / filename / description
      Added value: +"the document's file name with its extension, e.g. lease.pdf. The extension decides how it is read: PDF, Word (.doc or .docx), text, RTF, ODT, or an image (JPG, PNG, TIFF, BMP, GIF or WebP). Use the same filename in hip_update_job's files."
    • addedInput schema / properties / filename / examples
      Added value: +[
      +  "lease.pdf"
      +]
    • addedInput schema / properties / job_handle / description
      Added value: +"the job_handle that hip_create_job returned (job_ followed by 32 hex characters). Only the API key that created the job can use it."
    • addedInput schema / properties / job_handle / examples
      Added value: +[
      +  "job_0123456789abcdef0123456789abcdef"
      +]
    • addedInput schema / properties / job_handle / pattern
      Added value: +"^job_[0-9a-f]{32}$"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / file_size
      Added value: +{
      +  "description": "the file's exact size in bytes; the PUT must send exactly this many",
      +  "maximum": 104857600,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "job_handle",
      -  "filename"
      -]New value: +[
      +  "job_handle",
      +  "filename",
      +  "file_size"
      +]
  3. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only declare the operation is not read-only, not idempotent, not destructive and closed-world; the description adds genuinely new behavior: the URL is short-lived, it is signed for the exact byte size and Content-Type, and the upload must be completed with a PUT of exact bytes before being registered. The one weak spot is 'File type and size limits are the same as the website', an unresolvable external reference an agent cannot act on.

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 disambiguates, then states prerequisites and the call sequence - a logical, dense ordering with almost no filler. The 'same as the website' clause is the only sentence that does not earn its place, since it conveys nothing executable.

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?

For a tool with an output schema, a fully documented 4-parameter schema, and a multi-step upload workflow, the description supplies exactly what structured fields cannot: sequencing, the signing constraints, and the next call. Nothing needed to invoke it correctly is 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?

Schema coverage is 100%, so baseline is 3, but the description adds cross-parameter meaning: file_size must match what the signed URL was issued for, and the same filename must be reused in hip_update_job's files. content_type is left entirely to the schema, which is acceptable given its full description.

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?

States a specific verb and resource ('Get a short-lived upload URL for a file') plus the accepted file kinds (PDF, Word, image), which immediately separates it from document-creation siblings. The second sentence names the exact sibling tools it is not, so an agent can route without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use ('for an existing file') and when-not-to-use, naming hip_add_text_document for user-authored text and hip_set_letter for letters. It also states the prerequisite (job_handle from hip_create_job) and the required follow-up step (list it in hip_update_job's files), so the whole workflow position is clear.

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