Skip to main content
Glama

get_production_context

Check production impact before changing code: see affected routes and jobs, recent run/failure counts, release clearance outlook, schedules, critical flows, and 90-day failed releases or regressions.

Instructions

What production does with code before you change it: the routes and jobs the given files serve, how often production ran them in the last 7 days and how many failed, whether a release's clearance would cover a change to them (clearance.outlook: normal_traffic, scheduled, later_today, rarely_used, or unknown), their schedules and critical flows, and failed releases and late regressions on them in the last 90 days. Files it can't map are listed in unmapped_files; that doesn't mean they're unused.

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": "get_production_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNoRepository-relative paths, e.g. app/views.py (up to 50).
routesNoRoute keys, e.g. "POST /refunds".
job_classesNoJob or task names, e.g. refund_task.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.31

TDQS

A3.7/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden, and it does real work: it states the 7-day and 90-day windows, enumerates the clearance.outlook values, and pre-empts a likely misreading with 'unmapped_files; that doesn't mean they're unused'. It does not say what happens when all three optional filters are omitted, nor whether inputs combine as a union or intersection.

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-loaded with the core purpose and the enumeration is dense but well ordered, with the unmapped_files caveat correctly placed last as a correction rather than a lead. The single sentence is long and list-heavy, but every clause corresponds to a distinct output field.

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?

With no output schema and no annotations, the description must convey returns and behavior, and it names nearly every field a caller will see, including the enum domain of clearance.outlook. The remaining gaps are the empty-argument case and the overall response shape, which matter less for a read-only context lookup.

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 coverage is 100%, so the schema already defines files (repo-relative, up to 50), routes, and job_classes, putting this at the baseline. The description adds useful framing that files are mapped to the routes/jobs they serve, but it never explains how the three parameter groups combine or what an unfiltered call returns.

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 precisely and enumerates what is returned: route/job mapping, 7-day run counts and failures, clearance.outlook verdict, schedules, critical flows, and 90-day failed releases/regressions. The opening phrase 'What production does with code before you change it' is indirect as a verb, but the colon-clause removes ambiguity and sets it apart from narrower siblings like list_late_regressions.

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?

Use timing is implied by 'before you change it', which frames this as a pre-change assessment step. There is no explicit when-not guidance and no naming of alternatives, so an agent must infer that list_late_regressions or get_exception cover narrower/adjacent questions.

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