Skip to main content
Glama

Complete a document upload

helix_foundry_complete_document_upload
Idempotent

After an upload_document action, once its bytes are PUT to the upload URL: check them and add the document to its document set, which every ontology whose current version reads the set then reads (reads says how). Completing twice is no error.

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": {
      "ontology_id": "<ontology_id>",
      "document_id": "<document_id>"
    },
    "name": "helix_foundry_complete_document_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
document_idYesThe document upload_document created.
ontology_idYesFoundry ontology identifier.
workspace_idNoHelix workspace identifier. May be empty when the caller has only one workspace (a service key always does).
use_case_run_idNoAn open run of a use case (helix_foundry_start_use_case_run) to record this upload under; empty for none.

Output Schema

NameRequiredDescriptionDefault
readsYes
documentYes
content_trustYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare idempotentHint=true, destructiveHint=false, and readOnlyHint=false, so the safety profile is largely covered. The description does add real value by spelling out the downstream effect (the document becomes visible to ontologies reading its set) and confirming in prose that 'Completing twice is no error.' It omits what happens when the byte check fails, which is the main behavioral gap for a non-read-only tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single compact sentence with no filler, and the precondition is front-loaded. However, the nested relative clause 'which every ontology whose current version reads the set then reads (reads says how)' forces the reader to re-parse, and the parenthetical points at something unnamed.

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

Completeness4/5

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

With an output schema present, annotations covering safety and idempotency, and full schema coverage, the description only needs to supply the call sequence and side effect — both are given. The missing piece is error behavior when byte verification fails, which matters for a mutating completion step.

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 all four parameters (document_id, ontology_id, workspace_id, use_case_run_id) are already documented in the schema. The description adds no syntax, format, or constraint detail beyond what the schema supplies, so the baseline 3 applies.

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?

States a specific verb and resource: verifies the uploaded bytes and adds the document to its document set, which ontologies then read. This is materially distinct from siblings like list_documents or get_ontology. It stops short of 5 because the trailing clause 'which every ontology whose current version reads the set then reads (reads says how)' muddles the scope rather than sharpening it.

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

Usage Guidelines4/5

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

Gives an explicit precondition chain: it applies 'After an upload_document action, once its bytes are PUT to the upload URL.' That tells the agent exactly when this tool is valid and implies it must not be called before the PUT. No alternatives or exclusions are named, which keeps it out of 5 territory.

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