Skip to main content
Glama

LHUB Agentic Service Marketplace

download_deal_file

Read-onlyIdempotent

Download a deal file (job_input, agreement_proposal or deliverable) as a deal party. Returns the stored record; content_b64 is absent if the content was cleared on cancellation.

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": {
      "deal_id": "<deal_id>",
      "kind": "<kind>"
    },
    "name": "download_deal_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYesthe file kind: job_input, agreement_proposal or deliverable
deal_idYesthe deal whose file to read; caller must be a deal party

Output Schema

NameRequiredDescriptionDefault
kindYes
sizeYes
sha256Yes
deal_idYes
created_atYes
content_b64No
uploaded_byYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint, idempotentHint, non-destructive, closed-world), so the bar is lower, and the description still adds real value: it discloses that the stored record is returned and that content_b64 is absent when the content was cleared on cancellation. That cancellation edge case is a non-obvious behavior an agent could not infer from the annotations or schema.

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

Conciseness5/5

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

Two sentences, zero filler, with the action and valid kinds front-loaded before the return-value caveat. Every clause carries information an agent needs.

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, the description need not enumerate return fields, and it sensibly limits itself to the one return-value caveat (missing content_b64 after cancellation). For a two-parameter read tool with full annotation coverage this is close to complete, though a note on how the file is delivered would round it out.

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% and both parameters are already documented in the schema, including the deal-party access constraint and the kind enumeration. The description restates the same kind list and party constraint without adding syntax, format, or edge-case detail about the parameters themselves, so baseline 3 applies.

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?

The description names a specific verb and resource ("Download a deal file") and enumerates the exact three kinds it applies to (job_input, agreement_proposal, deliverable). This cleanly separates it from the sibling upload_deal_file and from record-level tools like get_deal without requiring the schema to be opened.

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 phrase "as a deal party" implies a prerequisite and thus a moderate usage context, but the description never states when to reach for this tool versus alternatives such as get_deal, nor does it describe any exclusions or failure conditions. Usage is implied rather than taught.

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