Skip to main content
Glama

register_agent

Register agents with PolicyGuard to assign trust levels and control tool access for security policy enforcement.

Instructions

Register a new agent with Guardian for security policy evaluation.

Registered agents get proper trust levels and can have custom tool permissions. Unregistered agents are treated as 'low' trust.

Args: agent_id: Unique identifier for the agent (e.g., "prod-assistant-01") name: Human-readable name (e.g., "Production Assistant") description: Description of the agent's purpose trust_level: Trust level - "low", "medium", "high", or "admin" allowed_tools: JSON array of allowed tool patterns (e.g., '["read_", "query_"]') denied_tools: JSON array of denied tool patterns (e.g., '["delete_", "drop_"]') metadata: JSON object with additional agent metadata

Returns: JSON string with registration result: - success: Whether registration succeeded - agent_id: The agent's ID - message: Status message - warnings: Any warnings about the registration

Example: register_agent( agent_id="data-analyst-01", name="Data Analyst Bot", description="Runs analytical queries on warehouse", trust_level="medium", allowed_tools='["query_", "read_"]', denied_tools='["delete_", "drop_", "truncate_*"]' )

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agent_idYes
nameYes
descriptionNo
trust_levelNomedium
allowed_toolsNo[]
denied_toolsNo[]
metadataNo{}

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/PrateekKumar1709/policyguard'

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