Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
NEWS_API_KEYYesYour News API key
OPENAI_API_KEYYesYour OpenAI API key
OPENWEATHER_API_KEYYesYour OpenWeather API key

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_weatherA

Get current weather for a location.

Args: location: City name or "City, Country Code"

Returns: Dictionary with weather information

fetch_newsC

Fetch news articles on a topic.

Args: topic: Search query/topic limit: Number of articles to return language: Language code (default: en)

Returns: Dictionary with news articles

create_fileC

Create a new file with content.

Args: path: File path (relative to data directory) content: File content

Returns: Result dictionary

read_fileB

Read file content.

Args: path: File path (relative to data directory)

Returns: File content and metadata

delete_fileB

Delete a file.

Args: path: File path (relative to data directory)

Returns: Result dictionary

search_filesB

Search for files matching a pattern.

Args: directory: Directory to search (relative to data directory) pattern: Glob pattern (e.g., ".txt", "data_")

Returns: List of matching files

list_directoryB

List contents of a directory.

Args: directory: Directory path (relative to data directory)

Returns: Directory contents

update_fileC

Update existing file content.

retrieve_current_working_directoryA

Retrieve the current working directory used as the base data path. This directory serves as the root location for all tools or operations that require file paths, relative directories, or working directory references.

Returns: Result Working Directory Path dictionary

fetch_webpageB

Fetch content from a webpage.

Args: url: URL to fetch extract_text: If True, extract and clean text content

Returns: Webpage content and metadata

calculateA

Evaluate a mathematical expression safely.

Args: expression: Mathematical expression (e.g., "2 + 2", "sqrt(16)")

Returns: Calculation result

convert_unitsA

Convert between units.

Args: value: Numeric value to convert from_unit: Unit to convert from to_unit: Unit to convert to

Supported conversions:

  • Temperature: celsius, fahrenheit, kelvin

  • Length: meter, kilometer, mile, foot, inch

  • Weight: kilogram, gram, pound, ounce

execute_commandA

Execute an arbitrary shell command with full control over execution context. This method allows running simple commands (e.g., ls, cat, echo, pwd, mv) as well as complex shell pipelines and redirections (e.g., grep pattern file | sort > output.txt). It captures both standard output and standard error, and returns structured results.

Args: command (str): Command to execute (any valid shell command) cwd (str, optional): Relative Working directory (defaults to data directory) timeout (int, optional): Command timeout in seconds

Returns: Result dictionary with stdout, stderr, and return code

store_memoryA

Store one or more key–value pairs in persistent memory. This method updates the existing memory store with the provided key–value pairs. If a key already exists, its value will be overwritten.

Args: input_data (Dict[str, Any]): A dictionary containing one or more key–value pairs to be stored.

Returns: Dict[str, Any]: A result dictionary indicating success and listing the stored items.

forget_memoryA

Remove one or all items from persistent memory.

If the input key is "ALL", the entire memory store is cleared. Otherwise, only the specified key will be removed if it exists.

Args: input_data (Dict[str, Any]): A dictionary containing a single key "key" that specifies which memory entry to remove, or "ALL" to clear all entries.

Returns: Dict[str, Any]: A result dictionary indicating success, failure, or whether the requested key was not found.

retrieve_memoryB

Retrieve the entire memory store.

Returns: Any: The complete memory store as a dictionary.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
Agent Stored MemoriesAccess to all user stored memories

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/elcaiseri/mcp-ai-agent-server'

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