Skip to main content
Glama

tests_for

Read-onlyIdempotent

Find which tests to run after changing a Python symbol using static call reachability and runtime coverage, including dynamic-only tests that static analysis misses.

Instructions

Which tests to run after changing symbol. static = the test reaches it through calls; dynamic = coverage shows the test executed it. Tests that are dynamic-only are invisible to static analysis (e.g. getattr dispatch) — run them too. Returns {symbol, count, tests: [{test, module, static, dynamic}], dynamic_only: [test]}.

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": {
      "symbol": "<symbol>"
    },
    "name": "tests_for"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, closed-world), so the bar is lower, yet the description still contributes real context: the meaning of the static and dynamic flags, the warning that dynamic-only tests are invisible to static analysis via getattr dispatch, and the recommendation to run them anyway. With no output schema present, the inline return shape is also genuinely load-bearing.

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 question it answers, then semantic definitions, then the caveat, then the return shape — a logical order with no filler. The static/dynamic gloss and the return-shape line are both efficient, though the dashes and parenthetical add slight density.

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

Completeness3/5

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

For a single-parameter read tool the coverage is close to adequate: input intent, output shape, and the static-vs-dynamic caveat are all present, and no output schema means the return description is necessary. The missing piece is the expected format of `symbol`, which is the one thing an agent could get wrong when invoking it.

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?

Only one parameter and schema description coverage is 0%, so the description carries the burden. It conveys that `symbol` is the changed code element being queried, but never says whether it expects a bare name, qualified path, or signature, which is exactly the ambiguity that matters for this tool.

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 question it answers — 'Which tests to run after changing `symbol`' — and defines the two result dimensions (static, dynamic) that shape the answer. It never names or contrasts a sibling such as `impact` or `untested`, so the agent must infer the boundary from the name alone.

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 'after changing `symbol`' implies the triggering workflow, and 'run them too' prescribes what to do with dynamic-only results. However, there is no explicit when-not guidance and no mention of when a sibling like `impact` or `untested` would be the better call.

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