Skip to main content
Glama

Read a service's values file

config_read

Reads a service config file as YAML, returns flattened scalar paths for updates, and reports the current branch and any uncommitted edits.

Instructions

The whole file as YAML, plus every scalar value flattened with the exact PATH to send back to config_set. Also says which branch the working copy is on and whether it already has uncommitted edits — worth knowing before adding more.

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": "<project>",
      "region": "<region>",
      "env": "<env>",
      "service": "<service>"
    },
    "name": "config_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
envYesdev | uat | preprod | prod…
regionYesregion id or name
projectYesproject id or name
serviceYesthe service name as config_files reports it

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden. It does disclose meaningful traits — the return shape (full YAML plus flattened scalars with the exact PATH), the current branch, and whether there are uncommitted edits — which is genuinely useful pre-write context. It is silent on permissions/auth requirements, failure modes, and size/rate limits, so it is only partially complete.

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?

Two compact sentences that front-load the most important information (what comes back) and follow with the secondary context (branch and dirty state). The trailing clause 'worth knowing before adding more' is mildly chatty but still earns its place by hinting at sequencing.

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?

There is no output schema, so the description must explain return values — and it does so well by enumerating the YAML body, flattened scalars with PATH, branch, and dirty state. Parameter coverage is handled by the schema, and the remaining gap (no mention of error behavior or permissions) is minor for a read-only tool.

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%, so all four required parameters are already documented in the schema, including the 'service name as config_files reports it' hint. The description adds no additional parameter meaning beyond what the schema provides, which is the expected baseline when coverage is complete.

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 description names the resource (the service's values file) and its read nature indirectly through 'The whole file as YAML, plus every scalar value flattened', and it clearly distinguishes itself from the write counterpart config_set. It never states an explicit verb like 'Reads' up front, relying on the title and the returned-content framing, so it is clear but slightly indirect.

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 'worth knowing before adding more' implies this should be called before config_set writes, which is useful context. However, it gives no explicit when-to-use or when-not-to-use guidance against other reading siblings (config, config_files, config_pull, kubectl_read), leaving the agent to infer the choice.

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