Skip to main content
Glama

Add Permission Path

add_permission_path

Grants read or write permission for a specified project filesystem path, storing the access rule in project configuration so the MCP server can enforce it.

Instructions

Add path to project permissions.

Grants read or write permission for the specified path in the current project. Paths are stored in project configuration and enforced by the MCP server.

Arguments

  • session_id: string | null

    • Opaque Guide interaction identifier returned by set_project. Pass it through unchanged on later tool, prompt, and resource calls. Do not construct, alter, or treat it as a FastMCP transport session id.

  • permission_type (required): enum: 'read', 'write'

    • Permission type: 'read' or 'write'

  • path (required): string

    • Client filesystem path to grant. Write paths may be project-relative or absolute and must not be a system directory. Read paths must be absolute and must not be a system directory.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "args": "<args>"
    },
    "name": "add_permission_path"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsYesArguments for add_permission_path tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv2.0.0
    • removedInput schema / properties / args / additionalProperties
      Removed value: -false
    • changedInput schema / properties / args / properties / path / description
      Previous value: -"Path to add to permissions"New value: +"Client filesystem path to grant. Write paths may be project-relative or absolute and must not be a system directory. Read paths must be absolute and must not be a system directory."
    • addedInput schema / properties / args / properties / session_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Opaque Guide interaction identifier returned by set_project. Pass it through unchanged on later tool, prompt, and resource calls. Do not construct, alter, or treat it as a FastMCP transport session id."
      +}
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "type": "object",
      -  "x-fastmcp-wrap-result": true
      -}New value: +null
  2. First observedv1.3.2

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It does add one genuinely useful fact — that paths are persisted in project configuration and enforced by the MCP server — but omits what happens on duplicates, whether the grant takes effect immediately or requires restart, whether permissions can be widened by adding a second path, and whether a privileged caller is required. For a security-relevant mutation with zero annotation coverage, these gaps matter.

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

Conciseness3/5

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

The opening two lines are front-loaded and tight, but the entire '## Arguments' section restates schema descriptions word-for-word, including the long session_id warning, which inflates the definition without adding information. Roughly half the text is redundant against structured data.

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?

No output schema and no annotations mean the description must cover everything; it establishes purpose, persistence/enforcement semantics, and path rules, but leaves idempotency, duplicate handling, and failure modes unstated for a tool that mutates project security configuration.

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 description coverage is 100%, so the parameter block in the description duplicates the schema text verbatim ('Permission type: read or write', the path constraints, the session_id warning) without adding any new meaning. Baseline 3 applies; nothing extra is contributed.

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?

'Add path to project permissions' plus 'Grants read or write permission for the specified path in the current project' states a specific verb and resource, and the name contrasts clearly with the add/remove pair. It stops short of explicitly naming remove_permission_path as the inverse operation, so an agent must infer the pairing from the tool name.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives constraints on the path (write may be project-relative or absolute; read must be absolute; system directories rejected) but never states when to choose read versus write, when to add a permission versus using an existing project setting, or how this relates to remove_permission_path. Usage is implied by the verb 'Add' rather than spelled out.

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