Skip to main content
Glama

Add a routing rule

add_project_rule
Idempotent

Route future Google Meet calls with this person or company to the project: a call matches through its Calendar event's attendees, while Calendar routing is on; rules do not route other calls. Public email domains (gmail.com...) cannot be domain rules, the user's own addresses cannot be rules, and an email or domain belongs to one project at most. Only the workspace's owner changes its rules: a team's rule files every member's matching calls into the team. Adding a rule the project already has changes nothing (created=false).

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": {
      "project_id": "<project_id>",
      "kind": "<kind>",
      "value": "<value>"
    },
    "name": "add_project_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYesemail: one person. domain: everyone at a company
valueYesjuan@acme.com (email) or acme.com (domain)
project_idYesThe project's id

Output Schema

NameRequiredDescriptionDefault
idYes
kindYes
valueYes
createdYes
projectYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false), the description discloses who may make the change ('Only the workspace's owner changes its rules') and the scope effect for teams ('a team's rule files every member's matching calls into the team'). It also spells out the idempotency outcome concretely: re-adding an existing rule 'changes nothing (created=false)'. That is exactly the kind of behavior the annotation flags cannot convey.

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 purpose is front-loaded in the first clause, and every subsequent clause carries a distinct constraint (matching mechanism, eligibility, ownership, idempotency). It is dense and clause-heavy in a single paragraph, which makes it slightly harder to scan than a bulleted or multi-sentence layout, but there is no filler.

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?

For a three-parameter mutation with an output schema already documenting the return shape, this covers the missing pieces: when rules apply, who can create them, what values are rejected, and what happens on a duplicate. Nothing an agent needs in order to invoke it correctly appears to be absent.

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?

Schema coverage is already 100%, so the baseline is 3, but the description adds real meaning about valid values: an email or domain belongs to one project at most, public domains cannot be domain rules, and the user's own addresses cannot be rules. These are acceptance constraints the schema does not encode. It still does not tie these constraints back to the specific 'kind' enum values, which keeps it from a 5.

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?

The description opens with a concrete verb and resource: 'Route future Google Meet calls with this person or company to the project.' That is far more specific than the title 'Add a routing rule' and makes the effect on future calls explicit. It does not name remove_project_rule as the inverse, so the sibling differentiation is left to inference.

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?

It clearly states the conditions under which a rule takes effect ('a call matches through its Calendar event's attendees, while Calendar routing is on') and explicitly excludes non-matching calls. Eligibility constraints are also given (no public email domains, no own addresses, one project per email/domain). What is missing is any explicit statement of when to choose this tool over alternatives such as manually moving recordings.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources