Skip to main content
Glama

search_labels

Read-onlyIdempotent

Search D365 F&O labels across all indexed languages. Given text (e.g. 'Sales order'), finds the matching label ID (@SYS12345). Given a label ID (e.g. '@SYS12345' or '@SYS:12345'), finds the text in all languages. Accepts both D365 short form (@SYS124480) and colon form (@SYS:124480) -- both are normalized automatically. Searches across 392K+ label entries. WORKFLOW: call search_labels first to resolve the label text, then call find_references with the same label ID to find ALL X++ objects (forms, tables, classes, reports) that use it in their code or metadata. Languages: en-US and fr are loaded at startup. Other languages (de, nl, ar, es, zh...) are loaded on-demand -- first call ~15s, then instant.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesText to search for (e.g. 'Sales order', 'Invoice amount') or a label ID (e.g. '@SYS12345', '@AccountsReceivable:CustInvoice')
languageNoOptional: filter by language code (e.g. 'en-US', 'fr', 'de', 'nl'). Leave empty for all languages.
maxResultsNoMaximum results (default: 20, max: 50)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantial operational context on top: automatic normalization of @SYS vs @SYS: label ID forms, the 392K+ entry scale, and the language-loading latency model (en-US/fr at startup, other languages ~15s on first call then instant). This is the kind of behavior an agent needs to anticipate format quirks and timing. No contradiction with annotations.

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?

The description is dense but every sentence earns its place: purpose, bidirectional mode, input normalization, scale, workflow, and performance caveat. The WORKFLOW marker gives clear structural segmentation, and core purpose is front-loaded ahead of operational detail.

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 tool with no output schema, the description conveys the core return semantics implicitly (matching label ID or text in all languages) and covers scale, performance, and the recommended downstream call. The only gap is the exact result shape or empty-result behavior, which is minor given the explicit maxResults parameter.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds genuine meaning: the query parameter accepts either plain text or a label ID in two interchangeable formats, and the language parameter carries the on-demand loading implication (~15s first call). maxResults semantics are already fully documented in the schema, so no additional value is needed there.

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?

The first sentence names a specific verb and resource ('Search D365 F&O labels across all indexed languages') and immediately differentiates the tool's two modes: text→label ID and label ID→text. It distinguishes itself from the sibling find_references by positioning itself as the resolution step in a two-stage workflow. No ambiguity about what the tool does.

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?

The WORKFLOW section explicitly instructs the agent to call search_labels first, then find_references with the same label ID to locate X++ objects — clear routing to the key sibling. It states when to use the tool (resolving label text to IDs and vice versa) but does not provide exclusions for other search siblings like search_d365_code or federated_search.

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.