Skip to main content
Glama

qrtap_get_smart_rules

Retrieve the conditional Smart Links redirect rules for a specific code so you can review existing rules before replacing them and avoid dropping unknown rules.

Instructions

Read the conditional (Smart Links) redirect rules currently set on one code. An empty array means the code always goes to its primary destination. Call this before qrtap_set_smart_rules, which replaces the whole rule set — otherwise you will silently drop rules you did not know about.

Input Schema

NameRequiredDescriptionDefault
codeIdYesThe code id (UUID), as returned by qrtap_create_code, qrtap_create_codes_bulk or qrtap_list_codes. This is the internal id, not the short_url slug.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

A4.4/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. It discloses the key behavioral fact that an empty array means the code always resolves to its primary destination, and it warns about the destructive interaction with the sibling setter. It does not cover auth requirements or ordering, so it stops short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the read operation, then the return-value semantics, then the sequencing warning. Every sentence adds actionable information with no filler.

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?

For a single-parameter read with no output schema, the description covers purpose, return semantics (empty array), and sequencing risk, which is nearly everything an agent needs. Minor gaps like ordering or whether disabled rules are included keep it from a 5.

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% and the schema itself already disambiguates codeId (internal UUID vs. short_url slug), so the schema does the heavy lifting. The description only adds that a single code is targeted; baseline 3 applies when the schema fully documents the parameter.

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 verb ('Read') and a specific resource ('conditional (Smart Links) redirect rules currently set on one code'), with the scope narrowed to a single code. An agent can immediately distinguish this read-only inspection tool from the mutating sibling qrtap_set_smart_rules without inspecting 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?

Explicitly tells the agent when to call it: before qrtap_set_smart_rules, and states the consequence of skipping it ('you will silently drop rules you did not know about'). The alternative and the selection condition are both named, leaving nothing to inference.

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