Skip to main content
Glama

Touch

touch

Creates an empty file or updates a file's access time on a connected MicroPython board.

Instructions

Create an empty file (or update access time) on the device.

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

Input Schema

NameRequiredDescriptionDefault
pathYesFile path to touch (e.g. "/data.txt").

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It never says what happens when the path already exists (truncate vs. preserve content), whether parent directories are created, whether permissions or missing-path errors occur, or that this is an idempotent write — all critical for a mutation tool with zero annotation coverage.

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?

One tight sentence with the primary action front-loaded and the secondary behavior parenthesized. The phrase "on the device" is mildly redundant but nothing is wasted.

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?

An output schema exists, so return values need not be explained, but this is a write operation with no annotations and the description leaves key behaviors unstated: existing-file handling, error conditions, and directory-creation side effects. For a mutation tool that is incomplete.

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%: the single path parameter is documented in the schema with an example. The description adds no format, path-resolution, or sandbox-scoping detail beyond what the schema already states, 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 ("Create an empty file") and adds the alternate semantic ("update access time"), which matches the conventional meaning of touch. It does not distinguish itself from siblings like write_file or mkdir, which an agent must choose between when creating files.

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?

No when-to-use or when-not-to-use guidance is given. There is no mention of choosing this over write_file for creating content-bearing files, or over mkdir/list_files to check existence first, so selection must be inferred from Unix convention alone.

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