Skip to main content
Glama

stb_validate

Validates a UI map against actual app source code to verify UI-to-code mappings, using a UI map filename and cloned app repository as ground truth.

Instructions

Validate a UI map against real app source (ground truth). Args: uimap (partial filename ok), source_dir (cloned app repo containing AndroidManifest.xml).

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": {
      "uimap": "<uimap>",
      "source_dir": "<source_dir>"
    },
    "name": "stb_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
uimapYes
source_dirYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It conveys that validation happens against a local cloned source rather than a live device, which is useful context, but it never states whether the tool is read-only, whether it persists a report, or what happens on mismatch. The presence of an output schema lowers the cost of not describing return values.

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 tight sentences with the purpose front-loaded and parameters broken out under an 'Args:' label. Nothing is redundant, though the telegraphic arg list trades some readability for brevity.

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 two-param validator with an output schema, the core contract is present: what is compared, against what, and what the two arguments mean. Gaps remain around which uimap formats are acceptable, prerequisites for the source checkout (build variants, manifest location flexibility), and how failure is reported.

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 compensate. It does so partially: 'uimap (partial filename ok)' clarifies matching tolerance and 'source_dir (cloned app repo containing AndroidManifest.xml)' pins down the expected directory contents. That is meaningful added meaning for both required params, but format expectations for the uimap file itself remain unspecified.

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 verb+resource: validate a UI map against real app source, with the clarifying parenthetical '(ground truth)' distinguishing it from build/dump/screenshot siblings. An agent can tell this is a verification step, not a capture or build step, though it never names a sibling alternative explicitly.

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?

Usage is implied by the word 'validate' and the requirement for a cloned app repo, but there is no explicit when-to-use or when-not-to-use guidance, and no routing to alternatives such as stb_dump_ui (which presumably produces the map this tool consumes). The agent must infer the workflow position.

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