Skip to main content
Glama

runtime_flags

Read-only

Reads process-level container flags set at boot to verify values like VOICE_LIVE_SIM_ENABLED, so you can catch unset flags before a sim run bills a real provider.

Instructions

Process-visible values of a small curated list of container-level flags THIS process was booted with — plain os.getenv reads, not routed through core/env_resolver.py, so they are invisible to the env_vars tool and /admin/env-vars (which CRUD the agent_env_vars table, a different read path entirely). Flags, not secrets — nothing on this list is sensitive, and it must stay that way; never add a secret-valued var here. Chiefly for VOICE_LIVE_SIM_ENABLED: endpoints/voice_live.py reads it with a bare os.getenv, so a voice-eval sim run against a stack without it set silently degrades to a real billable provider session instead of erroring — check this before trusting a sim run's cost profile. value is null when the var is unset on this process (not the same as being set to an empty string).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "runtime_flags"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Read-only hint is already in annotations, but the description adds real behavioral context: plain os.getenv reads that bypass core/env_resolver.py, invisibility to env_vars and /admin/env-vars, and non-sensitivity of the values. It also discloses the silent-degradation failure mode for VOICE_LIVE_SIM_ENABLED and the null-vs-empty-string distinction, which annotations cannot convey. Minor deduction because the maintainer-facing rule 'never add a secret-valued var here' is policy for editors rather than runtime behavior an agent needs.

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?

Front-loads the core definition and the read-path distinction, and each clause carries information. It is somewhat long and the secret-handling sentence reads as an instruction to future maintainers, which is a small amount of text that does not serve the calling agent.

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?

A zero-parameter read tool with an output schema and a readOnly annotation needs only to explain what is read and why it matters, and the description does both, including the unset-state semantics of the returned value. Nothing an agent needs to call it correctly is missing.

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

Parameters4/5

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

Zero parameters, so the baseline is high by default. The description adds meaning where it can by clarifying that a null value means the var is unset on this process rather than set to an empty string, which is semantic detail the empty properties schema cannot supply.

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?

States a specific resource with precise scope: process-visible values of a curated container-level flag list read at boot. It immediately distinguishes itself from env_vars and /admin/env-vars by naming the different read path, so an agent can separate it from the closest sibling without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit when-to-use: check VOICE_LIVE_SIM_ENABLED before trusting a voice-eval sim run's cost profile, because a missing flag silently degrades to a real billable provider session. It also states the when-not case by naming env_vars and /admin/env-vars as the wrong tools for these values, since those CRUD the agent_env_vars table.

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