Skip to main content
Glama

Check lookup step match rate

get_custom_pipeline_lookup_match_rate
Read-only

Post Lookup Match Rate

When to use: 룩업 스텝을 저장하기 전이나 고친 뒤, 그 설정이 실제로 몇 행에 붙는지 확인할 때 — 키 값 표기가 달라 0건이 붙는 실수를 잡는다.

Limitations: priority 는 이 룩업 스텝의 순서다 — 그보다 앞선 스텝까지 적용한 결과에 붙여 본다. 기준표가 구글 시트면 {source_type=GOOGLE_SHEETS, source_spreadsheet_id, source_sheet_name, join_keys, properties}(spreadsheet_id·sheet_name 은 list_custom_pipeline_available_sources 에서 얻는다), 테이블이면 {source_type=DATA_LAKE, source_table, source_database?, join_keys, properties}(list_custom_pipeline_available_sources 의 DATA_LAKE 항목이면 table_name·schema_name 을 source_table·source_database 로 넘긴다 — source_database 를 생략하면 내 구글 시트 연동 테이블에서 찾는다), 다른 커스텀 에셋이면 {source_type=CUSTOM_ASSET, source_table, join_keys, properties}(list_custom_pipeline_available_sources 의 CUSTOM_ASSET 항목이면 table_name 을 source_table 로 넘기고 source_database 는 보내지 않는다 — 에셋 테이블은 내 시트 연동 테이블과 다른 곳에 있어 DATA_LAKE 로 보내면 찾지 못하거나 같은 이름의 시트 테이블을 읽는다)이다. join_keys 의 source_column 은 파이프라인 쪽 컬럼, target_column 은 기준표 컬럼이다. properties 의 source_column 은 기준표에서 가져올 컬럼, name 은 결과 컬럼 표시명, physical_column_id 는 결과 테이블의 실제 컬럼명(영문·숫자·밑줄)이다.

Examples:

  • Q: 수수료 시트 룩업이 주문 몇 건에 붙는지 확인해줘 params: {'path': {'pipeline_id': 34}, 'body': {'priority': 1, 'source_type': 'GOOGLE_SHEETS', 'source_spreadsheet_id': '1AbCdEfGh', 'source_sheet_name': '수수료', 'join_keys': [{'source_column': 'brand_name', 'target_column': '브랜드'}], 'properties': [{'name': '수수료율', 'source_column': '수수료율', 'physical_column_id': 'fee_rate', 'data_type': 'DOUBLE'}]}}

Output shape: object: {total_count, matched_count, unmatched_count, joined_count, completeness, generated_sql, ...}

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": {
      "pipeline_id": "<pipeline_id>",
      "priority": "<priority>"
    },
    "name": "get_custom_pipeline_lookup_match_rate"
  }
}

Input Schema

NameRequiredDescriptionDefault
as_ofNo
priorityYes
join_keysNo
project-idNo
propertiesNo
pipeline_idYes
source_typeNo
source_tableNo
source_catalogNo
source_databaseNo
source_sheet_nameNo
source_spreadsheet_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false; the description adds non-obvious behavior beyond them — that `priority` causes the match to be evaluated against the result of preceding steps rather than the raw source. That is real dry-run semantics an agent could otherwise get wrong. It does not cover auth requirements or rate limits, so 4 rather than 5.

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

Conciseness3/5

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

Good front-loading — purpose, then when-to-use, then limitations, then a worked example. But the Limitations paragraph is one enormous parenthesized run-on of nested Korean clauses that is hard to parse, and the 'Post Lookup Match Rate' heading adds little. The information earns its place; the packaging does not.

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 12-parameter validation tool with an output schema, the description covers the routing logic, join key direction, and result column naming that an agent genuinely needs, and it need not restate return fields since an output schema exists. The unmentioned `as_of`, `project-id`, and `source_catalog` parameters are the remaining completeness gap.

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?

With 0% schema description coverage this description must carry the parameter burden, and it largely does: it explains the three source_type shapes (GOOGLE_SHEETS with spreadsheet_id/sheet_name, DATA_LAKE with source_table/source_database, CUSTOM_ASSET with source_table and explicitly no source_database), the source_column/target_column direction of join_keys, and the properties fields (source_column, name, physical_column_id, data_type). Gaps remain: `as_of`, `project-id`, and `source_catalog` are never mentioned.

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 heading 'Post Lookup Match Rate' is endpoint-flavored, but the 'When to use' line supplies a concrete verb+resource: checking how many rows a lookup step's configuration actually joins, before saving or after editing. That distinguishes it from the preview/create/update step siblings well enough for an agent to select it, though no sibling is named outright.

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

Usage Guidelines4/5

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

It gives a clear triggering condition (before saving a lookup step, or after fixing one, to catch 0-match key-notation mistakes) plus a limitation on how `priority` scopes computation to preceding steps. No explicit 'when not to use' or named alternative such as preview_custom_pipeline is given, so it stops short of a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources