Skip to main content
Glama

EasyTerritory MCP

request_assignment_upload

[Tier 2 — Direct Build intake] When: you have part-to-territory assignment rows or a legacy spreadsheet (e.g. Zip2Terr.csv with Postal Code + Territory/Region/Division) that you cannot inline in direct_build. Stage rows here, then call direct_build(assignments_handle=). FOUR WAYS TO STAGE (all return upload_handle): (A) MCP csv_file: pass the uploaded CSV as a ChatGPT/OpenAI file parameter. (B) MCP csv_text: pass csv_text= — preserve newlines; do NOT JSON-encode with PowerShell ConvertTo-Json (corrupts rows). (C) MCP assignments: pass assignments=; append with upload_handle. (D) HTTP POST /assignments/upload with assignments, csv_text, or csv_file. Legacy columns (Postal Code, Territory, Region, Division) auto-map to part_id + territory_path. Then: direct_build(assignments_handle=, part_layer=..., tal_label=..., map_session_id=...). Handle is single-use and expires (default 1h).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
csv_fileNo
csv_textNo
assignmentsNo
ttl_secondsNo
upload_handleNo
guidance_handleNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose meaningful traits: the handle is single-use, expires (default 1h), legacy columns auto-map, and each staging path returns upload_handle. It omits auth/permission requirements and size or validation limits, so it is strong but not exhaustive.

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?

Dense but well-structured: the 'When:' condition is front-loaded, and the A/B/C/D enumeration makes the branching scannable. It is longer than most definitions but every clause carries actionable content; only the terse parentheticals border on clutter.

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?

Given six parameters, zero schema coverage, and an existing output schema (so return values need no explanation), the description supplies the intake conditions, all staging paths, the auto-mapping behavior, the handle lifecycle, and the exact next call. An agent has everything needed to stage rows and proceed.

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 description coverage is 0%, so the description must compensate, and it does explain csv_file, csv_text (with the newline/JSON-encoding warning), assignments (appendable via upload_handle), and ttl_seconds indirectly via the 1h expiry note. guidance_handle is never mentioned, leaving one of six parameters undocumented.

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 (stage/upload) on a specific resource (part-to-territory assignment rows or a legacy spreadsheet) and explicitly names its role in a workflow. It clearly distinguishes itself from direct_build by framing itself as the staging step that feeds assignments_handle into direct_build.

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?

Opens with an explicit 'When:' condition, names the alternative (inline in direct_build), enumerates four concrete staging methods (A csv_file, B csv_text, C assignments, D HTTP POST), and states the required follow-up call. Nothing about when to use it vs. alternatives is left to inference.

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