Skip to main content
Glama
deslicer

MCP Server for Splunk

get_metadata

Retrieve distinct metadata values for a Splunk index to aid query construction and validate data availability.

Instructions

Retrieve distinct metadata values for a given index to aid query construction. Use this tool when you need to discover which hosts, sourcetypes, or sources are present in an index within a recent time window. This is useful for building targeted searches or validating data availability. Results are constrained by your Splunk permissions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
indexYesTarget index to inspect (e.g., 'main', 'security')
fieldNoMetadata field to list values for. One of 'host', 'sourcetype', or 'source' (default: 'host')host
earliest_timeNoSearch start time (e.g., '-24h@h') (default: '-24h@h')-24h@h
latest_timeNoSearch end time (e.g., 'now') (default: 'now')now
limitNoMaximum number of distinct values to return (default: 100)
Behavior3/5

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

No annotations provided, so description must disclose behavior. It mentions permission constraints but does not explain what happens when limit is exceeded, if results are sorted or ordered, or time window implications beyond defaults. Adequate but not thorough.

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?

Two sentences covering purpose, usage, and permissions. No wasted words, front-loaded with the action 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?

Covers core purpose and usage but omits return format details (e.g., list of strings or objects), error cases, or behavior when index is invalid. For a tool with 5 parameters and no output schema, more completeness would be helpful.

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%, so baseline is 3. Description adds minimal context beyond schema (e.g., 'recent time window' hints at time parameters). Does not elaborate on parameter formats or interactions.

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?

Clearly states it retrieves distinct metadata values for an index, with specific purpose of aiding query construction. However, it doesn't explicitly differentiate from sibling tools like list_sources or list_sourcetypes which might overlap.

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?

Provides explicit when-to-use guidance: 'discover which hosts, sourcetypes, or sources are present' and 'building targeted searches or validating data availability.' No alternative tools mentioned, but context is clear.

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

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/deslicer/mcp-for-splunk'

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