Skip to main content
Glama

sed_object_store

Perform regex-based find and replace on a stored string object, returning a new object ID with the edited content.

Instructions

Find and replace text in a string stored in the object store using regex.

Applies substitution (like sed s/pattern/replacement/) and stores the result as a new object, returning its ID. The original object is not modified.

:param object_id: The id of the object to modify in the format @obj_001. :param pattern: Regular expression pattern to find. :param replacement: Replacement string. Supports backreferences like \1, \2. :param path: Navigation path to a nested string attribute (optional). :param count: Maximum number of replacements (0 = replace all, default: 0). :param case_sensitive: Whether the pattern match should be case sensitive (default: False). :return: New object ID with the modified string and a preview of the result.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
object_idYes
patternYes
replacementYes
pathNo
countNo
case_sensitiveNo
Behavior4/5

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

With no annotations, the description provides key behavioral details: the original object is not modified, the result is stored as a new object, and it returns the new object ID and a preview. It could mention error conditions or performance, but the core behavior is well disclosed.

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-organized: a brief opening sentence followed by a parameter list. It front-loads the purpose. However, the parameter list is somewhat verbose with repeated line breaks, which could be tightened without losing 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 (6 parameters, regex substitution) and the absence of an output schema, the description fully covers what the tool does, its parameters, return value (new ID and preview), and safety (non-destructive). No critical information is missing, and it aligns with sibling context.

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?

Schema description coverage is 0%, so the description compensates by explaining all six parameters: `object_id`, `pattern`, `replacement`, `path`, `count`, `case_sensitive`. It adds meaning like "Supports backreferences" for `replacement` and "Navigate to a nested string attribute" for `path`, exceeding the schema's minimal definitions.

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 "Find and replace text in a string stored in the object store using regex," specifying the verb (find and replace), resource (string in object store), and method (regex). It distinguishes from siblings like `grep_object_store` (search) and `get_from_object_store` (retrieve).

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 explains the tool's operation (like `sed s/pattern/replacement/`) and that it creates a new object without modifying the original. While it implies usage for regex substitution, it does not explicitly state when to use this tool versus alternatives or provide exclusion criteria.

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/deepset-ai/deepset-mcp-server'

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