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{}

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes key behaviors: this is a registration/mutation operation (implied by 'register'), it affects trust levels and tool permissions, and it returns a structured JSON result. It doesn't mention authentication requirements, rate limits, or error conditions, but provides substantial operational context beyond basic purpose.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with clear sections: purpose statement, parameter explanations, return format, and example. While somewhat lengthy, every sentence adds value. The front-loaded purpose statement is strong, though the detailed parameter explanations could be more concise while maintaining clarity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (7 parameters, mutation operation), no annotations, and the presence of an output schema, the description provides comprehensive context. It explains the tool's purpose, all parameters with semantics, the return format, and includes a practical example. The output schema means the description doesn't need to detail return values, and it adequately covers what's needed for effective use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 0% description coverage, so the description must fully compensate. It provides detailed semantic explanations for all 7 parameters, including examples, format requirements (e.g., 'JSON array', 'JSON object'), and allowed values for 'trust_level'. This adds significant value beyond the bare schema, making parameter usage clear and actionable.

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 the tool's purpose: 'Register a new agent with Guardian for security policy evaluation.' It specifies the verb ('register'), resource ('agent'), and context ('Guardian for security policy evaluation'), distinguishing it from sibling tools like 'create_policy' or 'get_audit_log' which handle different security functions.

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 provides clear context for when to use this tool: to register agents for security policy evaluation, with implications about trust levels and tool permissions. It mentions that 'Unregistered agents are treated as 'low' trust,' which helps understand the consequences of not using it. However, it doesn't explicitly state when NOT to use it or name specific alternatives among the sibling tools.

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

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