Skip to main content
Glama

setup_ai_environment

Install .cursorrules and SAMP_RULES.md into your server root to make AI agents use the correct tools and maintain encoding. Solves inconsistent AI behavior.

Instructions

MANDATORY SETUP: Call this to install .cursorrules and SAMP_RULES.md into your SAMP server root. This forces AI agents (Cursor, Windsurf, etc.) to use the correct tools and maintain encoding.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Install Server

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses that the tool writes two files and affects AI-agent behavior (tool usage and encoding). However, it omits important behavioral traits such as whether it overwrites existing files, whether it is idempotent, or whether it depends on set_server_root being configured first.

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, tightly front-loaded with the mandatory marker, then the concrete action, target, and rationale. Every clause earns its place; no filler or redundant restatement of the tool name.

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 zero-parameter setup tool, the description covers the core what and why, but it leaves meaningful gaps: no mention of prerequisities like set_server_root, no overwrite or re-run behavior, and no output/return information. Since there are no annotations or output schema, those gaps are not filled elsewhere.

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 input schema is empty and the tool has zero parameters, so there is no parameter documentation burden. The description still usefully identifies the target context ('your SAMP server root') without needing to explain any input fields.

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 a specific verb and resource: 'install .cursorrules and SAMP_RULES.md into your SAMP server root.' It also explains the downstream effect on AI agents, making it easy to distinguish from sibling install/plugin/include tools. The 'MANDATORY SETUP' prefix reinforces its role as an initialization step.

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?

The description explicitly labels the call as 'MANDATORY SETUP', giving the agent clear context that this is a required setup action before normal work. It does not mention alternatives or exclusions, but the mandatory framing is strong enough to signal when to use it.

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

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/KongGithubDev/SAMP-MCP'

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