Skip to main content
Glama
agent-bridge-mcp

agent-bridge-mcp

by sakerice

get_artifact

Retrieve media files generated by delegated jobs: small images return inline for review, while videos, audio, PDFs, and large images return file paths and metadata.

Instructions

委譲ジョブが生成したメディアファイルを取得する。画像(png/jpg/gif/webp、3MB以下)は画像コンテンツとしてインライン返却されるので、内容を確認しユーザーに提示すること。動画・音声・PDF・大きい画像はパスとメタ情報が返るので、そのパスのファイルをユーザーに直接提示すること。pathはジョブのcwdからの相対パスまたはcwd配下の絶対パス。

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>",
      "path": "<path>"
    },
    "name": "get_artifact"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes取得するファイル(cwd相対またはcwd配下の絶対パス)
job_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

There are no annotations, so the description carries the full burden, and it does substantial work: it discloses the 3MB cutoff, the supported image formats, and the two very different return shapes (inline image content versus path plus metadata). That is exactly the sort of behavior an agent needs before deciding how to present a result. It stops short of covering failure modes such as a missing job or path, 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?

Three sentences, front-loaded with the purpose and then the two branches of behavior, with essentially no filler. The only mild redundancy is restating the path scoping rule that the schema already carries, but it is short enough not to be costly.

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 no annotations, no output schema and only two parameters, the key thing an agent needs to know is what comes back and how to present it. The description answers that thoroughly for both the inline and path cases. It would be complete with a note on prerequisites, such as whether the job must have finished and what happens when the file is absent.

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 coverage is 50%. The path parameter is already documented in the schema, and the description largely repeats that same cwd-relative-or-absolute rule rather than adding format details, so it earns little beyond the baseline. The job_id parameter has no schema description and is never explained in the text; the agent must infer it comes from a prior delegation call. That leaves a real gap for half the parameters.

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 opens with a specific verb and a precisely qualified resource: retrieving media files produced by a delegated job. That scope is distinct from the sibling job_* tools, which surface job metadata rather than the generated artifacts themselves, so an agent can tell what this tool is for without opening the schema.

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?

It gives clear post-retrieval handling rules broken down by file type: small images come back inline and should be inspected and shown to the user, while videos, audio, PDFs and large images should be handed over as paths. What it does not do is state when to call this instead of a sibling such as job_result or job_status, or whether the job must be finished first; the usage context is implied rather than spelled out.

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