Skip to main content
Glama

Prepare a source upload

source_prepare_upload

Prepare a dataset upload: create a pending spatial source and return a presigned upload capability for GIS files such as GeoJSON, Shapefile, GeoPackage, KML, or CSV with coordinates.

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": {
      "ownerHandle": "<ownerHandle>",
      "upload": "<upload>"
    },
    "name": "source_prepare_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
uploadYes
ownerHandleYes
conversation_idNoThe conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / conversation_id
      Added value: +{
      +  "description": "The conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.",
      +  "type": "string"
      +}
  2. Added

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare non-read-only, non-destructive, closed-world behavior, so the description's job is to add state-changing detail. It does contribute meaningfully by saying the source is only 'pending' and that a presigned upload capability is returned, revealing a two-phase flow. It stops short of stating that the source is not usable until the upload completes, whether the pending record expires, or the size/time limits that constrain the 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?

It is a single tightly constructed sentence that front-loads the core action and appends the return value and accepted formats. Slight density in the format list costs a little, but there is no filler or repetition.

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

Completeness3/5

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

For a mutating, nested-schema tool with no output schema and no annotation depth beyond safety hints, the description covers the high-level contract (pending source + presigned capability) but omits follow-up steps, expiry semantics, and constraints on most nested fields. It is adequate to recognize the tool but not sufficient to call it correctly without inspecting the schema.

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 only 33%, so the description needs to compensate for a nested upload object with fields like slug, collectionSlug, fileSize, expiresIn, and contentType. It only indirectly touches file format (relevant to fileName/contentType) and says nothing about the slug/collectionSlug naming rules or the 200 MB size ceiling. Most caller-facing meaning therefore remains undocumented in both places.

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+resource pair ('create a pending spatial source') and adds an unusual second effect ('return a presigned upload capability'), plus a concrete list of accepted GIS formats. An agent can tell this is the upload-initiation step, though it never names or contrasts a sibling such as source_import_url.

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?

The word 'Prepare' plus 'pending' implies this is the first step before an actual file transfer, which is useful contextual guidance. However, there is no explicit statement of when to prefer this over a URL-import path, no preconditions (auth, permissions, collection existence), and no note about what the caller must do after receiving the presigned capability.

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