Skip to main content
Glama

getConfig

Retrieve current configuration details (excluding secrets) from the Directus MCP Server to manage collections, items, users, and system information efficiently.

Instructions

Get current configuration information (without secrets)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler implementation for the 'getConfig' tool. Returns sanitized configuration details including URL presence, auth method indicators, env var usage, and server args in MCP content format.
    case "getConfig": {
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify({
              directus_url: CONFIG.DIRECTUS_URL,
              using_token: CONFIG.DIRECTUS_ACCESS_TOKEN ? true : false,
              using_email: CONFIG.DIRECTUS_EMAIL ? true : false,
              environment_variables: {
                DIRECTUS_URL: !!process.env.DIRECTUS_URL,
                DIRECTUS_ACCESS_TOKEN: !!process.env.DIRECTUS_ACCESS_TOKEN,
                DIRECTUS_EMAIL: !!process.env.DIRECTUS_EMAIL,
                DIRECTUS_PASSWORD: !!process.env.DIRECTUS_PASSWORD
              },
              // List any server arguments provided
              server_args: serverArgs
            }, null, 2)
          }
        ]
      };
    }
  • index.ts:502-510 (registration)
    Tool registration in the ListTools response, specifying name, description, and input schema (no required inputs).
    {
      name: "getConfig",
      description: "Get current configuration information (without secrets)",
      inputSchema: {
        type: "object",
        properties: {},
        required: []
      }
    }
  • Input schema definition for getConfig tool: empty object schema, no properties or requirements.
    inputSchema: {
      type: "object",
      properties: {},
      required: []
    }
Behavior2/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 that the tool retrieves configuration 'without secrets', which is a useful behavioral trait regarding data sensitivity. However, it lacks other critical details like whether this is a read-only operation, authentication requirements, rate limits, or response format, leaving significant gaps in behavioral context.

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, efficient sentence that is front-loaded with the core purpose and includes a clarifying detail ('without secrets'). There is no wasted verbiage, and every word earns its place, making it highly concise and well-structured.

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 the tool's simplicity (0 parameters, no output schema, no annotations), the description is adequate but has clear gaps. It explains what is retrieved and excludes secrets, but without annotations or output schema, it doesn't cover behavioral aspects like safety, authentication, or response details, making it minimally viable but incomplete for full agent guidance.

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?

The tool has 0 parameters, and schema description coverage is 100%, so no parameter documentation is needed. The description appropriately doesn't discuss parameters, and the baseline for this scenario is 4, as it avoids unnecessary information while being complete for a parameterless tool.

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 description clearly states the tool's purpose with a specific verb ('Get') and resource ('current configuration information'), and distinguishes it by specifying what is excluded ('without secrets'). However, it doesn't explicitly differentiate from sibling tools like 'getSystemInfo' or 'getFields', which might also retrieve configuration-related data.

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 provides no guidance on when to use this tool versus alternatives. It doesn't mention any prerequisites, context for usage, or comparisons to sibling tools such as 'getSystemInfo' or 'getFields', leaving the agent without explicit usage instructions.

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

Install Server

Other Tools

Related Tools

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/pixelsock/directus-mcp'

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