Skip to main content
Glama

ohmyho.st

Read source files

source_files
Read-onlyIdempotent

Lists a concrete version's files or reads one repository-relative file. File reads return ordinary UTF-8 content_text by default; binary files retain content_base64 with guidance. format base64 returns exact legacy bytes. An omitted commit_sha selects current main. Paths refer to the repository, never a local filesystem. API reference: https://docs.ohmyho.st/api-reference/read-managed-source-files.

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": {
      "project_id": "<project_id>",
      "format": "<format>"
    },
    "name": "source_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNo
formatYestext
commit_shaNo
project_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare this a safe, idempotent, non-destructive read. The description goes beyond them by disclosing the return fields (content_text vs. content_base64), the binary-file fallback behavior, and what 'format: base64' yields in exact bytes. It also warns that paths are repository-relative, never local — context an agent would otherwise get wrong. It omits failure modes for a missing path or bad sha.

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?

Four sentences, front-loaded with the dual purpose, then defaults, then the path caveat, then the doc link. Nothing is redundant against the annotations. The phrase 'format base64 returns exact legacy bytes' is slightly cryptic and would read better as a named parameter reference.

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

Completeness5/5

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

With no output schema, the description correctly shoulder the return-value burden by naming content_text and content_base64. It covers the versioning default, the path semantics, and the encoding mode. The only residual gap, project_id and listing pagination, is minor relative to what is supplied.

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 0%, so the description must carry parameter meaning. It clarifies path (repository-relative), commit_sha (defaults to main when omitted), and format (text default vs. base64 legacy bytes), which is real added value. But project_id — a required parameter with an opaque pattern — receives no explanation at all, leaving one of four parameters undocumented in both schema and description.

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?

The first sentence gives two concrete verbs and resources: listing a version's files, or reading one repository-relative file. The 'repository-relative' qualifier and 'concrete version' scope separate it from local-filesystem reads. It stops short of naming how it differs from siblings such as source_get or source_versions.

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 does supply a key default rule — 'An omitted commit_sha selects current main' — which tells the agent how to browse without pinning a version. However, it never states when to pick this tool over source_get, source_versions, or source_diff, nor that omitting path produces the listing mode; the agent must infer that from 'Lists ... or reads'.

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.