Skip to main content
Glama

artifact

Read-only

Reads a current UTF-8 workspace file and its summary for a delegated task, supporting pagination and snapshot validation.

Instructions

读工作区当前 UTF-8 文件及摘要。

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": {
      "task_id": "<task_id>",
      "relative_path": "<relative_path>"
    },
    "name": "artifact"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
offsetNo
task_idYes
relative_pathYes
snapshot_sha256No

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.4

TDQS

C2.2/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. Beyond that the description adds only the UTF-8 encoding and workspace scoping; it says nothing about truncation of large files (implied by limit max 16000), how offset/limit interact, what snapshot_sha256 does, or what happens when the path is missing — all behavior an agent needs for a paginated read.

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 short clause with zero padding, so nothing is wasted. However, brevity here comes from under-specification rather than tight writing — there is no structure separating purpose, scoping, or pagination behavior.

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

Completeness2/5

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

With five undocumented parameters, no output schema, and no annotation coverage of paging or versioning semantics, the description is too thin for the tool's actual complexity. An agent cannot reliably construct a correct call — particularly which task_id to supply and how to page a large file — from this definition.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across five parameters, so the description carries the full burden — and it describes none of them. Required task_id (the workspace/task the file belongs to), required relative_path, offset/limit pagination, and snapshot_sha256 (presumably a consistency/version pin) are all left entirely unexplained, which is a serious gap for a 0%-coverage schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a verb (读/read) and a resource (工作区当前 UTF-8 文件及摘要 — workspace current UTF-8 file and summary), so the general intent is inferable. But '摘要' (summary/digest) is left ambiguous — it is unclear whether the tool returns a digest alongside file content or reads a separate summary artifact — and nothing distinguishes it from siblings like 'result' or 'info' that could also surface file-derived data.

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 statement of when to use this tool, when not to, or which alternative to pick when the goal is e.g. listing files versus reading one. An agent must guess from the name alone that this is the file-reading entry point.

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