Skip to main content
Glama

Trackkr.app - Parcel log for apartments

log_incoming_parcel

Accepts parsed text from Google Cloud Vision OCR label scans and/or a trusted Firebase Storage photoUrl, cross-references internal Firestore unit listings, enforces a 4-hour idempotent lock on (trackingNumber + unitId), and schedules automated email alerts via SMTP.

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": {
      "businessId": "<businessId>"
    },
    "name": "log_incoming_parcel"
  }
}

Input Schema

NameRequiredDescriptionDefault
qtyNoNumber of parcels in this delivery (integer between 1 and 99).
actorNoAudit identity of the caller or AI agent triggering the mutation.
notesNoOptional staff or carrier notes (maximum 1,999 characters).
unitIdNoOptional explicit Firestore unit document ID under businesses/{businessId}/units/{unitId}. If omitted, resolved deterministically from rawOcrText.
photoUrlNoPublic HTTPS Firebase Cloud Storage URL of the package photo (must be hosted on firebasestorage.googleapis.com, storage.googleapis.com, or *.firebasestorage.app). Embedded in the resident notification email.
businessIdYesTenant business identifier (must match the authenticated property businessId, 1-128 alphanumeric/dash/underscore chars).
occupantIdNoOptional explicit occupant ID within the matched unit. If omitted, resolved deterministically from rawOcrText.
rawOcrTextNoRaw OCR text extracted from a shipping label or envelope (up to 10,000 characters). Used to extract tracking numbers and match unit/occupant. At least one of rawOcrText, photoUrl, or unitId is required.
typeOfMailNoPackage category: "letter" | "envelope" | "small box" | "big box" | "furniture/appliances" | "other".small box
dateReceivedNoOptional ISO date received in YYYY-MM-DD format (defaults to current UTC date).
timeReceivedNoOptional time received string (e.g. "2:30 PM", defaults to current UTC time).
pickupMessageNoOptional custom pickup location instruction included in the resident notification email (maximum 100 characters).
trackingNumberNoOptional explicit carrier tracking number (UPS 1Z..., Amazon TBA..., USPS, or FedEx). Paired with unitId for 4-hour idempotent deduplication.
idempotencyModeNoBehavior when the same (trackingNumber + unitId) was already logged within the last 4 hours: "merge" increments qty on the existing pending parcel; "reject" returns REJECTED_DUPLICATE without modifying.merge

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full behavioral burden and does disclose important side effects: Firestore cross-referencing, a 4-hour idempotent lock on trackingNumber plus unitId, and automated SMTP email alerts. It still omits authentication expectations, failure behavior beyond the schema's idempotencyMode note, and what the tool returns.

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?

The description is a single dense but purposeful sentence with no filler. It front-loads the accepted inputs and then moves through lookup, deduplication, and notification behavior. It could be slightly more scannable, but it is not bloated.

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 complex 14-parameter mutation with no output schema and no annotations, the description covers the main workflow and side effects well. However, it does not explain the return value, error states, authorization requirements, or what record is ultimately created, which leaves meaningful gaps for an agent invoking a write-capable tool.

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 parameter meanings are already well documented in the input schema. The description adds only limited extra meaning, mainly the interaction between trackingNumber and unitId for the 4-hour deduplication lock and the OCR/photoURL input modes. The baseline of 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?

The description states a specific action: accepting OCR-derived label text and/or a Firebase Storage photo URL, looking up Firestore unit listings, applying an idempotency lock, and scheduling email alerts. That is clearly an inbound parcel logging operation. It does not explicitly contrast itself with the sibling tools, but the core purpose is unambiguous.

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

Usage Guidelines2/5

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

The description explains what the tool does but gives no explicit guidance on when to use it versus get_pending_parcels or release_parcel_with_signature. It also does not state when not to use it or what prerequisites must be satisfied before calling it.

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