Skip to main content
Glama
Prime MCP Server

Prime MCP Server

by MikahDev

prime_create_attachment

Create a new job attachment record with file details and optional metadata; handle the actual file upload separately.

Instructions

Create a new attachment record for a job. Note: File upload may require separate handling.

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_id": "<job_id>",
      "file_name": "<file_name>"
    },
    "name": "prime_create_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNoInternal notes
titleNoAttachment title/description
job_idYesThe job ID this attachment belongs to
file_urlNoURL of the file (if already uploaded)
file_nameYesOriginal file name
file_sizeNoFile size in bytes
mime_typeNoMIME type of the file
descriptionNoDetailed description
estimate_idNoRelated estimate ID
allocation_idNoRelated allocation ID
attachment_type_idNoAttachment type ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose one genuinely useful behavior — that this creates the metadata record while file upload is handled separately, which prevents a common misuse. However, it says nothing about permission requirements, whether job_id must reference an existing job, idempotency, or what is returned on success.

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 short sentences with the core action front-loaded and the caveat second. No filler, though the brevity leaves substantive gaps that a slightly longer note could have closed.

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 an 11-parameter mutation tool with no annotations and no output schema, the description is thin. The upload caveat is the most valuable part, but the absence of permission, failure-mode, and return information leaves the definition only adequately complete.

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% across 11 parameters, so the schema already explains job_id, file_name, file_url, and mime_type. The description only implicitly clarifies that file_url is for already-uploaded files via the upload note, adding little beyond the schema's own descriptions.

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 verb and resource ('Create a new attachment record for a job'), which clearly separates it from read/update siblings like prime_get_attachment and prime_update_attachment. It stops short of naming an alternative, but the action 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?

There is no explicit when-to-use or when-not-to-use guidance and no routing to an alternative. The caveat 'File upload may require separate handling' hints at scope but is framed as a warning rather than a usage condition.

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

Deploy Server

Other Tools