> ## Documentation Index
> Fetch the complete documentation index at: https://docs.emergence.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Resolve Term

> Resolve a business term against context pack memories.

Fetches all memories from the MemoryProvider and filters client-side
by term match (name or content contains the search term). Extracts
structured fields (definition, related_columns, sql_pattern) from the
best-matching concept/vocabulary/sample_question memories.

Example: "What does 'conversion rate' mean?" will return a definition
from concept/vocabulary memories, related column names from table
description memories, and an example SQL pattern from sample_question
memories.



## OpenAPI

````yaml /openapi/em-talk2data-v2.yaml post /talk2data/mcp/resolve-term
openapi: 3.1.0
info:
  title: Talk to Data Service
  version: 3.2.0-dev1
servers: []
security: []
paths:
  /talk2data/mcp/resolve-term:
    post:
      tags:
        - mcp
      summary: Resolve Term
      description: |-
        Resolve a business term against context pack memories.

        Fetches all memories from the MemoryProvider and filters client-side
        by term match (name or content contains the search term). Extracts
        structured fields (definition, related_columns, sql_pattern) from the
        best-matching concept/vocabulary/sample_question memories.

        Example: "What does 'conversion rate' mean?" will return a definition
        from concept/vocabulary memories, related column names from table
        description memories, and an example SQL pattern from sample_question
        memories.
      operationId: mcp_resolve_term
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResolveTermRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResolveTermResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '502':
          description: MemoryProvider unreachable
        '503':
          description: resolve-term unavailable (EM_RUNTIME_UTILS_URL not configured)
      security:
        - HTTPBearer: []
components:
  schemas:
    ResolveTermRequest:
      properties:
        term:
          type: string
          minLength: 1
          title: Term
          description: Business term to resolve (e.g. 'ARR', 'churn rate')
      type: object
      required:
        - term
      title: ResolveTermRequest
      description: Request body for synchronous term resolution.
    ResolveTermResponse:
      properties:
        definition:
          anyOf:
            - type: string
            - type: 'null'
          title: Definition
          description: >-
            Plain-language definition extracted from the best concept/vocabulary
            match
        related_columns:
          items:
            type: string
          type: array
          title: Related Columns
          description: Column names related to the term (from table/schema memories)
        sql_pattern:
          anyOf:
            - type: string
            - type: 'null'
          title: Sql Pattern
          description: Example SQL pattern using this term (from sample_question memories)
        memories:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Memories
          description: All matching memories (raw)
      type: object
      title: ResolveTermResponse
      description: >-
        Term resolution result from context pack memories.


        Top-level fields (definition, related_columns, sql_pattern) are
        extracted

        from the best-matching concept/vocabulary/sample_question memories.

        The raw memories list is always returned for clients that need full
        detail.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````