Skip to main content
Glama
defineEditor

Define-XML MCP Server

by defineEditor

define-xml-mcp-server

TypeScript MCP server for CDISC Define-XML.

Features

  • Supports Define-XML 2.0 and 2.1

  • Detects Define version and ARM presence from ODM attributes

  • Supports both MCP transports:

    • stdio (default)

    • Streamable HTTP (/mcp endpoint)

  • Local file-path input only

  • Multi-document in-memory cache using document_id

  • Response formats:

    • json

    • markdown

Related MCP server: MCP-Typescribe

Install

npm install

Build

npm run build

Run

stdio (default)

npm run dev

or

node dist/index.js --transport=stdio

Streamable HTTP

node dist/index.js --transport=http --port=3000

Server endpoint:

  • POST /mcp

Tool Catalog

Document Tools

  • define_load_document

    • Input: file_path, response_format

    • Loads/parses XML and returns document_id

  • define_close_document

    • Input: document_id, response_format

    • Removes document from cache

  • define_get_metadata_summary

    • Input: document_id, response_format

    • Returns metadata and entity counts

Required List/Get Tools

  • Datasets

    • define_list_datasets

    • define_get_dataset

  • Variables

    • define_list_variables

    • define_get_variable

  • Codelists

    • define_list_codelists

    • define_get_codelist

  • ARM

    • define_list_arm_results

    • define_get_arm_result

Search Tool

  • define_search

Notes

  • ARM is optional. ARM tools return empty results when ARM data is not present.

  • All list tools support pagination via offset and limit.

Available Tools

13 tools
define_close_documentClose Define-XML DocumentA
DestructiveIdempotent

Remove a loaded Define-XML document from in-memory cache by document_id.

ParametersJSON Schema
NameRequiredDescriptionDefault
document_idYesID returned by define_load_document.
response_formatNoResponse format: 'json' or 'markdown'.markdown

TDQS

A4/5.0
Behavior4/5

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

Annotations already provide destructiveHint=true and idempotentHint=true. The description adds context that the operation removes from 'in-memory cache,' implying it does not affect the underlying file, which is valuable behavioral information beyond the annotations. However, it does not disclose error handling or side effects on dependent objects.

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 a single sentence that is concise and front-loaded with the action and target. Every word is necessary and contributes to understanding. No superfluous information.

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?

Given the tool's simplicity (2 parameters with full schema coverage, clear annotations, no output schema), the description is largely complete. It covers the essential action. However, it could provide more detail on error conditions (e.g., invalid document_id) or confirm that repeated calls are safe (idempotent). The annotations already address idempotency, so completeness is slightly above average.

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?

The input schema has 100% coverage with clear descriptions for both parameters. The tool description does not add significant meaning beyond the schema; it merely restates that the document_id identifies the document. The response_format parameter's behavior is already defined in the schema. Hence, the description adds minimal value.

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 description clearly specifies the action ('Remove'), the target ('loaded Define-XML document'), and the method ('from in-memory cache by document_id'). It effectively distinguishes this tool from sibling tools (which are get/list/load/reload/search operations) by indicating it is a clean-up or removal operation.

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?

The description implies usage for removing a loaded document from cache, but it does not explicitly state when to use this tool versus alternatives, nor does it provide when-not-to-use conditions or prerequisites. The sibling tools include many retrieval operations, but no guidance on when close is appropriate is given.

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

define_get_arm_resultGet Define-XML ARM ResultB
Read-onlyIdempotent

Get a single ARM analysis result by OID or name from a loaded Define-XML document.

ParametersJSON Schema
NameRequiredDescriptionDefault
oidYes
document_idYesID returned by define_load_document.
response_formatNoResponse format: 'json' or 'markdown'.markdown

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true. The description merely says 'Get', consistent with annotations but adds no extra behavioral context such as error conditions or performance.

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?

A single, direct sentence with no unnecessary words or structure. Front-loaded with verb and resource.

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?

No output schema is provided, and the description does not mention return format or error handling. For a get tool, additional context about the response would improve completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Description claims filtering 'by OID or name', but the input schema only includes an 'oid' parameter with no 'name' field. This inconsistency misleads the agent and undermines the schema's definition.

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 description clearly states the verb 'get', the resource 'single ARM analysis result', and the scope 'from a loaded Define-XML document'. It distinguishes from sibling 'define_list_arm_results' which lists all results.

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?

The description implies use when a specific ARM result is needed by OID or name, but does not explicitly state when to choose this over siblings like 'define_list_arm_results' or other get tools.

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

define_get_codelistGet Define-XML CodelistA
Read-onlyIdempotent

Get a single codelist by name from a loaded Define-XML document.

ParametersJSON Schema
NameRequiredDescriptionDefault
nameYesEntity name identifier.
document_idYesID returned by define_load_document.
include_termsNoWhen true, include codelist terms in response.
response_formatNoResponse format: 'json' or 'markdown'.markdown

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false. The description adds minimal behavioral context beyond stating the operation. No contradictions, but no extra value beyond what annotations provide.

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?

Single sentence, no unnecessary words. Front-loaded with verb and resource. Perfectly concise.

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 simple retrieval tool with no output schema, the description is nearly complete. It mentions the key preconditions (name, loaded document). However, it could explicitly state that document_id must come from define_load_document.

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 coverage is 100% with clear descriptions for all 4 parameters. The description adds no additional meaning beyond 'by name'. Baseline 3 applies as schema handles param semantics.

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 description clearly states the verb 'Get', the resource 'codelist', and the context 'by name from a loaded Define-XML document'. It effectively distinguishes from sibling tools like define_list_codelists which list all codelists.

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

Usage Guidelines2/5

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

No guidance on when to use this vs alternatives (e.g., define_list_codelists). The description lacks explicit context or exclusionary criteria, leaving the agent to infer usage from the name and description.

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

define_get_datasetGet Define-XML DatasetA
Read-onlyIdempotent

Get a single dataset by OID or name from a loaded Define-XML document.

ParametersJSON Schema
NameRequiredDescriptionDefault
nameYesEntity name identifier.
document_idYesID returned by define_load_document.
response_formatNoResponse format: 'json' or 'markdown'.markdown
include_variablesNoWhen true, include dataset variables in response.

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already indicate read-only, idempotent, non-destructive behavior. The description adds a prerequisite (loaded document) and the allowed identification methods (OID or name), providing useful context beyond 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?

Single sentence of 14 words, front-loaded with verb and resource. No redundant information. Perfectly concise.

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?

Given no output schema, the description could mention response structure like dataset metadata and optional variables. However, the schema parameters cover some aspects. The description is adequate but lacks details about return content.

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%, baseline 3. The description clarifies that the 'name' parameter can accept both OID or name, adding meaning beyond the schema's 'Entity name identifier' description.

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 description clearly states the verb 'get', resource 'dataset', scope 'single dataset', and specifies lookup methods 'by OID or name'. It distinguishes from sibling 'define_list_datasets' which lists all datasets.

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?

The description implies the document must be loaded first, but does not explicitly state when to use this tool versus alternatives like 'define_list_datasets' for multiple datasets or 'define_get_variable' for variables. No exclusion criteria are given.

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

define_get_metadata_summaryGet Define-XML Metadata SummaryA
Read-onlyIdempotent

Return high-level document metadata and counts of datasets/variables/codelists/ARM results.

ParametersJSON Schema
NameRequiredDescriptionDefault
document_idYesID returned by define_load_document.
response_formatNoResponse format: 'json' or 'markdown'.markdown

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and idempotentHint, so the safety profile is clear. The description adds no further behavioral context beyond the annotations, meeting baseline expectations.

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 a single, front-loaded sentence with no superfluous words. It efficiently conveys the tool's purpose.

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?

Without an output schema, the description could elaborate on the structure of the returned metadata and counts. While sibling tools provide some context, the description alone is somewhat incomplete for an agent to fully understand the response.

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 coverage is 100% with adequate parameter descriptions. The tool description does not add any extra meaning beyond what the schema already provides, so it meets the baseline.

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 description clearly states the tool returns 'high-level document metadata and counts' of specific components, distinguishing it from sibling tools that focus on individual items or detailed lists.

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?

The description implies usage for summaries but does not explicitly state when to use this tool over siblings like define_get_dataset or define_list_variables. No exclusion or alternative guidance is given.

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

define_get_variableGet Define-XML VariableA
Read-onlyIdempotent

Get a single variable by name and dataset name from a loaded Define-XML document.

ParametersJSON Schema
NameRequiredDescriptionDefault
nameYesEntity name identifier.
document_idYesID returned by define_load_document.
dataset_nameYesDataset name to get variable from.
response_formatNoResponse format: 'json' or 'markdown'.markdown

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true, which align with the description. The description does not add additional behavioral details beyond what annotations provide, such as error handling or return format specifics.

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 a single sentence with 16 words, front-loading the verb and resource. It is concise and contains no unnecessary words.

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?

The description is adequate for a simple getter tool with annotations. It identifies the key parameters but omits edge cases (e.g., variable not found) and does not explain the return value structure. Given the low complexity, it is minimally complete.

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 coverage is 100%, and the description mentions 'by name and dataset name' which maps to the required parameters. However, it does not add new meaning beyond the schema descriptions, such as elaborating on the response_format 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?

The description clearly states the verb 'Get', the resource 'variable', and the qualifiers 'by name and dataset name from a loaded Define-XML document'. This distinguishes it from sibling tools like define_list_variables (list all variables) and define_get_dataset (get dataset).

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?

The description implies usage for retrieving a single variable but does not explicitly state when to use it versus alternatives like define_list_variables. It lacks explicit when-to-use or when-not-to-use guidance.

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

define_list_arm_resultsList Define-XML ARM ResultsA
Read-onlyIdempotent

List ARM analysis results from a loaded Define-XML document (empty when ARM not present).

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum records to return (1-200).
offsetNoNumber of records to skip.
document_idYesID returned by define_load_document.
response_formatNoResponse format: 'json' or 'markdown'.markdown

TDQS

A3.9/5.0
Behavior4/5

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

Adds useful behavioral context about returning empty when ARM absent, beyond annotations that indicate read-only and idempotent.

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?

Single, front-loaded sentence with no wasted words; concise and clear.

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?

Adequate for a simple listing tool with good schema/annotations, but no output structure details in absence of output schema.

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 descriptions already cover all 4 parameters, description adds no extra parameter meaning.

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?

Clearly states listing ARM analysis results from a loaded Define-XML document, distinguishes from siblings like define_get_arm_result.

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?

Implicitly suggests use for listing but no explicit when/when-not or alternatives provided.

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

define_list_codelistsList Define-XML CodelistsA
Read-onlyIdempotent

List codelists from a loaded Define-XML document with pagination.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum records to return (1-200).
offsetNoNumber of records to skip.
document_idYesID returned by define_load_document.
response_formatNoResponse format: 'json' or 'markdown'.markdown

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already indicate read-only, idempotent, and non-destructive behavior. The description adds that it operates on a 'loaded Define-XML document' and supports pagination, which are useful but not extensive behavioral details.

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 a single, front-loaded sentence with no wasted words. It efficiently communicates the core purpose in a concise manner.

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 list tool with no output schema, the description lacks details about the return format (e.g., list of codelist IDs or full objects). It covers input requirements but does not describe what the agent will receive, leaving some uncertainty.

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?

All parameters are documented in the input schema (100% coverage), so the description does not add significant meaning beyond what is already structured. The mention of 'pagination' is already captured by the limit and offset parameters.

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 description clearly states the action ('List') and the resource ('codelists from a loaded Define-XML document') and mentions pagination, which distinguishes it from sibling tools like define_get_codelist that retrieve a single codelist.

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

Usage Guidelines2/5

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

The description does not provide any guidance on when to use this tool versus alternatives, such as explaining that it is for listing multiple codelists while define_get_codelist is for a single one. No context about prerequisites (e.g., document must be loaded) is included.

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

define_list_datasetsList Define-XML DatasetsA
Read-onlyIdempotent

List datasets (ItemGroupDef) from a loaded Define-XML document with pagination.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum records to return (1-200).
offsetNoNumber of records to skip.
document_idYesID returned by define_load_document.
response_formatNoResponse format: 'json' or 'markdown'.markdown

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already indicate read-only, non-destructive, idempotent behavior. The description adds 'with pagination' but does not elaborate on pagination behavior or response structure beyond the schema. 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.

Conciseness4/5

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

The description is a single, clear sentence. It is efficient and front-loaded, though it could briefly mention the return format. Still, it earns its place with no wasted words.

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?

Given no output schema, the description does not explain what the response contains (e.g., list of dataset names, IDs, etc.). Annotations cover safety, but the description could provide more context about the return structure.

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?

All parameters are fully documented in the schema with descriptions (100% coverage). The description adds no additional semantics beyond what the schema provides, so baseline 3 is appropriate.

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 description clearly states the action ('List'), the resource ('datasets/ItemGroupDef'), and the context ('loaded Define-XML document'). It differentiates from siblings like define_get_dataset (single dataset) and other list tools.

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?

The description does not explicitly state when to use this tool versus alternatives. It implies listing all datasets, but no prerequisites, exclusions, or explicit comparisons to siblings are provided.

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

define_list_variablesList Dataset VariablesA
Read-onlyIdempotent

List variables of a specific dataset from a loaded Define-XML document with pagination.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum records to return (1-200).
offsetNoNumber of records to skip.
document_idYesID returned by define_load_document.
dataset_nameYesDataset name to list variables for.
response_formatNoResponse format: 'json' or 'markdown'.markdown

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true. Description adds context about pagination and document prerequisite, which are not in annotations. No contradictions.

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?

One sentence, 14 words, front-loaded with action and resource. No unnecessary words.

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?

Covers main action, source, pagination, and prerequisite. Lacks details on return value format (e.g., variable names/details) but no output schema exists. Adequate for a paginated list tool.

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 description coverage is 100%, so baseline is 3. Description adds context linking parameters to functionality (e.g., 'from a loaded Define-XML document' for document_id, 'pagination' for limit/offset).

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?

Clear verb ('list'), resource ('variables of a specific dataset'), source ('loaded Define-XML document'), and distinguishing feature ('pagination'). Distinguishes from siblings like define_list_datasets and define_get_variable.

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?

Implies document must be loaded (prerequisite) but lacks explicit guidance on when to use vs alternatives like define_get_variable. No when-not or exclusion criteria.

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

define_load_documentLoad Define-XML DocumentA
Read-onlyIdempotent

Load and parse a local Define-XML file. Returns a document_id for subsequent tool calls.

ParametersJSON Schema
NameRequiredDescriptionDefault
file_pathYesAbsolute or relative path to Define-XML file.
response_formatNoResponse format: 'json' or 'markdown'.markdown

TDQS

A3.6/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false. The description adds only the return of a document_id but does not disclose additional behaviors such as error handling, validation, or side effects (e.g., caching).

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 consists of two concise sentences that are front-loaded with the tool's purpose and immediate output. Every word adds value, with no unnecessary 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 simple load tool with two parameters and no output schema, the description covers the core purpose and return value. It lacks details on file validation or error conditions, but is otherwise sufficient.

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 coverage is 100% with descriptions for both parameters (file_path and response_format). The description does not add any additional meaning or context beyond the schema, warranting a baseline score of 3.

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 description clearly states the action ('Load and parse'), the resource ('local Define-XML file'), and the return value ('document_id'). It distinguishes the tool from sibling tools that operate on already-loaded documents.

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?

The description implies this is the initial step for loading a Define-XML file, but it does not explicitly state when to use it versus alternatives like define_reload_document. No when-not-to-use or exclusionary guidance is provided.

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

define_reload_documentReload Define-XML DocumentB
Read-only

Reload a previously loaded Define-XML document from disk, replacing the cached version. Returns the new document_id.

ParametersJSON Schema
NameRequiredDescriptionDefault
document_idYesID returned by define_load_document.
response_formatNoResponse format: 'json' or 'markdown'.markdown

TDQS

B3.3/5.0
Behavior1/5

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

The description says 'replacing the cached version,' which indicates a write operation, but annotations declare readOnlyHint: true. This is a direct contradiction, severely undermining transparency.

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 a single clear sentence with no redundant information, front-loading the core action and result.

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?

The description covers the basic operation and return value, but lacks behavioral context (contradiction with annotations) and does not explain the implications of caching replacement. For a tool with 2 params and no output schema, it is minimally adequate but incomplete.

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 coverage is 100% with both parameters described. The description adds no additional meaning beyond what the schema provides, so baseline score of 3 is appropriate.

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 description clearly states the tool reloads a previously loaded Define-XML document from disk, replacing the cached version, and returns a new document_id. This distinguishes it from sibling tools like define_load_document and define_close_document.

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?

The description implies usage for reloading a previously loaded document, but does not explicitly state when to use versus alternatives or when not to use. Guidance is implicit rather than explicit.

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 13 tool updatesv0.1.0
    • First observeddefine_close_document
    • First observeddefine_get_arm_result
    • First observeddefine_get_codelist
    • First observeddefine_get_dataset
    • First observeddefine_get_metadata_summary
    • First observeddefine_get_variable
    • First observeddefine_list_arm_results
    • First observeddefine_list_codelists
    • First observeddefine_list_datasets
    • First observeddefine_list_variables
    • First observeddefine_load_document
    • First observeddefine_reload_document
    • First observeddefine_search

TDQS

A3.9/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: loading, closing, listing, and getting specific components (datasets, variables, codelists, ARM results) plus metadata summary and search. No overlap in functionality.

Naming Consistency5/5

All tools follow the consistent pattern 'define_verb_noun' (e.g., define_load_document, define_list_datasets). Verbs and nouns are descriptive and uniform.

Tool Count5/5

13 tools is well-scoped for a Define-XML document server: covers loading, reloading, querying individual items, listing with pagination, search, metadata summary, and memory management (close). Not excessive nor too sparse.

Completeness4/5

The tool set covers all fundamental read operations for Define-XML documents: load, list and get datasets/variables/codelists/ARM results, search, and metadata summary. Minor gaps like retrieving item groups beyond datasets or getting raw XML snippets exist but don't hinder core usage.

Maintenance

ActivityInactive
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    Not graded
    maintenance
    A TypeScript-based MCP server that connects to FHIR servers, allowing access to healthcare data via fhir:// URIs and providing search capabilities for FHIR resources.
    65
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    An MCP server that enables LLMs to understand and work with TypeScript APIs they haven't been trained on by providing structured access to TypeScript type definitions and documentation.
    30
    46
    MIT
  • F
    license
    Not graded
    quality
    C
    maintenance
    A TypeScript MCP server for managing persistent knowledge graphs with entities, directional relations, and time-based observations. It enables users to create, search, and track structured information with built-in concurrency control and JSON file storage.
    -

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/defineEditor/define-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server